๐Ÿ”ฐgradients

browser โŸฉ canvas โŸฉ graphics state โŸฉ fill/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?