From 1d74c8e8bfe47723f62eb0dbb3852c07a43be5fd Mon Sep 17 00:00:00 2001 From: HydroH Date: Mon, 22 Jul 2024 22:24:29 +0800 Subject: Add `non-zero` and `even-odd` fill rules to `path` and `polygon` (#4580) Co-authored-by: Laurenz --- tests/suite/visualize/path.typ | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'tests/suite/visualize/path.typ') diff --git a/tests/suite/visualize/path.typ b/tests/suite/visualize/path.typ index bdd3dc72..95f7a803 100644 --- a/tests/suite/visualize/path.typ +++ b/tests/suite/visualize/path.typ @@ -1,10 +1,10 @@ // Test paths. --- path --- -#set page(height: 200pt, width: 200pt) +#set page(height: 300pt, width: 200pt) #table( columns: (1fr, 1fr), - rows: (1fr, 1fr), + rows: (1fr, 1fr, 1fr), align: center + horizon, path( fill: red, @@ -37,6 +37,26 @@ (30pt, 30pt), (15pt, 0pt), ), + path( + fill: red, + fill-rule: "non-zero", + closed: true, + (25pt, 0pt), + (10pt, 50pt), + (50pt, 20pt), + (0pt, 20pt), + (40pt, 50pt), + ), + path( + fill: red, + fill-rule: "even-odd", + closed: true, + (25pt, 0pt), + (10pt, 50pt), + (50pt, 20pt), + (0pt, 20pt), + (40pt, 50pt), + ), ) --- path-bad-vertex --- -- cgit v1.2.3