github.com/utopiagio/gio@v0.0.8/op/clip/shapes_test.go (about) 1 package clip_test 2 3 import ( 4 "image" 5 "image/color" 6 "testing" 7 8 "github.com/utopiagio/gio/op" 9 "github.com/utopiagio/gio/op/clip" 10 "github.com/utopiagio/gio/op/paint" 11 ) 12 13 func TestZeroEllipse(t *testing.T) { 14 p := image.Pt(1.0, 2.0) 15 e := clip.Ellipse{Min: p, Max: p} 16 ops := new(op.Ops) 17 paint.FillShape(ops, color.NRGBA{R: 255, A: 255}, e.Op(ops)) 18 }