rotsprite

Rust implementation/library of the RotSprite algorithm.

Build Status Version Rust Documentation License

Works with many types of pixel buffers.

Example

Small Large

Left: Source Image Middle: Rotation using RotSprite Right: Naive rotation

Run the example

On Linux you need the xorg-dev package as required by minifb. sudo apt install xorg-dev

sh cargo run --example minifb

Credits

RotSprite algorithm - Xenowhirl
Pixel Art - Redshrike