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

Document hcl functions #24

Closed
droundy opened this issue Feb 11, 2016 · 1 comment
Closed

Document hcl functions #24

droundy opened this issue Feb 11, 2016 · 1 comment

Comments

@droundy
Copy link

droundy commented Feb 11, 2016

It would be lovely to have documentation for the argument ranges of the hcl color space, as there is for the other color spaces.

@mbostock
Copy link
Member

Did you see the linked HCL Color Picker?

Hue is a degree, from 0° to 360°. Chroma is a percentage, from 0 to 100. I don’t know if the Luminance channel has a strict definition, since it depends on the reference illuminant (D65), other than 0 being black and higher values (up to 100-ish?) being brighter. But d3.hcl doesn’t protect you from creating colors that can’t be represented in RGB on standard hardware; see this post.

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

No branches or pull requests

2 participants