by arraypad · 14y ago · 0 comments
Annoyingly I didn't make a note of where I found the algorithm and I can't find the source now, but I remember being struck by its simplicity and deciding I had to find a use for it.
The meat of it is:
z = (sum of surrounding cells) - z;
z -= z >> 5;
Does anybody recognise it?Sod's law, 10 minutes after posting I think I've found it, http://freespace.virgin.net/hugo.elias/graphics/x_water.htm