玫瑰
<div style="text-align:center"><canvas id="c" height="500" width="500"></canvas>
</div>
<script>
var b = document.body;
var c = document.getElementsByTagName('canvas');
var a = c.getContext('2d');
document.body.clientWidth; // fix bug in webkit: http://qfox.nl/weblog/218
</script>
<script>
// start of submission //
with(m=Math)C=cos,S=sin,P=pow,R=random;c.width=c.height=f=500;h=-250;function p(a,b,c){if(c>60)return;A=a*2-1;B=b*2-1;if(A*A+B*B<1){if(c>37){n=(j=c&1)?6:4;o=.5/(a+.01)+C(b*125)*3-a*300;w=b*h;return}if(c>32){c=c*1.16-.15;o=a*45-20;w=b*b*h;z=o*S(c)+w*C(c)+620;return}o=A*(2-b)*(80-c*2);w=99-C(A)*120-C(b)*(-h-c*4.9)+C(P(1-b,7))*50+c*2;z=o*S(c)+w*C(c)+700;return}}setInterval('for(i=0;i<1e4;i++)if(s=p(R(),R(),i%46/.74)){z=s;x=~~(s*f/z-h);y=~~(s*f/z-h);if(!m|m>z)m=z,a.fillStyle="rgb("+~(s*h)+","+~(s*h)+","+~(s*s*-80)+")",a.fillRect(x,y,1,1)}',0)
// end of submission //
</script> <div style="text-align:center">
<canvas id="c" height="500" width="500"></canvas>
</div>
<script>
var b = document.body;
var c = document.getElementsByTagName('canvas');
var a = c.getContext('2d');
document.body.clientWidth; // fix bug in webkit: http://qfox.nl/weblog/218
</script>
<script>
// start of submission //
with(m=Math)C=cos,S=sin,P=pow,R=random;c.width=c.height=f=500;h=-250;function p(a,b,c){if(c>60)return;A=a*2-1;B=b*2-1;if(A*A+B*B<1){if(c>37){n=(j=c&1)?6:4;o=.5/(a+.01)+C(b*125)*3-a*300;w=b*h;return}if(c>32){c=c*1.16-.15;o=a*45-20;w=b*b*h;z=o*S(c)+w*C(c)+620;return}o=A*(2-b)*(80-c*2);w=99-C(A)*120-C(b)*(-h-c*4.9)+C(P(1-b,7))*50+c*2;z=o*S(c)+w*C(c)+700;return}}setInterval('for(i=0;i<1e4;i++)if(s=p(R(),R(),i%46/.74)){z=s;x=~~(s*f/z-h);y=~~(s*f/z-h);if(!m|m>z)m=z,a.fillStyle="rgb("+~(s*h)+","+~(s*h)+","+~(s*s*-80)+")",a.fillRect(x,y,1,1)}',0)
// end of submission //
</script> 借用一哈
新空气 发表于 2023-2-14 22:16
只有版主可以在帖子中嵌入html代码 好帅
页:
[1]