Post Format

JavaScript Color Calculation Toolkit: One.Color JS

javascript-color-calculation-toolkit-one-color-js

One.color is a JavaScript color calculation toolkit, works in node.js and in the browser. The color object automatically installs implicit conversions to different color spaces when needed, and adds get/set/adjust methods of any color channel in any available color space.

All implicit conversions are done using floating point, so no precision is lost due to rounding errors when converting between color spaces.

Major Features

  • RGB, HSV, HSL and CMYK color space implementations
  • Alpha channel
  • Extensible architecture - implement your own color spaces easily
  • Chainable color manipulation
  • Seamless conversion between color spaces on demand
  • Outputs as Hex, RGB or HSV in css syntax with or without alpha channel

The code is fully documented, and you can use JSdoc to build the documentation.






Leave a Reply