2021.1.4 • Published 3 years ago
@f0c1s/transform-color v2021.1.4
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)"