Buddhabrot + JavaScript

https://www.dwitter.net/d/18215

for(j=z=401;q=j%2?A=T(B=T(T=Math.random)*4-2)*4-2:!X,j--;)for(i=z,X=A,Y=B;X*q*i--;x.fillRect(...t?[X*z+960,Y*z+760,j%2,1,x.fillStyle=`hsl(${i},99%,50%,.1`]:[0,0,2e3,2e3]))Y=Y*Y-X*X+(X=2*Y*X+A,B)

More by Frank Force

View profile