<! DOCTYPE html>
<meta charset= "UTF-8" >
<title></title>
<script>
/* I don't believe in heaven, because I've been trapped in this hell for too long * *
</script>
<body
Style= "Background-color:pink;" >
<canvas
Id= "C" ></canvas>
<script>
var B = document.body;
var c = document.getelementsbytagname (' canvas ') [0];
var a = C.getcontext (' 2d ');
Document.body.clientwidth;</script>
<script> with (M = Math)
C = cos, S = sin, P = pow, R = random;
C.width = C.height = f = 613;
h =-250;
function P (A, B, c) {
if (C > 60)
return [S (A * 7) * (+ 5/(. 2 + P (b * 4, 4)))-S (b) *, b * f + 50,
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))/25), 30) *. 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) *. 15 +. 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>
</body>
Writing a confession animation with canvas