#rotation #sprite #blit #game

rotsprite

Rotate sprites using the rotsprite algorithm

5 releases

0.1.4 Apr 7, 2023
0.1.3 Feb 19, 2020
0.1.2 Feb 18, 2020
0.1.1 Feb 18, 2020
0.1.0 Feb 8, 2020

#94 in Rendering

24 downloads per month
Used in 4 crates (3 directly)

AGPL-3.0-or-later

63KB
447 lines

rotsprite

Rust implementation/library of the RotSprite algorithm.

CI Version Rust Documentation License

Works with many types of pixel buffers.

Large Small

Left Picture Middle Picture Right Picture
Source Image Rotated 30° using RotSprite Rotated 30° using naive rotation

Example

Demos

WASM Demo

Web: https://tversteeg.nl/rotsprite/window

Uses the ["blit"] feature flag.

Local

cargo run --example window

Credits

RotSprite algorithm - Xenowhirl
Pixel Art - Redshrike

Dependencies

~3.5MB
~78K SLoC