🔰gradients

browsercanvasgraphics statefill/stroke styles ⟩ gradient

To fill (or stroke) with a gradient, set .fillStyle (or .strokeStyle) to a CanvasGradient object returned by: .createLinearGradient(), .createRadialGradient(), .createConicGradient().

Last updated

Was this helpful?