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
There is no alpha value in hex() output, even thought it was parsed and is present in Color object:
let c = Color('rgba(1, 2, 3, 0.4)') console.log(c) > Color {model: "rgb", color: Array(3), valpha: 0.4} color: (3) [1, 2, 3] model: "rgb" valpha: 0.4 console.log(c.object()) > {r: 1, g: 2, b: 3, alpha: 0.4} console.log(c.hex()) > #010203
The correct output should be #01020366 (alpha 0.4 is decimal 102 is hex 66)
The text was updated successfully, but these errors were encountered:
Please, search issues before opening a new one.
Duplicate of #125.
Sorry, something went wrong.
No branches or pull requests
There is no alpha value in hex() output, even thought it was parsed and is present in Color object:
The correct output should be #01020366 (alpha 0.4 is decimal 102 is hex 66)
The text was updated successfully, but these errors were encountered: