mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 17:27:08 +08:00
1 parent
affc84459e
commit
e78ea6f919
18 files changed
+567
-51
No files matched your search
@@ -79,6 +79,9 @@ func rasterCommandCost(command RasterCommand) int {
|
||||
}
|
||||
if command.Paint.Gradient != nil {
|
||||
cost += 256 + len(command.Paint.Gradient.Stops)*64
|
||||
if mesh := command.Paint.Gradient.Mesh; mesh != nil {
|
||||
cost += 32 + len(mesh.Triangles)*240
|
||||
}
|
||||
}
|
||||
return cost
|
||||
}
|
||||
Reference in new issue
Block a user