servo / pathfinder

A fast, practical GPU rasterizer for fonts and vector graphics
Apache License 2.0
3.6k stars 201 forks source link

Implement gradient spread modes #386

Closed Herschel closed 4 years ago

Herschel commented 4 years ago

SVG allows specifying a spread method for gradients, e.g.: spreadMethod="reflect" which specifies how the gradient behaves beyond its bounds. It would be useful if Pathfinder could support these settings: