Canvas gradients, blur and light blending
Instead of a solid color circle, the radiating gradient, blur filter, light smearing shadow, plus mix are overlapped, and the overlapping place paints a brightly shining lump of light into the canvas.
- Category
- 2D drawing
Technical terms · Canvas radial gradient (createRadialGradient) · globalCompositeOperation = 'lighter' · shadowBlur · shadowColor (glow) · ctx.filter = blur()