Crate line_drawing [−] [src]
A collection of line-drawing algorithms for use in graphics and video games.
Currently implemented:
bresenham
throughbresenham-rs
.- The mid-point line drawing algorithm.
walk_grid
andsupercover
implemented from this article by Red Blob Games.
Functions
bresenham |
A simple wrapper around |
midpoint |
An implementation of the mid-point line drawing algorithm. |
sorted_bresenham |
A sorted version of |
sorted_midpoint |
A sorted version of |
sorted_walk_grid |
A sorted version of |
supercover |
Like |
walk_grid |
Walk along a grid, taking only orthagonal steps. |