typst/tests/typ/visualize/gradient-hue-rotation.typ
Sébastien d'Herbais de Thun d869a07d2d
Remove HSV and HSL color spaces from PDF export (#2927)
Co-authored-by: EpicEricEE <github@ericbiedert.de>
2023-12-13 14:35:56 +01:00

67 lines
1.1 KiB
Typst

// 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)
)