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
Hi,
.toHexString() is not returning the expected value. Attaching a runkit.
https://runkit.com/embed/dhv39902sm0k
var tinycolor2 = require("tinycolor2") const sheetsDefault = "#00857A" const color = console.log(tinycolor2(sheetsDefault).setAlpha(0.5).toString()) console.log(tinycolor2(sheetsDefault).setAlpha(0.5).toHexString())
The text was updated successfully, but these errors were encountered:
It seems the library doesn't have support for the Alpha channel in HEX values @ivikash. But in theory, is returning the correct value.
Sorry, something went wrong.
@ivikash just noticed that you are not using the toHex8String method.
toHex8String
var tinycolor2 = require("tinycolor2") const sheetsDefault = "#00857A" console.log(tinycolor2(sheetsDefault).setAlpha(0.5).toString()). // "rgba(0, 133, 122, 0.5)" console.log(tinycolor2(sheetsDefault).setAlpha(0.5).toHex8String()). // "#00857a80"
No branches or pull requests
Hi,
.toHexString() is not returning the expected value. Attaching a runkit.
https://runkit.com/embed/dhv39902sm0k
The text was updated successfully, but these errors were encountered: