<html>
<head>
<title>玫瑰</title>
<style type="text/css">
#shusheng {
position: absolute;
width: 100%;
height: 100%;
text-align: center;
}
</style>
</head>
<body>
<div style="text-align: center">
<h1>
送给xxx的花
</h1>
</div>
<div id="shusheng">
<canvas id="c"></canvas>
<script>
var b = documentbody;
var c = documentgetElementsByTagName('canvas')[0];
var a = cgetContext('2d');
documentbodyclientWidth;
</script>
<script>
with(m=Math)C=cos,
S=sin,
P=pow,
R=random;
cwidth=cheight=f=500;
h=-250;
function p(a,b,c){
if(c>60)
return[S(a7)(13+5/(2+P(b4,4)))-S(b)50,bf+50,625+C(a7)(13+5/(2+P(b4,4)))+b400,a1-b/2,a];A=a2-1;
B=b2-1;
if(AA+BB<1){
if(c>37) {
n=(j=c&1)6:4;o=5/(a+01)+C(b125)3-a300;w=bh;
return[oC(n)+wS(n)+j610-390,oS(n)-wC(n)+550-j350,1180+C(B+A)99-j300,4-a1+P(1-BB,-h6)15-ab4+C(a+b)/5+P(C((o(a+1)+(B>0w:-w))/25),30)1(1-BB),o/1e3+7-ow3e-6]
}
if(c>32) {
c=c116-15;o=a45-20;w=bbh;z=oS(c)+wC(c)+620;
return[oC(c)-wS(c),28+C(B5)99-bbb60-z/2-h,z,(bb3+P((1-(AA)),7)15+3)b,b7]
}
o=A(2-b)(80-c2);
w=99-C(A)120-C(b)(-h-c49)+C(P(1-b,7))50+c2;
z=oS(c)+wC(c)+700;
return[oC(c)-wS(c),B99-C(P(b, 7))50-c/3-z/135+450,z,(1-b/12)9+a1, P((1-b),20)/4+05]
}
}
setInterval('for(i=0;i<1e4;i++)if(s=p(R(),R(),i%46/74)){z=s[2];x=~~(s[0]f/z-h);y=~~(s[1]f/z-h);if(!m[q=yf+x]|m[q]>z)m[q]=z,afillStyle="rgb("+~(s[3]h)+","+~(s[4]h)+","+~(s[3]s[3]-80)+")",afillRect(x,y,1,1)}',0)
</script>
</div>
</body>
</html>
保存到html文件,用浏览器打开,文字内容自己写
原发布者:year哈喽酷狗
#include
#include
#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