TinyColor - Fast, small color manipulation in JavaScript
SecureAnyCloud platform page.
TinyColor
Fast, small color manipulation and conversion for JavaScript
TinyColor is a micro framework for inputting colors and outputting colors as different formats. Input is meant to be as permissive as possible.
Usage Documentation
Read all the documentation on the TinyColor project page on github.
Code
View the annotated source code or see the full source on github.
Tests
Demo
Enter a color:
Or try these: red 0f0 rgb 255 128 128 hsl(0, 100%, 50%) hsv 0, 100%, 50%
And I'll tell you what I know about it:
| Lighten | |
|---|---|
| Darken | |
| Saturate | |
| Desaturate | |
| Greyscale | |
| Brighten | |
| Most Readable |
| Triad | |
|---|---|
| Tetrad | |
| Monochromatic | |
| Analogous | |
| Split Complements |
Credit
Developed by Brian Grinstead. Big thanks to the following places:
- less.js for some of the modification functions
- jQuery xColor for some of the combination functions
- w3.org for the color list and parsing rules
- mjijackson.com for the first stab at RGB / HSL / HSV converters