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.
1 parent 6d23940 commit 57c59cbCopy full SHA for 57c59cb
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