diff options
Diffstat (limited to 'tests/typ/graphics/shape-fill-stroke.typ')
| -rw-r--r-- | tests/typ/graphics/shape-fill-stroke.typ | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/tests/typ/graphics/shape-fill-stroke.typ b/tests/typ/graphics/shape-fill-stroke.typ index 935f3bc7..dd5b9ee8 100644 --- a/tests/typ/graphics/shape-fill-stroke.typ +++ b/tests/typ/graphics/shape-fill-stroke.typ @@ -1,22 +1,22 @@ // Test shape fill & stroke. --- -#let rect with (width: 20pt, height: 10pt) -#let items = for i, rect in ( - rect(stroke: none), - rect(), - rect(fill: none), - rect(thickness: 2pt), - rect(stroke: eastern), - rect(stroke: eastern, thickness: 2pt), - rect(fill: eastern), - rect(fill: eastern, stroke: none), - rect(fill: forest, stroke: none, thickness: 2pt), - rect(fill: forest, stroke: conifer), - rect(fill: forest, stroke: black, thickness: 2pt), - rect(fill: forest, stroke: conifer, thickness: 2pt), +#let variant = rect.with(width: 20pt, height: 10pt) +#let items = for i, item in ( + variant(stroke: none), + variant(), + variant(fill: none), + variant(thickness: 2pt), + variant(stroke: eastern), + variant(stroke: eastern, thickness: 2pt), + variant(fill: eastern), + variant(fill: eastern, stroke: none), + variant(fill: forest, stroke: none, thickness: 2pt), + variant(fill: forest, stroke: conifer), + variant(fill: forest, stroke: black, thickness: 2pt), + variant(fill: forest, stroke: conifer, thickness: 2pt), ) { - (align(horizon)[{i + 1}.], rect, []) + (align(horizon)[{i + 1}.], item, []) } #grid( |
