"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@babylonjs/core"),i=require("@swiftcarrot/color-fns"),g=(t,e)=>{if(t&&t.startsWith("#")){const{r,g:n,b:s}=i.hex2rgb(t);return new o.Color3(r/255,n/255,s/255)}return e},b=(t,e)=>{if(t&&t.startsWith("#")){let r=1;t.length===9&&(r=parseInt(t.slice(7,9),16)/255);const{r:n,g:s,b:h}=i.hex2rgb(t);return new o.Color4(n/255,s/255,h/255,r)}return e};exports.hex2Color3=g;exports.hex2Color4=b;
