color-codes-conversor
v1.0.3
Published
Conversion from hex format to RGB format and vice versa
Downloads
2
Readme
color-codes-conversor
Conversion from hex format to RGB format and vice versa
Install
npm install color-codes-conversor
Usage
const colorCodesConversor = require('color-codes-conversor')
let RBGValue = colorCodesConversor.hexToRGB('#E74C3C')
console.log(RBGValue)
//Prints an array with the RGB format [231, 76, 60]
let hexValue = colorCodesConversor.RGBToHex([231, 76, 60])
console.log(hexValue)
//Prints a string with the hex format #e74c3c