Change .NewGraphicContext package.

NewGraphicContext is also now in draw2dimg.
This commit is contained in:
Steven Edwards 2015-08-17 05:44:03 -04:00
parent a238a47879
commit 1a2db78d7b

View file

@ -31,7 +31,7 @@ The following Go code generates a simple drawing and saves it to an image file w
```go ```go
// Initialize the graphic context on an RGBA image // Initialize the graphic context on an RGBA image
dest := image.NewRGBA(image.Rect(0, 0, 297, 210.0)) dest := image.NewRGBA(image.Rect(0, 0, 297, 210.0))
gc := draw2d.NewGraphicContext(dest) gc := draw2dimg.NewGraphicContext(dest)
// Set some properties // Set some properties
gc.SetFillColor(color.RGBA{0x44, 0xff, 0x44, 0xff}) gc.SetFillColor(color.RGBA{0x44, 0xff, 0x44, 0xff})