Generative Pixel Art


It's been a while since I've written anything. Many projects and things, and no time to write them.

I've rewritten my site generator from scratch, hopefully this will allow me to write more frequently. For now, this is a bit of a fluff post. A cool fluff post, but a fluff post.

An idea I've wanted always to toy with is generative pixel art. Today, I whipped this up using lua and imagemagick:

The overall functionality is quite simple. The lua script generates and writes a PPM file to standard output. The output of the lua script is piped into the imagemagick CLI, where it is scaled 400% and written to a PNG file.

Download the source code for this here.