#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

#78 in Rendering

Download history 71/week @ 2024-01-07 70/week @ 2024-01-14 3/week @ 2024-01-21 24/week @ 2024-01-28 37/week @ 2024-02-04 37/week @ 2024-02-11 40/week @ 2024-02-18 63/week @ 2024-02-25 70/week @ 2024-03-03 104/week @ 2024-03-10 18/week @ 2024-03-17 47/week @ 2024-03-24 56/week @ 2024-03-31 3/week @ 2024-04-07

109 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
~71K SLoC