Skip to content

tversteeg/rotsprite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rotsprite

Build Status Crates.io Documentation License: AGPL-3.0-or-later Downloads

Pixel Art rotation algorithms that works with many types of pixel buffers.

This library allows you to rotate pixel art using the rotsprite algorithm.

Feature Flags

blit

Implement the [crate::RotSprite] trait for [blit::BlitBuffer], making it easy to get a rotated copy of a blit buffer.

Large Small

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

Demos

Web: https://tversteeg.nl/rotsprite

Uses the ["blit"] feature flag.

Local

cargo run --example window

Credits

RotSprite algorithm - Xenowhirl
Pixel Art - Redshrike