ui/draw: switch to color.RGBA for colors

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-07-02 14:56:48 +02:00
parent 683df6345b
commit 33fc35f58d
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ type drawState struct {
img image.Image
imgRect image.Rectangle
// Current ColorOp, if any.
color color.NRGBA
color color.RGBA
}
type pathOp struct {
+2 -2
View File
@@ -19,7 +19,7 @@ type ImageOp struct {
}
type ColorOp struct {
Col color.NRGBA
Col color.RGBA
}
type DrawOp struct {
@@ -73,7 +73,7 @@ func (c *ColorOp) Decode(data []byte, refs []interface{}) {
panic("invalid op")
}
*c = ColorOp{
Col: color.NRGBA{
Col: color.RGBA{
R: data[1],
G: data[2],
B: data[3],