-
Notifications
You must be signed in to change notification settings - Fork 432
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
hex8 and hex4 support and formatting #82
Comments
Thanks for the info. This will be a little tricky, since IE filters use the backwards hex8 format. But I think we can special case that in the |
If you'd like to contribute these changes, I'd be happy to accept a patch. Here's what would need to be done:
|
Does anyone know how to code this (I do not code myself!). Cin cin |
This is closed by #136 |
Excellent stuff, but times move on (!)...
The latest W3C draft on CSS colour has the alpha channel of hex8 defined by the last two characters. So "00" is transparent, "80" is 50%, "FF" is opaque, etc.
http://dev.w3.org/csswg/css-color-4/#hex-notation
tinyColor formats this the other way around, with the alpha channel as the first two characters. I think that was the previous assumption.
So that also means that if we can have tinyColor accepting hex6 as shorthand for hex6, then will it be able to accept hex4 as shorthand for hex8 at some point in the future.
If anyone has a code fix for doing this NOW, you will magically appear on my Christmas Card list.
Thanks.
The text was updated successfully, but these errors were encountered: