Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <canvas id="c"width="1920"height="1080"style="width:100%"><script>c=document.body.childNodes[0];with(Math)S=sin,C=cos,T=tan;function R(r,g,b,a){a=a===undefined?1:a;return "rgba("+(r|0)+","+(g|0)+","+(b|0)+","+a+")"};x=c.getContext("2d");frame=0;function u(){t=++frame/60;
- //dweet below
- for(i=c.width|=0;i--;x.fillRect(960+S(p=1.047*i+S(t/5)*3e3/i*S(t))*(d=i*i/1e3)-i*C(t),540+C(p)*d-i*S(t),s,s))x.fillStyle=R(i*t%99,i/t,s=i/5)
- //dweet above
- requestAnimationFrame(u)}u()</script>
Advertisement
Add Comment
Please, Sign In to add comment