rotsprite

Crates.iorotsprite
lib.rsrotsprite
version0.1.4
sourcesrc
created_at2020-02-08 19:01:27.266849
updated_at2023-04-07 15:08:29.743854
descriptionRotate sprites using the rotsprite algorithm
homepage
repositoryhttps://github.com/tversteeg/rotsprite
max_upload_size
id206424
size151,673
Thomas Versteeg (tversteeg)

documentation

https://docs.rs/rotsprite

README

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

Commit count: 81

cargo fmt