Commit 832ed355 authored by Nigel Tao's avatar Nigel Tao

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

R=r
CC=golang-dev
https://golang.org/cl/2138045
parent 092a8ea6
......@@ -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 }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment