Skip to content

Commit

Permalink
extend poly refimg test
Browse files Browse the repository at this point in the history
  • Loading branch information
ffreyer committed Dec 13, 2024
1 parent 08b9865 commit 2490fac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ReferenceTests/src/tests/examples2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@ end
linesegments!(ax,
[Point2f(50 + i, 50 + i) => Point2f(i + 70, i + 70) for i = 1:100:400], linewidth=8, color=:purple
)
poly!(ax, [Polygon(decompose(Point2f, Rect2f(150, 0, 100, 100))), Polygon(decompose(Point2f, Circle(Point2f(350, 200), 50)))],
color=:gray, strokewidth=10, strokecolor=:red)
# single objects
poly!(ax, Circle(Point2f(50, 350), 50), color=:gray, strokewidth=10, strokecolor=:red)
poly!(ax, Rect2f(0, 150, 100, 100), color=:gray, strokewidth=10, strokecolor=:red)
poly!(ax, Polygon(decompose(Point2f, Rect2f(150, 300, 100, 100))), color=:gray, strokewidth=10, strokecolor=:red)
fig
end

Expand Down

0 comments on commit 2490fac

Please sign in to comment.