View on GitHub

Selfdrawingcode

a little python project, that takes its own source code as input and draws an image from it

Download this project as a .zip file Download this project as a tar.gz file

Code that uses itself as a string of characters, from which to generate an image.

colorCoder_10

Inspiration:

At a gallery event, here in San Francisco, I was inspired by one of my fellow artists who included the code for his generative art in the final print. It got me thinking about Code Reflection and how it’s used, and how I might play with these ideas visually. After percolating on it for awhile, I started writing some python code that takes itself as input and draws an image based on the text of that code.

More information:

For more on my creative process at the beginning of this project, please see this blog post on Self-Drawing Code.