16 releases (2 stable)
Uses old Rust 2015
| 1.0.1 | Feb 21, 2025 |
|---|---|
| 1.0.0 | Aug 10, 2021 |
| 0.8.1 | Jun 6, 2021 |
| 0.8.0 | Aug 7, 2019 |
| 0.6.0 | Oct 29, 2017 |
#21 in Game dev
21,092 downloads per month
Used in 246 crates
(25 directly)
40KB
893 lines
A collection of line-drawing algorithms for use in graphics and video games.
Currently implemented:
Bresenham- An implementation of Bresenham's line algorithm.Bresenham3d- A 3-Dimensional implementation of bresenham.BresenhamCircle- Bresenham's circle algorithm.Midpoint- The mid-point line algorithm.WalkGridandSupercover- implemented from this article by Red Blob Games.WalkVoxels- A similar 3-Dimensional algorithm that only takes orthogonal steps.XiaolinWu- Xiaolin Wu's line algorithm.
Dependencies
~700KB
~14K SLoC