summaryrefslogtreecommitdiff
path: root/tests/typ/visualize/gradient-stroke.typ
diff options
context:
space:
mode:
authorSébastien d'Herbais de Thun <sebastien.d.herbais@gmail.com>2023-10-06 16:47:20 +0200
committerGitHub <noreply@github.com>2023-10-06 16:47:20 +0200
commite7443abfe681a27ee47993d192f8a82953d43b73 (patch)
tree03446e4bfe9ab9aae96f151c7c228d3e26bdc89d /tests/typ/visualize/gradient-stroke.typ
parentbced71b250225e30efa2fd0341bf825bf685a376 (diff)
Gradient Part 3 - Radial gradients (#2312)
Diffstat (limited to 'tests/typ/visualize/gradient-stroke.typ')
-rw-r--r--tests/typ/visualize/gradient-stroke.typ12
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