acolor

3.1.0 • Public • Published

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

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

/acolor/

    Package Sidebar

    Install

    npm i acolor

    Weekly Downloads

    15

    Version

    3.1.0

    License

    MIT

    Unpacked Size

    30.9 kB

    Total Files

    44

    Last publish

    Collaborators

    • okunishinishi