acolor
Color utility
Installation
$ npm install acolor --save
Usage
'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.
Links