#shusheng {position:absolute; Width:100%; Height:100%; Text-Align:center; } </style>varb =document.body; varc = document.getelementsbytagname (' canvas ') [0]; varA = C.getcontext (' 2d '); Document.body.clientWidth; </script> <script> with(M = Math) C = cos, S = sin, P = pow, R =Random; C.width= C.height = f = 500; H=-250; functionP (A, B, c) {if(C > 60)return[S (A * 7) * (+ 5/(. 2 + P (b * 4, 4)))-S (b) *, b * f + p, 625 + C (A * 7) * (+ 5/(. 2 + P (b * 4, 4)) + b * +, A * 1-b/2, a]; 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 +.) + C (b *) * 3-A * 300; W= b *h; return[O * C (n) + W * s (n) + j * 610-390, O * s (n)-W * C (N) + 550-j *, 1180 + C (B +A)* 99-j *,. 4-a *. 1 + p (1-b * b,-H * 6) *. 15-a * B *. 4 + C (A + B)/5 + p (C (O * (A + 1) + (B > 0 W:-W))/+) *. 1 * (1-b * B), O/1e3 +. 7-o* W * 3e-6 ] } 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 * C (c)-W * S (c), + + C (b *. 5) * 99-b * b * b * 60-z/2-h, Z, (b * b *. 3 +P ((1-(A * a)), 7) *. +. 3) * B, b *. 7]} o= A * (2-b) * (80-C * 2); W= 99-c (A) * 120-C (b) * (-H-C * 4.9) + C (P (1-b, 7)) * + c * 2; Z= O * S (c) + W * C (c) + 700; return[O * C (c)-W * S (c), B * 99-C (P (B, 7)) * 50-c/3-Z/1.35 +, Z, (1-b/1.2) * .9 + A *. 1, 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=y*f+x]|m[q] >Z) m[q]=z,a.fillstyle= "RGB (" +~ (s[3]*h) + "," +~ (s[4]*h) + "," +~ (s[3]*s[3]*-80) + ")", A.fillrect (x,y,1,1)} ', 0) </script> </div></body>JS implementation of Rose Flower