Replies: 1 comment 5 replies
-
Hi, the issue isn't actually the chroma, but whether or not it has an upper bound. The oversight lies in the design of the
For Typst (looks like a neat application, by the way!), I think you need to ask yourself a couple of questions:
I'm not sure if I managed to answer your questions yet, but I hope it's a step forward. |
Beta Was this translation helpful? Give feedback.
-
I am currently in the process of deciding how I want to improve Typst's
color.saturate
function. There, we have support for a few color spaces, but in this context most importantly: Oklch.It would be quite easy to implement
color.saturate
by default in terms of Oklch, but I'm not sure that's the best idea because Oklch does not have a saturation value, but instead uses chroma.For that reason, I am thinking it would be best to add Okhsv/Okhsl support to Typst. After all, these color spaces do saturation with the best tradeoffs from what little I researched.
Now, I noticed that
palette::Saturate
is actually implemented for Lch and Lchuv, two color spaces that only have chroma attributes, not saturation.The same trait is not implemented for Oklch, however.
I am thinking that perhaps the difference between chroma and saturation might not matter when scaling that attribute?
So, what I am asking:
Saturate
?Beta Was this translation helpful? Give feedback.
All reactions