Paint demo

Click on the square below to add a green, blue or red color pixel which will dissolve like clouds of paint.
The color of each pixel is automatically computed to be equal to the weighted mean of its neighbours.

Check out the source code !

(Computations are slowed down in order to make the propagation visible)