color-rgba
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -10,2 +10,4 @@ /** @module color-rgba */ | ||
module.exports = function rgba (color, normalize) { | ||
if (Array.isArray(color)) return color; | ||
if (normalize == null) normalize = true | ||
@@ -17,4 +19,2 @@ | ||
if (Array.isArray(color)) return color; | ||
var values = parsed.values, i, l = values.length; | ||
@@ -21,0 +21,0 @@ for (i = 0; i < l; i++) { |
{ | ||
"name": "color-rgba", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Convert color string to rgba array", | ||
@@ -11,6 +11,7 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "git+https://github.com/dfcreative/color-rgba.git" | ||
"url": "git+https://github.com/colorjs/color-rgba.git" | ||
}, | ||
"keywords": [ | ||
"color", | ||
"colorjs", | ||
"rgb", | ||
@@ -24,10 +25,10 @@ "rgba", | ||
"bugs": { | ||
"url": "https://github.com/dfcreative/color-rgba/issues" | ||
"url": "https://github.com/colorjs/color-rgba/issues" | ||
}, | ||
"homepage": "https://github.com/dfcreative/color-rgba#readme", | ||
"homepage": "https://github.com/colorjs/color-rgba#readme", | ||
"dependencies": { | ||
"clamp": "^1.0.1", | ||
"color-parse": "^1.2.0", | ||
"color-parse": "^1.3.4", | ||
"color-space": "^1.14.6" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
#color-rgba | ||
# color-rgba | ||
@@ -3,0 +3,0 @@ Convert color string to array with channels: `rgba(127,127,127,.1)` → `[.5,.5,.5,.1]` |
4154
Updatedcolor-parse@^1.3.4