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

Converting back from HSL to RGB or Hex #5

@trinzia

Description

@trinzia

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions