chameleon.js
v1.0.0
Published
Find the right contrasting colors, great for automatically selecting text colors based on user supplied color values for background UI elements. For example:
Downloads
3
Readme
Chameleon.js
Find the right contrasting colors, great for automatically selecting text colors based on user supplied color values for background UI elements. For example:
Installation
Via npm:
npm install chameleon.js
Usage
Use in Node.js / Titanium:
var C = require("chameleonjs");
console.log( C('black') );
console.log( C('#000000') );
console.log( C(0, 0, 0) );
What Chameleon.js does
- Get the contrasting value of a Hexadecimal color.
- Get the contrasting value of an RGB color.
- Get the contrasting value of a css named color.
What Chameleon.js will do
- Get the complementary value of a Hexadecimal color.
- Get the complementary value of an RGB color.
- Get the complementary value of a css named color.
- Get the contrasting value for a Titanium mobile Status bar.
What Chameleon.js MIGHT do down the road
- Get the colors from images and return the contrasting / complementary colors