import{rgba as r}from"./rgba.js";import{isColorString as s}from"./utils.js";var t={test:s("#"),parse:function(r){var s="",t="",e="",a="";return r.length>5?(s=r.substr(1,2),t=r.substr(3,2),e=r.substr(5,2),a=r.substr(7,2)):(s=r.substr(1,1),t=r.substr(2,1),e=r.substr(3,1),a=r.substr(4,1),s+=s,t+=t,e+=e,a+=a),{red:parseInt(s,16),green:parseInt(t,16),blue:parseInt(e,16),alpha:a?parseInt(a,16)/255:1}},transform:r.transform};export{t as hex};
//# sourceMappingURL=hex.js.map
