From 920f472de00450e6b86806de8f9dc6a5201481b3 Mon Sep 17 00:00:00 2001 From: Michael Fogleman Date: Fri, 19 Feb 2016 13:53:33 -0500 Subject: [PATCH] simplify example --- examples/circle.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/examples/circle.go b/examples/circle.go index 3e17a09..3fa0a79 100644 --- a/examples/circle.go +++ b/examples/circle.go @@ -4,13 +4,9 @@ import "github.com/fogleman/gg" func main() { dc := gg.NewContext(1000, 1000) - dc.SetRGB(1, 1, 1) - dc.Clear() dc.DrawCircle(500, 500, 400) - dc.SetRGBA(0, 0, 0, 0.25) - dc.FillPreserve() - dc.SetRGB(0, 0, 0.5) - dc.SetLineWidth(8) + dc.SetRGB(0, 0, 0) + dc.SetLineWidth(10) dc.Stroke() dc.WritePNG("out.png") }