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

Add HSL support on colors conversions #70

Open
NumEricR opened this issue May 19, 2013 · 1 comment
Open

Add HSL support on colors conversions #70

NumEricR opened this issue May 19, 2013 · 1 comment
Assignees
Labels

Comments

@NumEricR
Copy link
Collaborator

Conversions to implement :

  • HSL to Hex
  • Hex to HSL
  • HSL to RGB
  • RGB to HSL
@ghost ghost assigned NumEricR May 19, 2013
@NumEricR
Copy link
Collaborator Author

Half of this work is now done: all colors can be converted to HSL!

Now I have problems to create conversions from HSL colors, especially with the hue2rgb alogrithm, it doesn't give the real equivalents.
If I enter hsl(210, 13%, 50%), I should get #708090 or rgb(112,128,144) ... but it returns #6f8090 or rgb(111,111,111). However I use the algorithm given in a W3C Recommendation.
Same problem already exists to generate hex value on other tools like CSS.coloratum (see here).

You can check that on my "HSL" branch. See #442 and #447

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

No branches or pull requests

1 participant