We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it possible to retrieve the alpha value when using color.hex on ColorEvent?
it would be better than doing
let hexValue = colorEvent.color.hex || ''; if (hexValue.length === 7) { hexValue += Math.round(colorEvent.color.rgb.a * 255).toString(16); }
The text was updated successfully, but these errors were encountered:
I am also confused with this issue. It's really inconvenient without hex8 format. I have solved it with @ctrl/tinycolor which used by ngx-color.
@ctrl/tinycolor
ngx-color
new TinyColor(e.color.rgb).toHex8String()
You can check the colorpicker example.
Sorry, something went wrong.
No branches or pull requests
Is it possible to retrieve the alpha value when using color.hex on ColorEvent?
it would be better than doing
The text was updated successfully, but these errors were encountered: