bug fix; use NRGBA

This commit is contained in:
Michael Fogleman 2016-02-18 21:07:44 -05:00
parent 5af2d1264c
commit d3e574108b

View File

@ -68,7 +68,7 @@ func (c *Context) Paint() {
} }
func (c *Context) SetSourceRGBA(r, g, b, a float64) { func (c *Context) SetSourceRGBA(r, g, b, a float64) {
c.color = color.RGBA{ c.color = color.NRGBA{
uint8(r * 255), uint8(r * 255),
uint8(g * 255), uint8(g * 255),
uint8(b * 255), uint8(b * 255),