Repository navigation
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. |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I am currently in the process of deciding how I want to improve Typst's
color.saturatefunction. There, we have support for a few color spaces, but in this context most importantly: Oklch.It would be quite easy to implement
color.saturateby 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::Saturateis 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?All reactions