-
Notifications
You must be signed in to change notification settings - Fork 96
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 formatHex8() to include opacity #78
Comments
Nice catch! |
I believe |
Agree with @danburzo that we should add formatHex8 and not change formatHex which is documented as "in RGB space". |
shameless bump |
Another usecase for |
That’s fine, but an API that can do alpha would be useful, maybe this issue should be changed to a feature request for that instead? |
Edit: The answers are "yes" and "round". Lines 279 to 282 in 7d61bbe
|
To reproduce:
I'd expect that
formatHex
would preserve opacity just asformatRgb
does; however, opacity is clearly ignored in the function definitiond3-color/src/color.js
Line 266 in e87dc62
The text was updated successfully, but these errors were encountered: