kurbo

A Rust library for manipulating curves

  • Owner: linebender/kurbo
  • Platform:
  • License:: Apache License 2.0
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

kurbo, a Rust 2D curves library

Build Status
Docs
Crates.io

The kurbo library contains data structures and algorithms for curves and vector paths. It is probably most appropriate for creative tools, but is general enough it might be useful for other applications.

The name "kurbo" is Esperanto for "curve".

There is a focus on accuracy and good performance in high-accuracy conditions. Thus, the library might be useful in engineering and science contexts as well, as opposed to visual arts where rough approximations are often sufficient. Many approximate functions come with an accuracy parameter, and analytical solutions are used where they are practical. An example is area calculation, which is done using Green's theorem.

The library is still in fairly early development stages. There are traits intended to be useful for general curves (not just Béziers), but these will probably be reorganized.

Similar crates

Here we mention a few other curves libraries and touch on some of the decisions made differently here.

  • lyon_geom has a lot of very good vector algorithms. It's most focused on rendering.

  • flo_curves has good Bézier primitives, and seems tuned for animation. It's generic on the coordinate type, while we use f64 for everything.

  • vek has both 2D and 3D Béziers among other things, and is tuned for game engines.

Some code has been copied from lyon_geom with adaptation, thus the author of lyon_geom, Nicolas Silva, is credited in the AUTHORS file.

More info

To learn more about Bézier curves, A Primer on Bézier Curves by Pomax is indispensable.

Contributing

Contributions are welcome. The Rust Code of Conduct applies. Please feel free to add your name to the AUTHORS file in any substantive pull request.

Main metrics

Overview
Name With Ownerlinebender/kurbo
Primary LanguageRust
Program languageRust (Language Count: 1)
Platform
License:Apache License 2.0
所有者活动
Created At2018-12-27 17:17:06
Pushed At2025-09-11 16:12:18
Last Commit At
Release Count32
Last Release Namev0.12.0 (Posted on )
First Release Namev0.2.2 (Posted on )
用户参与
Stargazers Count860
Watchers Count30
Fork Count87
Commits Count660
Has Issues Enabled
Issues Count110
Issue Open Count37
Pull Requests Count342
Pull Requests Open Count23
Pull Requests Close Count29
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private