mirror of
https://github.com/golang/go
synced 2024-11-25 08:57:58 -07:00
doc/articles/image_draw.html: fix circle example
It was showing the same snippet twice instead of the type definition and snippet. R=golang-dev, iant CC=golang-dev https://golang.org/cl/5875045
This commit is contained in:
parent
f39ff80bea
commit
fc9f65a6a0
@ -178,7 +178,7 @@ To draw an image through a circular mask with center <code>p</code> and radius
|
|||||||
<code>r</code>:
|
<code>r</code>:
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
{{code "/doc/progs/image_draw.go" `/CIRCLE/` `/STOP/`}}
|
{{code "/doc/progs/image_draw.go" `/CIRCLESTRUCT/` `/STOP/`}}
|
||||||
{{code "/doc/progs/image_draw.go" `/CIRCLE2/` `/STOP/`}}
|
{{code "/doc/progs/image_draw.go" `/CIRCLE2/` `/STOP/`}}
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
@ -117,7 +117,7 @@ func Glyph() {
|
|||||||
// STOP OMIT
|
// STOP OMIT
|
||||||
}
|
}
|
||||||
|
|
||||||
//CIRCLE OMIT
|
//CIRCLESTRUCT OMIT
|
||||||
type circle struct {
|
type circle struct {
|
||||||
p image.Point
|
p image.Point
|
||||||
r int
|
r int
|
||||||
@ -139,4 +139,4 @@ func (c *circle) At(x, y int) color.Color {
|
|||||||
return color.Alpha{0}
|
return color.Alpha{0}
|
||||||
}
|
}
|
||||||
|
|
||||||
//STOP
|
//STOP OMIT
|
||||||
|
Loading…
Reference in New Issue
Block a user