Small Rust drawing library. Simple display list, vector and bitmap shapes. Intended to be used to produce single images or image sequences for creating animated mp4 or gif files.
```rust use draw::{self, Sprite, SpriteId, Rectangle, Pixel};
let mut parent = Sprite::new(100, 100); let mut child = Rectangle::new(50, 50, 25, 25, Pixel::red());
parent.add_child(child);
draw::save(&parent, "tests/img/example.png"); ```
ffmpeg -framerate 60 -pattern_type glob -i '*.png' -c:v libx264 -pix_fmt yuv420p out. mp4
convert -delay 1 *.png output.gif
export RUSTFLAGS='-g'
perf record --call-graph=lbr cargo run --release
perf report