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

#14 in Rendering

Download history 32/week @ 2025-09-24 35/week @ 2025-10-01 6/week @ 2025-10-08 19/week @ 2025-10-15 30/week @ 2025-10-22

82 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

~3MB
~60K SLoC