We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6d23940 + 57c59cb commit 79d6ca5Copy full SHA for 79d6ca5
src/Colors/utils.js
@@ -63,7 +63,7 @@ export const calculateAlpha = (argb, p) => {
63
let r = ((argb / 65536) | 0) % 256
64
let g = ((argb / 256) | 0) % 256
65
let b = argb % 256
66
- return (r << 16) + (g << 8) + b + ((p * 255) | 0) * 16777216
+ return (r << 16) + (g << 8) + b + (Math.round(p * 255) | 0) * 16777216
67
}
68
69
export const mergeColorAlpha = (c, alpha) => {
0 commit comments