42
43
if you found this on ur own congrats
44
45
Noel is here
46
47
Tune in
48
49
50
you have spotify?
51
{
93
94
const x =
95
canvas.width / 2 +
96
Math.sin(t + i * 1.5) * 400;
97
98
const y =
99
canvas.height / 2 +
100
Math.cos(t * 0.8 + i * 2) * 250;
101
102
const gradient = ctx.createRadialGradient(
103
x, y, 0,
104
x, y, 300
105
);
106
107
gradient.addColorStop(0, color);
108
gradient.addColorStop(1, "transparent");
109
110
ctx.fillStyle = gradient;
111
ctx.fillRect(0, 0, canvas.width, canvas.height);
112
});
113
114
t += 0.005;
115
116
requestAnimationFrame(animate);
117
}
118
119
animate();
120
121
122
123
124