Skip to content
A simple color manipulation javascript library.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
src
test
.gitattributes
.gitignore
API.md
Gulpfile.js
LICENSE.txt
README.md
index.js
package.json
tmp.js

README.md

Colors.js

A lightweight and easy to use color manipulation library.

How to Install

Via cdnJS:

//cdnjs.cloudflare.com/ajax/libs/Colors.js/1.2.4/colors.min.js

Via npm:

npm install colors.js

Use in Node.js:

var Colors = require('colors.js');
console.log( Colors.rand() );

Just a tidbit of what Colors.js can do:

  • Change RGB to a Hexadecimal color.
  • Change Hexadecimal to an RGB color.
  • Change Hexadecimal to an HSV color.
  • Get the complementary value of a Hexadecimal color.
  • Get the complementary value of an RGB color.
  • Named color to an RGB object, HSV object or Hexadecimal string.
  • Get a random color in RGB or Hexadecimal.
  • Plus a whole lot more...

For usage instructions, go to http://mbjordan.github.com/Colors/


NOTE: The license has been changed from Creative Commons Attribution-ShareAlike 3.0 Unported License to the MIT License!

You can’t perform that action at this time.