ColourJS is a JavaScript library that can take a colour and manipulate it — invert it or just change the format.
Just A Few Examples
ColourJS('#FF0000').invert().toHex(); // #00FFFF
ColourJS('#FF0000').invert().toRGB(); // rgb(0, 255, 255)
ColourJS('rgb(255, 0, 0)').invert().toRGB(); // rgb(0, 255, 255)
ColourJS('rgb(100%, 0%, 20%)').invert().toRGB(); // rgb(0, 255, 204)
The syntax is still a little awkward and functions are minimal but for a first release, it works.
Licensed under GNU GPL v3.
Comments
No responses have been made so far. Add your comments.