diff options
Diffstat (limited to 'tests/typ/visualize')
| -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 +) $ |
