diff options
| author | Sébastien d'Herbais de Thun <sebastien.d.herbais@gmail.com> | 2023-11-08 15:51:25 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-08 15:51:25 +0100 |
| commit | d7fea7077ebe4df44edff32b2b3a6e4a00775974 (patch) | |
| tree | 810edbfd0090668497b098bd6ac893cb574d0c55 /tests/typ/visualize/gradient-math.typ | |
| parent | ccbe901cb70f963a546b0950543f77d5536cce67 (diff) | |
Gradient Part 5c: Fix gradient rotation on text & math (#2606)
Diffstat (limited to 'tests/typ/visualize/gradient-math.typ')
| -rw-r--r-- | tests/typ/visualize/gradient-math.typ | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/tests/typ/visualize/gradient-math.typ b/tests/typ/visualize/gradient-math.typ index 2030ecbb..03d7c477 100644 --- a/tests/typ/visualize/gradient-math.typ +++ b/tests/typ/visualize/gradient-math.typ @@ -55,7 +55,6 @@ $ x_"1,2" = frac(-b +- sqrt(b^2 - 4 a c), 2 a) $ --- // Test miscelaneous - #show math.equation: set text(fill: gradient.linear(..color.map.rainbow)) #show math.equation: box @@ -66,3 +65,25 @@ $ attach( Pi, t: alpha, b: beta, tl: 1, tr: 2+3, bl: 4+5, br: 6, ) $ + +--- +// Test radial gradient +#show math.equation: set text(fill: gradient.radial(..color.map.rainbow, center: (30%, 30%))) +#show math.equation: box + +$ A = mat( + 1, 2, 3; + 4, 5, 6; + 7, 8, 9 +) $ + +--- +// Test conic gradient +#show math.equation: set text(fill: gradient.conic(red, blue, angle: 45deg)) +#show math.equation: box + +$ A = mat( + 1, 2, 3; + 4, 5, 6; + 7, 8, 9 +) $ |
