summaryrefslogtreecommitdiff
path: root/vendor/github.com/fogleman/gg/examples/circle.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/fogleman/gg/examples/circle.go')
-rw-r--r--vendor/github.com/fogleman/gg/examples/circle.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/github.com/fogleman/gg/examples/circle.go b/vendor/github.com/fogleman/gg/examples/circle.go
new file mode 100644
index 0000000..5debf66
--- /dev/null
+++ b/vendor/github.com/fogleman/gg/examples/circle.go
@@ -0,0 +1,11 @@
+package main
+
+import "github.com/fogleman/gg"
+
+func main() {
+ dc := gg.NewContext(1000, 1000)
+ dc.DrawCircle(500, 500, 400)
+ dc.SetRGB(0, 0, 0)
+ dc.Fill()
+ dc.SavePNG("out.png")
+}