Tweaked example
This commit is contained in:
parent
cc921ddb29
commit
41720caef5
@ -26,8 +26,8 @@ func main () {
|
|||||||
eye = ggfx.Circle(12, 16, midpoint.Add(image.Pt(40, -30)))
|
eye = ggfx.Circle(12, 16, midpoint.Add(image.Pt(40, -30)))
|
||||||
canvas.FillPolygon(black, eye...)
|
canvas.FillPolygon(black, eye...)
|
||||||
|
|
||||||
mouth := ggfx.Circle(16, 70, midpoint)
|
mouth := ggfx.Circle(24, 70, midpoint)
|
||||||
canvas.StrokePolygon(black, 2, mouth[1:8]...)
|
canvas.PolyLine(black, 2, mouth[1:12]...)
|
||||||
|
|
||||||
file, err := os.Create("TEST.png")
|
file, err := os.Create("TEST.png")
|
||||||
if err != nil { panic(err.Error()) }
|
if err != nil { panic(err.Error()) }
|
||||||
|
Loading…
Reference in New Issue
Block a user