From d869a07d2dbdfb5f1952d2d574f6848d21e7f68e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20d=27Herbais=20de=20Thun?= Date: Wed, 13 Dec 2023 14:35:56 +0100 Subject: Remove HSV and HSL color spaces from PDF export (#2927) Co-authored-by: EpicEricEE --- tests/ref/visualize/gradient-hue-rotation.png | Bin 0 -> 32558 bytes tests/typ/visualize/gradient-hue-rotation.typ | 66 ++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 tests/ref/visualize/gradient-hue-rotation.png create mode 100644 tests/typ/visualize/gradient-hue-rotation.typ (limited to 'tests') diff --git a/tests/ref/visualize/gradient-hue-rotation.png b/tests/ref/visualize/gradient-hue-rotation.png new file mode 100644 index 00000000..2d786f71 Binary files /dev/null and b/tests/ref/visualize/gradient-hue-rotation.png differ 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) +) -- cgit v1.2.3