Pixel Art rotation algorithms that works with many types of pixel buffers.
This library allows you to rotate pixel art using the rotsprite algorithm.
Implement the [crate::RotSprite
] trait for [blit::BlitBuffer
], making it easy to get a rotated copy of a blit buffer.
Left Picture | Middle Picture | Right Picture |
---|---|---|
Source Image | Rotated 30° using RotSprite | Rotated 30° using naive rotation |
Web: https://tversteeg.nl/rotsprite
Uses the ["blit"]
feature flag.
cargo run --example window