gioui.org@v0.6.1-0.20240506124620-7a9ce51988ce/op/clip/shapes_test.go (about)

     1  package clip_test
     2  
     3  import (
     4  	"image"
     5  	"image/color"
     6  	"testing"
     7  
     8  	"gioui.org/op"
     9  	"gioui.org/op/clip"
    10  	"gioui.org/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  }