1.3.0 • Published 9 years ago

apemancolor v1.3.0

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

apemancolor

Build Status Code Climate Code Coverage npm Version JS Standard

Color utility.

Installation

$ npm install apemancolor --save

Usage

'use strict'

const apemancolor = require('apemancolor')

// Rotate colors
{
  let base = '#A33'
  apemancolor.rotate(base, 30) // Rotate hue 30 degree
}

// Decide text color for background color
{
  let textColor = (backgroundColor) => apemancolor.isDark(backgroundColor) ? '#FF' : '#111'
  textColor('#AA0') // Get text color for background color
}

License

This software is released under the MIT License.

Links

1.3.0

9 years ago

1.2.3

9 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago