Computer Art

Take a rectangular field of arbitrary size (pick something nice like 800×600), fill it with random pixels, then iterate the following code:

* Choose a pixel and one of its neighbors
* Make the neighboring pixel the same color as the first pixel
* Repeat as desired

As an algorithm, it isn’t much to look at — but it produces interesting psychedelic pictures, and it’s fun to watch it in action.

 

This entry was posted in Coding, Digital. Bookmark the permalink.

Leave a Reply