1
0
mirror of https://github.com/golang/go synced 2024-11-20 05:04:43 -07:00

exp/draw: unbreak build.

R=adg
CC=golang-dev
https://golang.org/cl/2448041
This commit is contained in:
Nigel Tao 2010-10-12 14:05:50 +11:00
parent b5a480f035
commit cd0a75f3d7

View File

@ -16,11 +16,11 @@ func eq(c0, c1 image.Color) bool {
}
func fillBlue(alpha int) image.Image {
return image.ColorImage{image.RGBAColor{0, 0, uint8(alpha), uint8(alpha)}}
return image.NewColorImage(image.RGBAColor{0, 0, uint8(alpha), uint8(alpha)})
}
func fillAlpha(alpha int) image.Image {
return image.ColorImage{image.AlphaColor{uint8(alpha)}}
return image.NewColorImage(image.AlphaColor{uint8(alpha)})
}
func vgradGreen(alpha int) image.Image {