Crates.io | pixels_primitives |
lib.rs | pixels_primitives |
version | 0.1.1 |
source | src |
created_at | 2022-04-23 23:23:20.455727 |
updated_at | 2022-04-23 23:24:24.546612 |
description | An easy and simple wrapper for lines and simple shapes for the pixels crate. |
homepage | |
repository | https://github.com/Chloe-Woahie/pixels-primitives |
max_upload_size | |
id | 572858 |
size | 28,722 |
Basic operations such as lines and shapes for the pixels crate.
In your dependencies section inside Cargo.toml
add
pixels_primitives = "0.1.0"
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
Screenshot of draw_triangles
Some of these function can still be optimized. PRs are welcome!
MIT License