Nigel Tao
93159e32e7
image: add an offset to Tiled.
...
R=r, r2
CC=golang-dev
https://golang.org/cl/2469041
2010-10-13 12:05:21 +11:00
Nigel Tao
a3e971d355
image: another build fix regarding ColorImage.
...
R=adg
TBR=adg
CC=golang-dev
https://golang.org/cl/2449041
2010-10-12 14:33:37 +11:00
Nigel Tao
b5a480f035
image: add image.Tiled type, the Go equivalent of Plan9's repl bit.
...
Make ColorImage methods' receiver type be a pointer.
R=r, rsc
CC=golang-dev
https://golang.org/cl/2345043
2010-10-12 13:44:11 +11:00
Nigel Tao
832ed355fe
image: change a ColorImage's minimum point from (0, 0) to (-1e9, -1e9).
...
R=r
CC=golang-dev
https://golang.org/cl/2138045
2010-09-07 19:16:59 +10:00
Nigel Tao
7d3173fc1d
exp/draw: remove the Color, Point and Rectangle types.
...
image: introduce Transparent and Opaque.
R=r
CC=golang-dev
https://golang.org/cl/1947042
2010-08-10 22:05:11 +10:00
Nigel Tao
5eb35e4247
image: replace Width and Height by Bounds, and introduce the Point and
...
Rect types.
The actual image representation is unchanged. A future change will
replace the {[][]color} with {[]color, stride int, r Rectangle} and
possibly a clip region.
The draw.Color, draw.Point and draw.Rect types will be removed in a
future change. Trying to do it in this one polluted the diff with
trivia.
R=r, rsc
CC=golang-dev
https://golang.org/cl/1918047
2010-08-10 12:08:52 +10:00
Nigel Tao
244b6583b7
image: introduce Gray and Gray16 types, and remove the named colors
...
except for Black and White.
R=rsc
CC=golang-dev, mpl, r
https://golang.org/cl/1903049
2010-08-03 10:57:53 +10:00
Nigel Tao
c2e9f0c562
Add Opaque method to the image types.
...
R=rsc
CC=golang-dev
https://golang.org/cl/1533041
2010-06-03 17:18:26 -07:00
Nigel Tao
ea344e123a
Add named colors (e.g. image.Blue), suitable for exp/draw.
...
R=r, rsc
CC=golang-dev
https://golang.org/cl/198066
2010-02-04 20:25:37 +11:00