diff options
| author | Sébastien d'Herbais de Thun <sebastien.d.herbais@gmail.com> | 2023-10-10 11:29:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-10 11:29:05 +0200 |
| commit | cef2d3afcae87230dbe361ef48ecb5dad50ad0a5 (patch) | |
| tree | e7016794152f799d08f792a67f6547c807a8dcd0 /tests/typ/visualize/gradient-stroke.typ | |
| parent | 877ee39a8c7634b85e2652e8a335be4020468dfd (diff) | |
Gradient Part 4 - Conic gradients (#2325)
Diffstat (limited to 'tests/typ/visualize/gradient-stroke.typ')
| -rw-r--r-- | tests/typ/visualize/gradient-stroke.typ | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/typ/visualize/gradient-stroke.typ b/tests/typ/visualize/gradient-stroke.typ index 01616fe3..d4461497 100644 --- a/tests/typ/visualize/gradient-stroke.typ +++ b/tests/typ/visualize/gradient-stroke.typ @@ -1,8 +1,9 @@ // Test gradients on strokes. --- -#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( @@ -13,6 +14,16 @@ ) --- +#align( + center + bottom, + square( + size: 50pt, + fill: black, + stroke: 10pt + gradient.conic(red, blue) + ) +) + +--- // Test gradient on lines #set page(width: 100pt, height: 100pt) #line(length: 100%, stroke: 1pt + gradient.linear(red, blue)) |
