update tests
This commit is contained in:
parent
0bff8ca6ee
commit
0176a80331
5 changed files with 16 additions and 14 deletions
|
@ -11,8 +11,8 @@ import (
|
|||
|
||||
"image"
|
||||
"image/png"
|
||||
"draw2d"
|
||||
//"draw2d.googlecode.com/svn/trunk/draw2d/src/pkg/draw2d"
|
||||
//"draw2d"
|
||||
"draw2d.googlecode.com/svn/trunk/draw2d/src/pkg/draw2d"
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"exp/draw/x11"
|
||||
"image"
|
||||
"math"
|
||||
"draw2d"
|
||||
//"draw2d.googlecode.com/svn/trunk/draw2d/src/pkg/draw2d"
|
||||
//"draw2d"
|
||||
"draw2d.googlecode.com/svn/trunk/draw2d/src/pkg/draw2d"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -11,12 +11,12 @@ import (
|
|||
"math"
|
||||
"image"
|
||||
"image/png"
|
||||
"draw2d"
|
||||
//"draw2d.googlecode.com/svn/trunk/draw2d/src/pkg/draw2d"
|
||||
//"draw2d"
|
||||
"draw2d.googlecode.com/svn/trunk/draw2d/src/pkg/draw2d"
|
||||
)
|
||||
|
||||
const (
|
||||
width, height = 500, 500
|
||||
width, height = 178, 224
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -93,6 +93,8 @@ func android(gc *draw2d.GraphicContext, x, y float) {
|
|||
|
||||
func main() {
|
||||
i, gc := initGc(width, height)
|
||||
android(gc, 100, 100)
|
||||
gc.SetFillColor(image.RGBAColor{0xff, 0x44, 0x44, 0xff})
|
||||
gc.SetStrokeColor(image.RGBAColor{0x44, 0x44, 0x44, 0xff})
|
||||
android(gc, 10, 10)
|
||||
saveToPngFile("TestAndroid", i)
|
||||
}
|
||||
|
|
|
@ -13,8 +13,8 @@ import (
|
|||
"math"
|
||||
"image"
|
||||
"image/png"
|
||||
"draw2d"
|
||||
//"draw2d.googlecode.com/svn/trunk/draw2d/src/pkg/draw2d"
|
||||
//"draw2d"
|
||||
"draw2d.googlecode.com/svn/trunk/draw2d/src/pkg/draw2d"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -11,12 +11,12 @@ import (
|
|||
|
||||
"image"
|
||||
"image/png"
|
||||
"draw2d"
|
||||
//"draw2d.googlecode.com/svn/trunk/draw2d/src/pkg/draw2d"
|
||||
//"draw2d"
|
||||
"draw2d.googlecode.com/svn/trunk/draw2d/src/pkg/draw2d"
|
||||
)
|
||||
|
||||
const (
|
||||
width, height = 500, 300
|
||||
width, height = 300, 200
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -129,7 +129,7 @@ func gordon(gc *draw2d.GraphicContext, x, y, w, h float) {
|
|||
func main() {
|
||||
i, gc := initGc(width, height)
|
||||
gc.Clear()
|
||||
gc.Translate(100, 100)
|
||||
gc.Translate(-75, 58)
|
||||
gc.Rotate(-30 * (math.Pi / 180.0))
|
||||
gordon(gc, 48, 48, 240, 72)
|
||||
saveToPngFile("TestGopher", i)
|
Loading…
Reference in a new issue