r/tinycode • u/Slackluster • 15h ago
JavaScript Dweet of the Week #153 - Fresnel lens over tiles by Axioplase
14
Upvotes
https://www.dwitter.net/d/36697
c.width|=0;for(j=200;j--;)for(i=500;i--;)d=C(i/20+t)*S(j/20+t)*19.8,r=((j-100)**2+(i-200)**2)**.5,d<S(r+t)&&x.fillRect(i*5,j*5,5,5)