From: Benny Siegert Date: Thu, 19 Apr 2012 01:04:42 +0000 (+1000) Subject: [release-branch.go1] doc/articles/image_draw.html: Change ColorImage to Uniform X-Git-Tag: go1.0.1~21 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=78bf5690182977cd3cde5dcbfc3271f8826f0280;p=gostls13.git [release-branch.go1] doc/articles/image_draw.html: Change ColorImage to Uniform ««« backport a224d214002e doc/articles/image_draw.html: Change ColorImage to Uniform Fixes #3474. R=nigeltao CC=golang-dev https://golang.org/cl/6048050 »»» --- diff --git a/doc/articles/image_draw.html b/doc/articles/image_draw.html index ba735ad2b4..71658cf920 100644 --- a/doc/articles/image_draw.html +++ b/doc/articles/image_draw.html @@ -89,7 +89,7 @@ interface which has a Set method.

To fill a rectangle with a solid color, use an image.Uniform -source. The ColorImage type re-interprets a Color as a +source. The Uniform type re-interprets a Color as a practically infinite-sized Image of that color. For those familiar with the design of Plan 9's draw library, there is no need for an explicit "repeat bit" in Go's slice-based image types; the @@ -189,7 +189,7 @@ To draw an image through a circular mask with center p and radius

To draw a font glyph in blue starting from a point p, draw with -an image.ColorImage source and an image.Alpha mask. For +an image.Uniform source and an image.Alpha mask. For simplicity, we aren't performing any sub-pixel positioning or rendering, or correcting for a font's height above a baseline.