internal/scene: add color to OpFillColor String representation

For gio#277

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-09-24 13:51:06 +02:00
parent 868ea76acf
commit 8b4758947f
+1 -1
View File
@@ -63,7 +63,7 @@ func (c Command) String() string {
from, ctrl0, ctrl1, to := DecodeCubic(c)
return fmt.Sprintf("cubic(%v, %v, %v, %v)", from, ctrl0, ctrl1, to)
case OpFillColor:
return "fillcolor"
return fmt.Sprintf("fillcolor %#.8x", c[1])
case OpLineWidth:
return "linewidth"
case OpTransform: