Fork me on GitHub

Flying through stars

Draw a starfield with parallax stars

Draw animated anime speed lines, moving across or focused on a point

Draw a horizontal gradient in the background

Draw a sector of a circle using a fan of triangles

Shake the screen

Change the color of the screen border

How to scale a sprite

How to rotate a sprite

Draw an arbitrary image, compressed with run-length encoding

Set palette color to another

Load palette from a string

Change screen offset in every scanline

Scrolling sprite animation effect using clip

Draw text using a chunky font

juicy sprite animations using the 12 principles of animation