mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
op/clip: smoother implementation of Arc for large angles
Signed-off-by: Sebastien Binet <s@sbinet.org>
This commit is contained in:
committed by
Elias Naur
parent
1584f3a64a
commit
f2cd504a9f
@@ -61,6 +61,7 @@ func TestPaintArc(t *testing.T) {
|
||||
p.Line(f32.Pt(0, 25))
|
||||
p.Arc(f32.Pt(-10, 5), f32.Pt(10, 15), -math.Pi)
|
||||
p.Line(f32.Pt(0, 25))
|
||||
p.Arc(f32.Pt(10, 10), f32.Pt(10, 10), 2*math.Pi)
|
||||
p.Line(f32.Pt(-10, 0))
|
||||
p.Arc(f32.Pt(-10, 0), f32.Pt(-40, 0), -math.Pi)
|
||||
p.Line(f32.Pt(-10, 0))
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2.2 KiB |
Reference in New Issue
Block a user