Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mbjordan/Colors

A simple color manipulation javascript library.
https://github.com/mbjordan/Colors

Last synced: 3 days ago
JSON representation

A simple color manipulation javascript library.

Awesome Lists containing this project

README

        

# 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](//cdnjs.cloudflare.com/ajax/libs/Colors.js/1.2.4/colors.min.js)

Via npm:

npm install colors.js

Use in Node.js:

```javascript
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](https://github.com/mbjordan/Colors/blob/master/LICENSE.txt)!