typst/tests/typ/elements/ellipse.typ
Laurenz 1e74f7c407 New ShapeNode
Replaces `BackgroundNode` and `FixedNode`
2021-10-23 20:22:47 +02:00

22 lines
447 B
XML

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