Skip to content
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

Working with extracted HSL values #133

Open
nachtfunke opened this issue Apr 11, 2022 · 0 comments
Open

Working with extracted HSL values #133

nachtfunke opened this issue Apr 11, 2022 · 0 comments

Comments

@nachtfunke
Copy link

Hello!

This may seem like a really stupid question, but I am only interested in the extracted hue value. But I am not sure how I am supposed to correctly work with the returned value? I am trying to extract the hue value and feed it to a css custom property, which uses it in a hsl() function, which requires the hue to be in degrees, but the value that is being returned is a number from 0 - 1.

What is the intended way to work with hsl? Is the idea to convert this number to a valid HSL value?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant