mirror of
https://github.com/golang/go
synced 2024-11-24 22:47:58 -07: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:
parent
092a8ea6b8
commit
832ed355fe
@ -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 }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user