1
0
mirror of https://github.com/golang/go synced 2024-09-25 09:10:14 -06:00

image: change a ColorImage's minimum point from (0, 0) to (-1e9, -1e9).

R=r
CC=golang-dev
https://golang.org/cl/2138045
This commit is contained in:
Nigel Tao 2010-09-07 19:16:59 +10:00
parent 092a8ea6b8
commit 832ed355fe

View File

@ -29,7 +29,7 @@ func (c ColorImage) ColorModel() ColorModel {
return ColorModelFunc(func(Color) Color { return c.C })
}
func (c ColorImage) Bounds() Rectangle { return Rectangle{ZP, Point{1e9, 1e9}} }
func (c ColorImage) Bounds() Rectangle { return Rectangle{Point{-1e9, -1e9}, Point{1e9, 1e9}} }
func (c ColorImage) At(x, y int) Color { return c.C }