fix compiler error (ouch)
This commit is contained in:
parent
951c7f4c59
commit
d595d5f647
8
data.go
8
data.go
|
@ -212,7 +212,13 @@ func PictureDataFromPicture(pic Picture) *PictureData {
|
|||
math.Max(x, bounds.Min.X()),
|
||||
math.Max(y, bounds.Min.Y()),
|
||||
)
|
||||
pd.SetColor(at, pic.Color(at))
|
||||
col := pic.Color(at)
|
||||
pd.Pix[pd.Index(at)] = color.RGBA{
|
||||
R: uint8(col.R * 255),
|
||||
G: uint8(col.G * 255),
|
||||
B: uint8(col.B * 255),
|
||||
A: uint8(col.A * 255),
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue