diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-21 16:19:46 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-21 16:19:46 +0100 |
| commit | 31f904a2c406953cbce334e02b37a712b9b9d016 (patch) | |
| tree | c23f6e063864d97afb9b3d58c10ce4c2877106c5 /tests/typ/visualize/shape-circle.typ | |
| parent | 4af7b9118c5ce612b3d9d7dd06118ce23b731d9c (diff) | |
Split up and document shapes
Diffstat (limited to 'tests/typ/visualize/shape-circle.typ')
| -rw-r--r-- | tests/typ/visualize/shape-circle.typ | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/typ/visualize/shape-circle.typ b/tests/typ/visualize/shape-circle.typ index 13ff67de..23c6fcbd 100644 --- a/tests/typ/visualize/shape-circle.typ +++ b/tests/typ/visualize/shape-circle.typ @@ -7,6 +7,7 @@ --- // Test auto sizing. +#set circle(inset: 0pt) Auto-sized circle. \ #circle(fill: rgb("eb5278"), stroke: 2pt + black, @@ -33,13 +34,14 @@ Expanded by height. --- // Ensure circle directly in rect works. -#rect(width: 40pt, height: 30pt, fill: forest, circle(fill: conifer)) +#rect(width: 40pt, height: 30pt, fill: forest, + circle(fill: conifer)) --- // Test relative sizing. #let centered(body) = align(center + horizon, body) #set text(fill: white) -#rect(width: 100pt, height: 50pt, fill: rgb("aaa"), centered[ +#rect(width: 100pt, height: 50pt, inset: 0pt, fill: rgb("aaa"), centered[ #circle(radius: 10pt, fill: eastern, centered[A]) // D=20pt #circle(height: 60%, fill: eastern, centered[B]) // D=30pt #circle(width: 20% + 20pt, fill: eastern, centered[C]) // D=40pt |
