Registry / other / line-drawing

line-drawing

JSON →
library1.0.1rscratesunverified

A collection of line-drawing algorithms for use in graphics and video games.

# Cargo.toml [dependencies] line_drawing = "1.0.1"
INSTALL
IMPORT
SIG · LINE-DRAWING
L
line-drawing
otherrustv1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Bresenham
use line_drawing::Bresenham;

Draw a line using Bresenham's algorithm.

use line_drawing::Bresenham; fn main() { for (x, y) in Bresenham::new((0, 0), (5, 5)) { println!("({}, {})", x, y); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
line-drawing — cargo add line-drawing · libregistry