diff options
Diffstat (limited to 'tests/typ/visualize/gradient-stroke.typ')
| -rw-r--r-- | tests/typ/visualize/gradient-stroke.typ | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/typ/visualize/gradient-stroke.typ b/tests/typ/visualize/gradient-stroke.typ index a156dde7..01616fe3 100644 --- a/tests/typ/visualize/gradient-stroke.typ +++ b/tests/typ/visualize/gradient-stroke.typ @@ -1,8 +1,16 @@ // Test gradients on strokes. --- -#set page(width: 100pt, height: 100pt) -#align(center + horizon, square(size: 50pt, fill: black, stroke: 5pt + gradient.linear(red, blue))) +#set page(width: 100pt, height: auto, margin: 10pt) +#align(center + top, square(size: 50pt, fill: black, stroke: 5pt + gradient.linear(red, blue))) +#align( + center + bottom, + square( + size: 50pt, + fill: gradient.radial(red, blue, radius: 70.7%, focal-center: (10%, 10%)), + stroke: 10pt + gradient.radial(red, blue, radius: 70.7%, focal-center: (10%, 10%)) + ) +) --- // Test gradient on lines |
