Comparing version 0.4.2 to 0.4.3
@@ -73,4 +73,3 @@ /* MIT license */ | ||
var rgb = this.values.rgb; | ||
rgb.push(this.values.alpha); | ||
return rgb; | ||
return rgb.concat([this.values.alpha]); | ||
}, | ||
@@ -77,0 +76,0 @@ hslaArray: function() { |
{ | ||
"name": "color", | ||
"description": "Color conversion and manipulation with CSS string support", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"author": "Heather Arthur <fayearthur@gmail.com>", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -53,2 +53,7 @@ var Color = require("../color"), | ||
// Multiple times | ||
var color = Color({r: 10, g: 20, b: 30}); | ||
assert.deepEqual(color.rgbaArray(), [10, 20, 30, 1]); | ||
assert.deepEqual(color.rgbaArray(), [10, 20, 30, 1]); | ||
// Channel getters/setters | ||
@@ -55,0 +60,0 @@ assert.equal(Color({r: 10, g: 20, b: 30, a: 0.4}).alpha(), 0.4); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23277
483