RGBA translater
To translate rgba to 16 binary model
Usage:
npm install rgba-translater
Use to translate backgroundColor to compatible ie8
//require translatervar RGBATranslater = ; var ele = document;var bg = elestylebackgroundColor; elestylefilter = ;
If you only to get 16 binary color, you can set the colorOnly option to true, like so:
;
Or if you only set the color to translate, you can use the translater core, like so:
var translaterCore = translater;var color = '255,255,255,0.9';; //return ccffffff;