d=[];Q=E=0;r=Math.random
b.onclick=e=>
{X=e.x;Y=e.y;d.push([X,Y]);c.fillStyle='#fff';
c.fillRect(0,0,4e3,4e3);Q=E=0}
F=0;f=q=>{c.fillStyle='#000'
for(i in d)c.fillRect(d[i][0],d[i][1],5,5)
m=2
for(j=9999;j--;)
{
z=(r()*d.length)|0
D=d[z]
Q=(Q+D[0])/2
E=(E+D[1])/2
c.fillStyle=`hsl(${E*Q/d.length+F*F},99%,20%)`
c.fillRect(Q,E,1,1)
};F++}
setInterval(f,1)
ZD1bXTtRPUU9MDtyPU1hdGgucmFuZG9tDQpiLm9uY2xpY2s9ZT0+DQp7WD1lLng7WT1lLnk7ZC5wdXNoKFtYLFldKTtjLmZpbGxTdHlsZT0nI2ZmZic7DQpjLmZpbGxSZWN0KDAsMCw0ZTMsNGUzKTtRPUU9MH0NCkY9MDtmPXE9PntjLmZpbGxTdHlsZT0nIzAwMCcNCmZvcihpIGluIGQpYy5maWxsUmVjdChkW2ldWzBdLGRbaV1bMV0sNSw1KQ0KbT0yDQpmb3Ioaj05OTk5O2otLTspDQp7DQogIHo9KHIoKSpkLmxlbmd0aCl8MA0KICBEPWRbel0NCiAgUT0oUStEWzBdKS8yDQogIEU9KEUrRFsxXSkvMg0KICBjLmZpbGxTdHlsZT1gaHNsKCR7RSpRL2QubGVuZ3RoK0YqRn0sOTklLDIwJSlgDQogIGMuZmlsbFJlY3QoUSxFLDEsMSkNCn07RisrfQ0Kc2V0SW50ZXJ2YWwoZiwxKQ==
Original source not submitted