acolor
v3.1.0
Published
Color utility
Readme
acolor
Color utility
Installation
$ npm install acolor --saveUsage
'use strict'
const { rotate } = require('acolor')
console.log(rotate('#38E', 0.5))Functions
Available functions
| Signature | Description |
| ---- | ----------- |
| alpha(color, Alpha) -> string | Set alpha value |
| darken(color, Amount) -> string | Darken color |
| isDark(color) -> boolean | Detect dark or not |
| isLight(color) -> boolean | Detect light or not |
| mix(color1, color2) -> string | mix colors |
| parse(-) -> Object | Parse a color |
| rotate(color, degree, options) -> string | rotate color |
License
This software is released under the MIT License.
