typst/tests/typ/elements/ellipse.typ
2021-11-29 13:12:50 +01:00

24 lines
507 B
XML

// Test the `ellipse` function.
---
// Default ellipse.
#ellipse()
---
Rect in ellipse in fixed rect. \
#rect(width: 3cm, height: 2cm, fill: rgb("2a631a"),
ellipse(fill: forest, width: 100%, height: 100%,
rect(fill: conifer, width: 100%, height: 100%,
align(center + horizon)[
Stuff inside an ellipse!
]
)
)
)
Auto-sized ellipse. \
#ellipse(fill: conifer, stroke: forest, thickness: 3pt, padding: 3pt)[
#font(8pt)
But, soft! what light through yonder window breaks?
]