Add files via upload

This commit is contained in:
yangbvv
2024-03-03 18:29:40 +08:00
committed by GitHub
parent 3731da7f25
commit 7ae24ab1f6

15
index.htm Normal file
View File

@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Home</title>
<meta charset="utf-8">
<style>@-moz-keyframes nodeInserted{from{opacity:0.99;}to{opacity:1;}}@-webkit-keyframes nodeInserted{from{opacity:0.99;}to{opacity:1;}}@-o-keyframes nodeInserted{from{opacity:0.99;}to{opacity:1;}}@keyframes nodeInserted{from{opacity:0.99;}to{opacity:1;}}embed,object{animation-duration:.001s;-ms-animation-duration:.001s;-moz-animation-duration:.001s;-webkit-animation-duration:.001s;-o-animation-duration:.001s;animation-name:nodeInserted;-ms-animation-name:nodeInserted;-moz-animation-name:nodeInserted;-webkit-animation-name:nodeInserted;-o-animation-name:nodeInserted;}</style></head>
<body style="background-color: #000000;"><!-- Borrowed from http://js1k.com/2010-first/demo/171 -->
<canvas height="313" width="507" style="width: 1015px; height: 626px;" id="c"></canvas>
<script> document.body.clientWidth; // webkit fix: http://qfox.nl/weblog/218
// start of submission //
f=Math;e=document.body.children[$=0];G="globalCompositeOperation";Q=.43;P=.05;with(e){with(style)width=(w=innerWidth-9)+"px",height=(h=innerHeight-25)+"px";W=(width=w/=2)/2;H=(height=h/=2)/2;g=getContext("2d");t=w/h}with(g){scale(W/t,H);translate(t,1);setInterval(function(){with(E=e.cloneNode(0))width=height=H,c=getContext("2d");c.fillRect(0,0,h,h);g[G]=c[G]="lighter";C=f.cos;S=f.sin;L=f.atan2;q=C($);r=S(q-$*.7)+Q;u=C(r-$*Q)+Q;a=L(q,-u*2);b=L(r,u*u+q*q);n=C(a);o=S(a);N=C(b);O=S(b);$+=P;clearRect(-t,-1,2*t,2);for(i=14;i>4;--i){v=0;for(j=25;j;){M=f.log(j+.2)*Q;j--;_=$-j*.07-i*4;A=C(_+S(_*.8))*2+_*P;B=S(_*.7-C(_*Q))*3;x=C(A)*C(B)*M-q;y=S(A)*C(B)*M-r;z=S(B)*M-u;k=x*n+z*o;_=z*n-x*o;l=y*N+_*O;z=_*N-y*O;lineTo(k/=z,l/=z);lineWidth=P/z;strokeStyle="hsl("+60*S($-z)+",60%,"+~~(40-j)*(Q+!j+(.1>($-j*P)%1))+"%)";if(z>.1)v++&&stroke();else{v=0}beginPath();moveTo(k,l)}}A="drawImage";N=H/2;c.globalAlpha=Q;c[A](e,0,0,H,H);X=k*N+N;Y=l*N+N;K=1.1;c.translate(X,Y);while(i--)c.scale(K,K),c[A](E,-X,-Y,H,H);g[A](E,-t,-1,2*t,2)},33)}
// end of submission //
</script>
</body></html>