hex_a-to-rgba
v1.0.4
Published
convert color codes easily between rgb and hex
Downloads
3
Readme
hex_a-to-rgba
How To Use:
First require the package:
$ const convertColor = require("hex_a-to-rgba");
Then call the function with a value:
convertColor (''); // Will return an error message
convertColor ('#000000'); / will return rgb(0,0,0)
convertColor ('( 255,255,255,.5)') / will return #ffffff80