Brandon Buck

Pixel Render

Draw pixel art with numbers.

Each line of code draws one row of pixels. Pick an example to start, or write your own.

Examples

The numbers are run lengths that alternate between the background and foreground color, always starting with the background. So 1, 2, 1 is one background pixel, two foreground pixels, then one background pixel. To start a row with the foreground color, begin it with 0.

Preview