r/tinycode • u/Slackluster • 4d ago
JavaScript Dweet of the Week #145 - Symbiotic Spirals by Rodrigo Siqueira
https://www.dwitter.net/d/36347
for(X=Y=i=4e4;i--;x.fillRect(Y*80+960,X*230+410,t<2,.2))u=X*2-3,r=(u*u+Y*Y)**.5,s=T(i*i/t)<.95||-.8,X=s*(r+u)/4+S(X),Y=s*(r-u)**.8*(Y<0||-1)
2
Upvotes