fserb / canvas2D

Update Canvas 2D API
Other
149 stars 25 forks source link

Gradient spread methods #27

Open Herschel opened 2 years ago

Herschel commented 2 years ago

It would be useful if CanvasGradient allowed specifying a spread method, which determines how the gradient is rendered outside the [0.0, 1.0] stop range:

This would give canvas parity with spreadMethod in SVG and SpreadMethod going back to Flash.