Skip to content

fekie/pixels-primitives

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pixels-primitives

Basic operations such as lines and shapes for the pixels crate.

Documentation

Documentation can be found here.

Usage

Cargo

In your dependencies section inside Cargo.toml add

pixels_primitives = "0.1.1"

Code Examples

This project contains 5 examples, which can we ran with

cargo run -p draw_circles
cargo run -p draw_lines
cargo run -p draw_rectangles
cargo run -p draw_squares
cargo run -p draw_triangles

Screenshot of draw_circles

image

Screenshot of draw_triangles

image

Contributing

Some of these functions can still be optimized. PRs are welcome!

License

MIT License