From a4e357fb37d76d32d06ad8cc21e47bb2cc064cfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20d=27Herbais=20de=20Thun?= Date: Tue, 3 Oct 2023 19:31:02 +0200 Subject: Gradient Part 2 - Linear gradients (#2279) --- tests/typ/visualize/gradient-stroke.typ | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/typ/visualize/gradient-stroke.typ (limited to 'tests/typ/visualize/gradient-stroke.typ') diff --git a/tests/typ/visualize/gradient-stroke.typ b/tests/typ/visualize/gradient-stroke.typ new file mode 100644 index 00000000..a156dde7 --- /dev/null +++ b/tests/typ/visualize/gradient-stroke.typ @@ -0,0 +1,12 @@ +// Test gradients on strokes. + +--- +#set page(width: 100pt, height: 100pt) +#align(center + horizon, square(size: 50pt, fill: black, stroke: 5pt + gradient.linear(red, blue))) + +--- +// Test gradient on lines +#set page(width: 100pt, height: 100pt) +#line(length: 100%, stroke: 1pt + gradient.linear(red, blue)) +#line(length: 100%, angle: 10deg, stroke: 1pt + gradient.linear(red, blue)) +#line(length: 100%, angle: 10deg, stroke: 1pt + gradient.linear(red, blue, relative: "parent")) -- cgit v1.2.3