fix compiler error (ouch)
This commit is contained in:
parent
4cff721955
commit
ca86b961f2
8
data.go
8
data.go
|
@ -212,7 +212,13 @@ func PictureDataFromPicture(pic Picture) *PictureData {
|
||||||
math.Max(x, bounds.Min.X()),
|
math.Max(x, bounds.Min.X()),
|
||||||
math.Max(y, bounds.Min.Y()),
|
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