- Author:
- Elias Schütt
- Twitter:
- @
- GitHub:
- Facebook:
- Google+:
- +
- Reddit:
- /r/
- Pouet:
- Website:
- elias-schuett.de
- Compo:
- classic
- Demo link:
- https://js1k.com/2014-dragons/demo/1620
- Shortlink:
- https://js1k.com/1620
- Blog post:
- please update here!
- Bytes:
- 581
- Chars:
- 581
- Submission
_=' g(e,te={x:x+Cy:y+Sl: r,a:a+t}move,y- Ca),y- Sa));return e}b.onv=v?clearv):,16)}0fftextBase="topWid5;M=Ma;Ssin;Ccos;W=a.wid;H=a.height;r7;tPPI/2;v=c.000Rect(0,0,W,HbeginPa();it+01;a4-C(t)*P;d=S(t)+1.4;=[{x:W/2,y:H/2,l:150,a:-P}i--n=[b=.pop()n.push(-a*.5/d),a*d/.5))}=n}c.(fffText(" to pause",9,9)},16;c.Intervale.functionStyle="#a+t)* r,fill];while( l*linebs(stroke){=M.clicksetfth=.)"=15;g(b,Tox=(';for(Y in $=' ')with(_.split($[Y]))_=join(pop());eval(_)
- Description
- Someone had to do it.
- Base64 encoded
Xz0nBCBnKGUsdBBlPXt4OgN4K0MGeToDeStTBmw6CXIsYToDYSt0fQFtb3ZlGiwDeRYLGi0JQw5hKSwDeS0JUw5hKSk7cmV0dXJuIGV9Yi5vbhIbdj12P2NsZWFyAnYpOhMsMTYpfQEPBTBmZhd0ZXh0QmFzZQs9InRvcBcLV2lkFBU1O009TWEUO1MRc2luO0MRY29zO1c9YS53aWQUO0g9YS5oZWlnaHQ7chU3O3QYUBFQSS8yO3Y9ExtjLgcFMDAwFwdSZWN0KDAsMCxXLEgWYmVnaW5QYRQoKTtpGHQrFTAxO2EVNC1DKHQpKlA7ZD1TKHQpKzEuNDsMPVt7eDpXLzIseTpILzIsbDoxNTAsYTotUH0IaS0tEG4MPVsIYj0MLnBvcCgpEG4MLnB1c2goGS1hKi41L2QpLBlhKmQvLjUpKX0MPW4MfWMuDygWBwVmZmYXB1RleHQoIhIgdG8gcGF1c2UiLDksOSl9LDE2FjtjLgJJbnRlcnZhbA5lLgRmdW5jdGlvbgVTdHlsZT0iIwYOYSt0KSoJciwHZmlsbAhdO3doaWxlKAkDbCoLbGluZQxicw4oAw9zdHJva2UQKXsRPU0uEmNsaWNrE3NldAJmFHRoFT0uFikBFyIBGD0xNTsZZyhiLBpUbw54Gz0EKBAnO2ZvcihZIGluICQ9JxsaGRgXFhUUExIREA8ODAsJCAcGBQQDAgEnKXdpdGgoXy5zcGxpdCgkW1ldKSlfPWpvaW4ocG9wKCkpO2V2YWwoXyk=
- Original source
b.onclick=function(){v=v?clearInterval(v):setInterval(f,16)}
c.strokeStyle="#0ff";c.textBaseline="top";c.lineWidth=.5;
M=Math;S=M.sin;C=M.cos;W=a.width;H=a.height;
r=.7;t=15;P=M.PI/2;
function g(b,a){
b={x:b.x+C(b.a+a)*b.l*r,y:b.y+S(b.a+a)*b.l*r,l:b.l*r,a:b.a+a};
c.moveTo(b.x,b.y);c.lineTo(b.x-b.l*C(b.a),b.y-b.l*S(b.a));
return b;
}
v=setInterval(f=function(){
c.fillStyle="#000";c.fillRect(0,0,W,H);c.beginPath();
i=15;t+=.01;a=.4-C(t)*P;d=(S(t)+1.4);
bs=[{x:W/2,y:H/2,l:150,a:-P}];
while(i--){nbs=[];while(b=bs.pop()){nbs.push(g(b,-a*.5/d),g(b,a*d/.5))}bs=nbs}
c.stroke();c.fillStyle="#fff";c.fillText("click to pause",9,9)
},16)