0.0.3 • Published 5 years ago
typescript-color-converter v0.0.3
color-converter
color-converter, it is used to obtain color value with .ts support
;
Typescript Color Converter
npm install typescript-color-converter --save
Usage
index.ts
import {RGBtoHEX, HEXtoRGB, colors} from 'typescript-color-converter';
function convertHexToRgb(hexvalue: string) {
const convertedRGB = HexToRGB(rgbvalue);
return convertedRGB;
}
function convertRgbToHex(rgbvalue) {
const convertedHex = RGBtoHEX(rgbvalue);
}
colors.red //[255,0,0]