Canvas Radial Gradient
<!DOCTYPE html> <html> <body> <canvas id="glowCanvas" width="300" height="200" style="border:1px solid #ccc;"></canvas> <script> const canvas = document.getElementById("glowCanvas"); const ctx = canvas.getContext("2d"); // Same center, growing from a point (r0 = 0) to a 100px circle const glow = ctx.createRadialGradient(150, 100, 0, 150, 100, 100); glow.addColorStop(0, "#ffffff"); glow.addColorStop(1, "#3366ff"); ctx.fillStyle = glow; ctx.fillRect(0, 0, 300, 200); </script> </body> </html>