Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/mbjordan/Colors
- Owner: mbjordan
- License: mit
- Created: 2012-01-05T20:11:01.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2016-02-02T03:25:55.000Z (almost 9 years ago)
- Last Synced: 2024-10-19T23:45:33.029Z (25 days ago)
- Language: JavaScript
- Homepage: http://honyovk.com/Colors/
- Size: 418 KB
- Stars: 122
- Watchers: 9
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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)!