var gdjs;(function(a){const u=new a.Logger("Filters"),c=GlobalPIXIModule.PIXI;let f;(function(t){t.clampValue=function(e,r,l){return Math.max(r,Math.min(l,e))},t.clampKernelSize=function(e,r,l){const o=Math.round((l-r)/2+1),p=new Array(o);for(let i=0;i<o;i++)p[i]=r+2*i;return p.indexOf(e)!==-1?e:r};const n={};t.enableEffect=function(e,r){e.pixiFilter.enabled=r},t.isEffectEnabled=function(e){return e.pixiFilter.enabled},t.getFilterCreator=function(e){return n.hasOwnProperty(e)?n[e]:null},t.registerFilterCreator=function(e,r){n.hasOwnProperty(e)&&u.warn('Filter "'+e+'" was already registered in gdjs.PixiFiltersTools. Replacing it with the new one.'),n[e]=r},t.rgbOrHexToHexNumber=function(e){const r=e.split(";");return r.length===3?a.rgbToHexNumber(parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10)):parseInt(e.replace("#","0x"),16)}})(f=a.PixiFiltersTools||(a.PixiFiltersTools={}))})(gdjs||(gdjs={}));
//# sourceMappingURL=pixi-filters-tools.js.map
