3.1.0 • Published 4 years ago

acolor v3.1.0

Weekly downloads
476
License
MIT
Repository
github
Last release
4 years ago

acolor

Build Status npm Version JS Standard

Color utility

Installation

$ npm install acolor --save

Usage

'use strict'

const { rotate } = require('acolor')

console.log(rotate('#38E', 0.5))

Functions

Available functions

SignatureDescription
alpha(color, Alpha) -> stringSet alpha value
darken(color, Amount) -> stringDarken color
isDark(color) -> booleanDetect dark or not
isLight(color) -> booleanDetect light or not
mix(color1, color2) -> stringmix colors
parse(-) -> ObjectParse a color
rotate(color, degree, options) -> stringrotate color

License

This software is released under the MIT License.

Links