diff options
| author | Sébastien d'Herbais de Thun <sebastien.d.herbais@gmail.com> | 2023-12-13 14:35:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-13 14:35:56 +0100 |
| commit | d869a07d2dbdfb5f1952d2d574f6848d21e7f68e (patch) | |
| tree | 60675c24ff8c95244427e3babd2d6c29caee052c /tests/typ | |
| parent | 077d6b5c5442dc840327567944df64043e42e0a8 (diff) | |
Remove HSV and HSL color spaces from PDF export (#2927)
Co-authored-by: EpicEricEE <github@ericbiedert.de>
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/visualize/gradient-hue-rotation.typ | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/tests/typ/visualize/gradient-hue-rotation.typ b/tests/typ/visualize/gradient-hue-rotation.typ new file mode 100644 index 00000000..2cc6f9a6 --- /dev/null +++ b/tests/typ/visualize/gradient-hue-rotation.typ @@ -0,0 +1,66 @@ +// Tests whether hue rotation works correctly. + +--- +// Test in Oklab space for reference. +#set page( + width: 100pt, + height: 30pt, + fill: gradient.linear(red, purple, space: oklab) +) + +--- +// Test in OkLCH space. +#set page( + width: 100pt, + height: 30pt, + fill: gradient.linear(red, purple, space: oklch) +) + +--- +// Test in HSV space. +#set page( + width: 100pt, + height: 30pt, + fill: gradient.linear(red, purple, space: color.hsv) +) + +--- +// Test in HSL space. +#set page( + width: 100pt, + height: 30pt, + fill: gradient.linear(red, purple, space: color.hsl) +) + + +--- +// Test in Oklab space for reference. +#set page( + width: 100pt, + height: 100pt, + fill: gradient.conic(red, purple, space: oklab) +) + +--- +// Test in OkLCH space. +#set page( + width: 100pt, + height: 100pt, + fill: gradient.conic(red, purple, space: oklch) +) + +--- +// Test in HSV space. +#set page( + width: 100pt, + height: 100pt, + fill: gradient.conic(red, purple, space: color.hsv) +) + +--- +// Test in HSL space. +#set page( + width: 100pt, + height: 100pt, + fill: gradient.conic(red, purple, space: color.hsl) +) |
