mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 16:59:27 +08:00
This commit is contained in:
1 parent
bcb9f98f8b
commit
3959664448
52 files changed
+1864
-407
No files matched your search
@@ -261,6 +261,7 @@ func semanticGradient(paint Paint, matrix Matrix) (*RasterGradient, Matrix) {
|
||||
period = s.MapUnit / length
|
||||
}
|
||||
g := &RasterGradient{Start: RasterPoint{s.Start.X, s.Start.Y}, End: RasterPoint{s.End.X, s.End.Y}, R0: s.StartRadius, R1: s.EndRadius, Stops: s.Stops, Spread: &RasterSpread{Extend: extend, MapType: s.MapType, Period: period}}
|
||||
g.Sample = s.Sample
|
||||
if paint.Kind == PaintRadial {
|
||||
g.Kind = RasterRadial
|
||||
if s.Eccentricity > 0 && s.Eccentricity < 1 {
|
||||
|
||||
Reference in new issue
Block a user