alpha-to-hex
v2.0.0
Published
convert alpha values to hex codes
Downloads
2
Maintainers
Readme
convert alpha values between 0 to 100 into hex codes like #ff
Install
$ npm install alpha-to-hex
Usage
var alpha_hex = require('alpha-to-hex');
console.log(alpha_hex.convert(["0",100])); // as a Array
output : [ #00 , #ff ]
or
console.log(alpha_hex.convert("0","12","99")); // as a String
output : [ #00 , #8c , #fc]