Skip to content
This repository has been archived by the owner on Feb 26, 2019. It is now read-only.

Converting back from HSL to RGB or Hex #5

Open
trinzia opened this issue Aug 3, 2012 · 0 comments
Open

Converting back from HSL to RGB or Hex #5

trinzia opened this issue Aug 3, 2012 · 0 comments

Comments

@trinzia
Copy link

trinzia commented Aug 3, 2012

I used .hsl to get the HSL value from Farb. I brightened the color, and then displayed the variable 'newcolor' in a text field, so it looks something like: 0.10434092941291336,1,0.756

Now when trying to convert back so that I can use this value in css, I didn't see how to use a built-in function from Farb. Is there one?

So I grabbed someone else's HSL2RGB, which works if I enter the numbers, but does not work if I enter the variable 'newcolor'.

Could you add an example to the documentation, please? After getting HSL value and running calculation on it, how can I get back a new RGB or Hex value?

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

No branches or pull requests

1 participant