daign-color
Simple color utils library in Typescript
Every class implements an observable pattern.
Installation
npm install @daign/color --save
Usage
;; // Create color objects;; // Create gradient object;gradient.addColorStop 0, color1 ;gradient.addColorStop 1, color2 ; // Get interpolated color from the gradientconsole.log gradient.colorAt 05 .hex ;
Scripts
Build
npm run build
Run lint analysis
npm run lint
Run unit tests with code coverage
npm run test