From 80f52004a0a411262dd8b29f1ed1469d493c1540 Mon Sep 17 00:00:00 2001 From: Michael Fogleman Date: Fri, 19 Feb 2016 09:43:37 -0500 Subject: [PATCH] package gg --- context.go | 2 +- examples/circle.go | 4 ++-- examples/example0.go | 4 ++-- examples/lines.go | 4 ++-- examples/star.go | 6 +++--- examples/text.go | 4 ++-- util.go | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/context.go b/context.go index dada847..efc363b 100644 --- a/context.go +++ b/context.go @@ -1,4 +1,4 @@ -package dd +package gg import ( "image" diff --git a/examples/circle.go b/examples/circle.go index 35a2e59..d10f8b4 100644 --- a/examples/circle.go +++ b/examples/circle.go @@ -1,9 +1,9 @@ package main -import "github.com/fogleman/dd" +import "github.com/fogleman/gg" func main() { - dc := dd.NewContext(1000, 1000) + dc := gg.NewContext(1000, 1000) dc.SetSourceRGB(1, 1, 1) dc.Paint() dc.DrawCircle(500, 500, 400) diff --git a/examples/example0.go b/examples/example0.go index 9f9a592..97a4d20 100644 --- a/examples/example0.go +++ b/examples/example0.go @@ -1,9 +1,9 @@ package main -import "github.com/fogleman/dd" +import "github.com/fogleman/gg" func main() { - dc := dd.NewContext(256, 256) + dc := gg.NewContext(256, 256) dc.SetSourceRGBA(1, 0, 0, 0.3) dc.Paint() dc.MoveTo(20, 20) diff --git a/examples/lines.go b/examples/lines.go index b81478b..5b63d12 100644 --- a/examples/lines.go +++ b/examples/lines.go @@ -3,13 +3,13 @@ package main import ( "math/rand" - "github.com/fogleman/dd" + "github.com/fogleman/gg" ) func main() { const W = 1024 const H = 1024 - dc := dd.NewContext(W, H) + dc := gg.NewContext(W, H) dc.SetSourceRGB(0, 0, 0) dc.Paint() for i := 0; i < 1000; i++ { diff --git a/examples/star.go b/examples/star.go index f874e4d..6591d15 100644 --- a/examples/star.go +++ b/examples/star.go @@ -3,7 +3,7 @@ package main import ( "math" - "github.com/fogleman/dd" + "github.com/fogleman/gg" ) type Point struct { @@ -22,7 +22,7 @@ func Polygon(n int, x, y, r float64) []Point { func main() { n := 5 points := Polygon(n, 512, 512, 400) - dc := dd.NewContext(1024, 1024) + dc := gg.NewContext(1024, 1024) dc.SetSourceRGB(1, 1, 1) dc.Paint() for i := 0; i < n+1; i++ { @@ -31,7 +31,7 @@ func main() { dc.LineTo(p.X, p.Y) } dc.SetSourceRGBA(0, 0.5, 0, 1) - dc.SetFillRule(dd.FillRuleEvenOdd) + dc.SetFillRule(gg.FillRuleEvenOdd) dc.FillPreserve() dc.SetSourceRGBA(0, 1, 0, 0.5) dc.SetLineWidth(16) diff --git a/examples/text.go b/examples/text.go index 614f941..4bcc520 100644 --- a/examples/text.go +++ b/examples/text.go @@ -1,9 +1,9 @@ package main -import "github.com/fogleman/dd" +import "github.com/fogleman/gg" func main() { - dc := dd.NewContext(1000, 1000) + dc := gg.NewContext(1000, 1000) dc.SetSourceRGB(1, 1, 1) dc.Paint() dc.SetSourceRGB(0, 0, 0) diff --git a/util.go b/util.go index 6b68e96..e38be26 100644 --- a/util.go +++ b/util.go @@ -1,4 +1,4 @@ -package dd +package gg import ( "image"