Visualization 4

by Brian Picciano - (4 min read)

This visualization is a conglomeration of ideas from all the previous ones. On each tick up to 20 new pixels are generated. The color of each new pixel is based on the average color of its neighbors, plus some random drift.

Each pixel dies after a certain number of ticks, N. A pixel’s life can be extended by up to 8N ticks, one for each neighbor it has which is still alive. This mechanism accounts for the strange behavior which is seen when the visualization first loads, but also allows for more coherent clusters of pixels to hold together as time goes on.

The asteroid rule is also in effect in this visualization, so the top row and bottom row pixels are neighbors of each other, and similarly for the rightmost and leftmost column pixels.