@f0c1s/transform-color
v2021.1.4
Published
Transform color values among rgb, hsl, hsv, hex etc
Downloads
7
Readme
node-transform-color
node module for transforming color values from one to another
Installation
npm i @f0c1s/transform-color
Usage
const {Color} = require('@f0c1s/transform-color')
Color.rgb2hex(255, 0, 255) // #FF00FF
Color.hex2rgb('#F0F') // "rgb(255, 0, 255)"