summaryrefslogtreecommitdiff
path: root/tests/typ/graphics/shape-fill-stroke.typ
diff options
context:
space:
mode:
authorMartin Haug <mhaug@live.de>2022-05-02 18:25:53 +0200
committerMartin Haug <mhaug@live.de>2022-05-02 18:25:53 +0200
commit9b4397cdab25daff448cefb179a4699f64fa3d3f (patch)
treed5a684a4bcc0846e3213f3777f33159db21a2639 /tests/typ/graphics/shape-fill-stroke.typ
parentf07395f9a47502c50f767f78a233d0e2a6e4445f (diff)
Tests for the new shape API
Diffstat (limited to 'tests/typ/graphics/shape-fill-stroke.typ')
-rw-r--r--tests/typ/graphics/shape-fill-stroke.typ10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/typ/graphics/shape-fill-stroke.typ b/tests/typ/graphics/shape-fill-stroke.typ
index c09cb065..d14d0981 100644
--- a/tests/typ/graphics/shape-fill-stroke.typ
+++ b/tests/typ/graphics/shape-fill-stroke.typ
@@ -38,3 +38,13 @@
#sq(stroke: blue)
#sq(fill: teal, stroke: blue)
#sq(fill: teal, stroke: 2pt + blue)
+
+---
+// Test stroke composition.
+#set square(stroke: 4pt)
+#set text("Roboto")
+#square(
+ stroke: (left: red, top: yellow, right: green, bottom: blue),
+ radius: 100%, align(center+horizon)[*G*],
+ inset: 8pt
+)