1 parent ab299a7 commit 0710543Copy full SHA for 0710543
1 file changed
index.js
@@ -90,7 +90,7 @@ cs.get.rgb = function (string) {
90
91
if (match[4]) {
92
if (match[5]) {
93
- rgb[3] = parseInt(match[4], 0) * 0.01;
+ rgb[3] = parseFloat(match[4]) * 0.01;
94
} else {
95
rgb[3] = parseFloat(match[4]);
96
}
@@ -102,7 +102,7 @@ cs.get.rgb = function (string) {
102
103
104
105
106
107
108
0 commit comments