summaryrefslogtreecommitdiff
path: root/tests/typ/elements/circle.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-11-20 15:51:07 +0100
committerLaurenz <laurmaedje@gmail.com>2021-11-20 15:51:07 +0100
commitcef46e6c40fed0089a20e44ff2f251c06878891c (patch)
treea4f12ced1441a014f0446f5b01e3f0f87bdd21b5 /tests/typ/elements/circle.typ
parent70c0dd767452772d29167e39b1c4f919519422ce (diff)
Strokes
Diffstat (limited to 'tests/typ/elements/circle.typ')
-rw-r--r--tests/typ/elements/circle.typ16
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/typ/elements/circle.typ b/tests/typ/elements/circle.typ
index 5be9cf56..b89c8a0d 100644
--- a/tests/typ/elements/circle.typ
+++ b/tests/typ/elements/circle.typ
@@ -3,17 +3,18 @@
---
// Default circle.
#circle()
+#circle[Hey]
---
// Test auto sizing.
Auto-sized circle. \
-#circle(fill: rgb("eb5278"))[
- #align(center, center)[But, soft!]
-]
+#circle(fill: rgb("eb5278"), thickness: 2pt,
+ align(center, center)[But, soft!]
+)
Center-aligned rect in auto-sized circle.
-#circle(fill: forest,
+#circle(fill: forest, stroke: conifer,
align(center, center,
rect(fill: conifer, pad(5pt)[But, soft!])
)
@@ -21,17 +22,18 @@ Center-aligned rect in auto-sized circle.
Rect in auto-sized circle. \
#circle(fill: forest,
- rect(fill: conifer)[
+ rect(fill: conifer, stroke: white, padding: 4pt)[
+ #font(8pt)
But, soft! what light through yonder window breaks?
]
)
Expanded by height.
-#circle(fill: conifer)[A \ B \ C]
+#circle(stroke: black, align(center)[A \ B \ C])
---
// Ensure circle directly in rect works.
-#rect(width: 40pt, height: 30pt, circle(fill: forest))
+#rect(width: 40pt, height: 30pt, fill: forest, circle(fill: conifer))
---
// Test relative sizing.