color-rgba
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -0,0 +0,0 @@ /** @module color-rgba */ |
{ | ||
"name": "color-rgba", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Convert color string (or parseable argument) to RGBA array", | ||
@@ -29,5 +29,5 @@ "main": "index.js", | ||
"clamp": "^1.0.1", | ||
"color-parse": "^1.3.7", | ||
"color-parse": "^1.3.8", | ||
"color-space": "^1.14.6" | ||
} | ||
} |
@@ -18,8 +18,13 @@ # color-rgba [![Build Status](https://travis-ci.org/colorjs/color-rgba.png)](https://travis-ci.org/colorjs/color-rgba) | ||
## API | ||
### `let [r, g, b, alpha] = rgba(color)` | ||
Returns channels values as they are in the input `color` string argument. `alpha` is always from `0..1` range. `color` can be a CSS color string, an array with channel values, an object etc., see [color-parse](https://ghub.io/color-parse). | ||
## Related | ||
* [color-normalize](https://github.com/colorjs/color-normalize) − convert any input color argument into a defined output format. | ||
* [color-alpha](https://github.com/colorjs/color-alpha) − change alpha of a color string. | ||
* [color-interpolate](https://github.com/colorjs/color-interpolate) − interpolate by color palette. | ||
* [color-parse](https://github.com/colorjs/color-parse) − comprehensive color string parser. | ||
* [color-normalize](https://github.com/colorjs/color-normalize) − ensure color format. | ||
@@ -26,0 +31,0 @@ ## License |
@@ -0,0 +0,0 @@ const assert = require('assert') |
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
4659
33
Updatedcolor-parse@^1.3.8