pixels_primitives

Crates.iopixels_primitives
lib.rspixels_primitives
version0.1.1
sourcesrc
created_at2022-04-23 23:23:20.455727
updated_at2022-04-23 23:24:24.546612
descriptionAn easy and simple wrapper for lines and simple shapes for the pixels crate.
homepage
repositoryhttps://github.com/Chloe-Woahie/pixels-primitives
max_upload_size
id572858
size28,722
(fekie)

documentation

README

pixels-primitives

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

Usage

Cargo

In your dependencies section inside Cargo.toml add

pixels_primitives = "0.1.0"

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 function can still be optimized. PRs are welcome!

License

MIT License

Commit count: 24

cargo fmt