-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support HSL color model #25
Comments
well https://en.wikipedia.org/wiki/HSL_and_HSV doesn't think much of these color models. And they don't have much use in PDF. I doubt that we will add them. But the formula to convert HSL to HSB looks rather simple, so you could simply use \fpeval to do it:
|
|
|
In case anyone wants to do add an other color model to xcolor, it could be worth wile to go with Oklch instead, which was recently added to CSS Color Module Level 4 on the strength of both matching human color perception rather well and being comparatively simple to compute. You can try an online color picker here or there. |
At present,
xcolor
supportsHSB
color model. It would be nice if it also supportsHSL
color model. InHSL
color model, whenL
goes from0
to1
, the color goes from black to white. Therefore it is much easier to control color contrast.The text was updated successfully, but these errors were encountered: