diff options
| author | HydroH <ixlesis@gmail.com> | 2024-07-22 22:24:29 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-22 14:24:29 +0000 |
| commit | 1d74c8e8bfe47723f62eb0dbb3852c07a43be5fd (patch) | |
| tree | 8db52750dd488ed3611a5328cd1407f302897c76 /tests/suite/visualize/path.typ | |
| parent | 684efa2e0eadcf5b5d7d216ab8f5f5b1c68a35a6 (diff) | |
Add `non-zero` and `even-odd` fill rules to `path` and `polygon` (#4580)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'tests/suite/visualize/path.typ')
| -rw-r--r-- | tests/suite/visualize/path.typ | 24 |
1 files changed, 22 insertions, 2 deletions
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 --- |
