Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

color-rgba

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

color-rgba - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

0

index.js

@@ -0,0 +0,0 @@ /** @module color-rgba */

4

package.json
{
"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')

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc