mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
1 parent
affc84459e
commit
e78ea6f919
18 files changed
+567
-51
No files matched your search
@@ -100,6 +100,10 @@ func (c *canvasPageCompiler) fill(path *canvas.Path, paint canvas.Paint, rule ca
|
||||
g := &RasterGradient{}
|
||||
var stops canvas.Grad
|
||||
switch source := paint.Gradient.(type) {
|
||||
case rasterGradientCanvas:
|
||||
copy := *source.gradient
|
||||
g = ©
|
||||
stops = canvasGradient(g.Stops)
|
||||
case *canvas.LinearGradient:
|
||||
g.Kind, g.Start, g.End = RasterLinear, rasterPoint(source.Start), rasterPoint(source.End)
|
||||
stops = source.Grad
|
||||
|
||||
Reference in new issue
Block a user