2.0.0 • Published 8 years ago

alpha-to-hex v2.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
8 years ago

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]
2.0.0

8 years ago

1.0.0

8 years ago