Rename ambiguous ColorModel to RGBModel

This commit is contained in:
Isamu Mogi 2016-06-16 16:13:50 +09:00
parent 4ba34829e7
commit 462078c647
2 changed files with 5 additions and 5 deletions

View file

@ -25,7 +25,7 @@ func NewRGBImage(r image.Rectangle) *RGBImage {
// ColorModel returns RGB color model.
func (p *RGBImage) ColorModel() color.Model {
return ColorModel
return RGBModel
}
// Bounds implements image.Image.At
@ -48,7 +48,7 @@ func (p *RGBImage) RGBAAt(x, y int) color.RGBA {
}
// ColorModel is RGB color model instance
var ColorModel = color.ModelFunc(rgbModel)
var RGBModel = color.ModelFunc(rgbModel)
func rgbModel(c color.Color) color.Color {
if _, ok := c.(RGB); ok {