From e1cb6156fb77f36bb5435d887e9a8b7210ace933 Mon Sep 17 00:00:00 2001 From: TS Date: Wed, 15 Mar 2023 08:20:59 +0100 Subject: [PATCH] Updated blendFlat, blendSafe and randomRGBA --- demo/pixi.html | 77 +++---- dist/tgen-with-presets.min.js | 2 +- dist/tgen-with-presets.min.js.LICENSE.txt | 2 +- dist/tgen-with-presets.min.js.gz | Bin 16657 -> 16680 bytes dist/tgen.min.js | 2 +- dist/tgen.min.js.LICENSE.txt | 2 +- dist/tgen.min.js.gz | Bin 12994 -> 13012 bytes package-lock.json | 236 +++++++++++----------- package.json | 6 +- src/effects/checkerboard.js | 5 +- src/effects/circles.js | 4 +- src/effects/clouds.js | 8 +- src/effects/colorbar.js | 7 +- src/effects/crosshatch.js | 3 +- src/effects/dots.js | 8 +- src/effects/lines.js | 3 +- src/effects/lines2.js | 2 +- src/effects/lines3.js | 1 - src/effects/noise.js | 20 +- src/effects/pyramids.js | 6 +- src/effects/spheres.js | 5 +- src/effects/squares.js | 3 +- src/effects/subplasma.js | 6 +- src/effects/waves.js | 15 +- src/effects/xor.js | 3 +- src/filters/blur.js | 1 - src/filters/colorize.js | 1 - src/filters/convolute.js | 4 +- src/filters/vibrance.js | 1 - src/functions/copy.js | 46 ++--- src/functions/equirectangular.js | 108 +++++----- src/functions/index.js | 2 +- src/functions/map.js | 119 ++++++----- src/functions/merge.js | 60 +++--- src/functions/mergeall.js | 56 +++-- src/functions/rot90.js | 32 ++- src/functions/rotate.js | 163 ++++++++------- src/shapes/circle.js | 35 ++-- src/shapes/colorline.js | 60 +++--- src/shapes/line.js | 33 ++- src/shapes/pyramid.js | 77 ++++--- src/shapes/rect.js | 32 ++- src/shapes/sphere.js | 65 +++--- src/tgen-base-common.js | 52 ++--- src/tgen-base-with-presets.js | 2 +- src/tgen-base.js | 2 +- src/tgen-generator.js | 110 ++++------ src/tgen-tests.js | 5 +- 48 files changed, 689 insertions(+), 803 deletions(-) diff --git a/demo/pixi.html b/demo/pixi.html index 316859e..0e66f76 100644 --- a/demo/pixi.html +++ b/demo/pixi.html @@ -1,39 +1,42 @@ - - - Background Test - - - - - - - - - \ No newline at end of file + + Background Test + + + + + + + + diff --git a/dist/tgen-with-presets.min.js b/dist/tgen-with-presets.min.js index a632784..6430bfc 100644 --- a/dist/tgen-with-presets.min.js +++ b/dist/tgen-with-presets.min.js @@ -1,2 +1,2 @@ /*! For license information please see tgen-with-presets.min.js.LICENSE.txt */ -(()=>{var e={9377:e=>{e.exports=function(e){e.effect("checkerboard",{seed:null,blend:e.blendFlat,rgba:"randomalpha",even:"random",size:[[2,32],[2,32]]},(function(e,n){n.even=e.randItemByArraySeed(n.even,[!0,!1]);var t,r,a,i,s,o,l=e.texture.width,d=e.texture.height;"number"==typeof n.size?t=r=n.size:(t=n.size[0]=e.randByArraySeed(n.size[0],null,!0),r=n.size[1]=e.randByArraySeed(n.size[1],null,!0));var c=Math.round(l/t),u=Math.round(d/r),h=function(n,t){for(a=0;a{e.exports=function(e){e.effect("circles",{seed:null,blend:e.blendFlat,rgba:"randomalpha",origin:"random",count:[1,42],size:[[1,42],[1,42]]},(function(e,n){var t,r;for(n.size[0]=e.randByArraySeed(n.size[0],!1),n.size[1]=e.randByArraySeed(n.size[1],!1),t=0;t{e.exports=function(e){e.effect("clouds",{seed:null,blend:e.blendSafe,rgba:"randomalpha",roughness:[1,32],colormap:null},(function(e,n){n.roughness=e.randByArraySeed(n.roughness);var t,r,a,i,s,o,l,d,c,u,h,p,f=e.texture.width,b=e.texture.height,y=[],m=function(e,n,t){return e=Math.round(e),n=Math.round(n),e<0&&(e=f+e),e>=f&&(e-=f),n<0&&(n=b+n),n>=b&&(n-=b),void 0!==t&&(y[e][n]=t),y[e][n]},g=function(t){return(e.randRealSeed(0,1)-.5)*(t/(f+f)*n.roughness)};for(function(){for(t=0;t<=f;t++)for(y[t]=[],r=0;r<=b;r++)y[t][r]=0}(),function s(y){var x=y/2;if(x<=1)return n;for(l=0;l<=f+x;l+=x)for(d=0;d<=b+x;d+=x)c=m(l-x,d-x),u=m(l,d-x),h=m(l-x,d),p=m(l,d),o=m(t=l-x/2,r=d-x/2,e.calc.normalize1((c+u+h+p)/4+g(y))),a=l-y+x/2,m(l-x,r,e.calc.normalize1((c+h+o+m(a,r))/4+g(y))),i=d-y+x/2,m(t,d-x,e.calc.normalize1((c+u+o+m(t,i))/4+g(y)));s(x)}(f),e.colormap.init(n.colormap,255,(function(e){n.colormap=e})),t=0;t{e.exports=function(e){e.effect("colorbar",{seed:null,blend:e.blendFlat,type:"random",colormap:"random",mirror:!0},(function(e,n){n.type=e.randItemByArraySeed(n.type,["vertical","horizontal"]);var t,r,a,i=e.texture.width,s=e.texture.height,o="horizontal"==n.type?i:s;if(e.colormap.init(n.colormap,o,(function(e){n.colormap=e})),"horizontal"==n.type)for(t=0;t{e.exports=function(e){e.effect("crosshatch",{seed:null,blend:e.blendSafe,rgba:"randomalpha",level:[1,100],xadjust:"random",yadjust:"random"},(function(e,n){var t,r,a;for(n.xadjust=e.randRealByArraySeed(n.xadjust,[.1,121]),n.yadjust=e.randRealByArraySeed(n.yadjust,[.1,121]),t=0;t{e.exports=function(e){e.effect("dots",{seed:null,blend:e.blendSafe,gridX:[2,64],gridY:[2,64],size:[1,250],rgba:"randomalpha",shape:"sphere",dynamic:!0,xsines:[1,16],ysines:[1,16]},(function(e,n){n.gridX=e.randByArraySeed(n.gridX),n.gridY=e.randByArraySeed(n.gridY),n.xsines=e.randIntByArraySeed(n.xsines,[1,16]),n.ysines=e.randIntByArraySeed(n.ysines,[1,16]),n.shape=e.randItemByArraySeed(n.shape,["sphere","pyramid","rect","circle"]);var t,r,a,i,s=e.randByArraySeed(n.size)/100,o=e.texture.width,l=e.texture.height,d=o/n.gridX,c=l/n.gridY,u=d/2,h=c/2;for(t=1;t<=n.gridX;t++)for(r=1;r<=n.gridY;r++)switch(i=(a=s*(d+c)/2/2)-a/2*Math.sin(t/n.gridX*n.xsines*2*e.calc.pi)+a/2*Math.sin(r/n.gridY*n.ysines*2*e.calc.pi),n.shape){case"sphere":e.shape.sphere(e,t*d-u,r*c-h,2*i,!0,n.rgba,n.dynamic);break;case"pyramid":e.shape.pyramid(e,t*d-u,r*c-h,i,i,!0,n.rgba,n.dynamic);break;case"rect":e.shape.rect(e,t*d-u,r*c-h,i,i,!0,n.rgba,n.dynamic);break;default:i/=2,e.shape.circle(e,t*d-u,r*c-h,i,!0)}return n}))}},2855:e=>{e.exports=function(e){e.effect("fill",{seed:null,blend:"opacity",rgba:"randomalpha"},(function(e,n){return e.shape.rect(e,1,1,e.texture.width,e.texture.height),n}))}},743:e=>{e.exports=function(e){e.effect("mandelbrot",{seed:null,blend:"opacity",rgba:"randomalpha",iteration:[8,512],skip:[0,8]},(function(e,n){n.skip=e.randByArraySeed(n.skip),n.iteration=e.randByArraySeed(n.iteration);var t,r,a,i=e.texture.width,s=e.texture.height,o=n.rgba[0],l=n.rgba[1],d=n.rgba[2],c=256/o,u=256/l,h=256/d,p=n.iteration,f=0,b=0,y=0,m=0,g=0,x=0;for(t=0;t4);a++)m=2*y*m+b,y=g-x+f;a>n.skip&&(e.point.rgba=[a%o*c,a%l*u,a%d*h,e.point.rgba[3]],e.point.set(r,t))}return n}))}},5265:(e,n,t)=>{e.exports=function(e){t(9377)(e),t(5405)(e),t(2261)(e),t(4283)(e),t(7891)(e),t(8988)(e),t(2855)(e),t(743)(e),t(1800)(e),t(4191)(e),t(8375)(e),t(8806)(e),t(9240)(e),t(7301)(e),t(6191)(e),t(2163)(e),t(6444)(e),t(5800)(e)}},1800:e=>{e.exports=function(e){e.effect("lines",{seed:null,blend:e.blendFlat,rgba:"randomalpha",size:[77,221],count:[21,512],freq1s:[4,221],freq1c:[4,221],freq2s:[4,221],freq2c:[4,221]},(function(e,n){var t,r,a,i,s;for(n.freq1s=e.randByArraySeed(n.freq1s,!0),n.freq1c=e.randByArraySeed(n.freq1c,!0),n.freq2s=e.randByArraySeed(n.freq2s,!0),n.freq2c=e.randByArraySeed(n.freq2c,!0),n.size=e.randByArraySeed(n.size),t=0;t{e.exports=function(e){e.effect("lines2",{seed:null,blend:e.blendFlat,rgba:"randomalpha",type:"random",size:[.1,21],count:[1,42]},(function(e,n){var t,r,a;for(n.type=e.randItemByArraySeed(n.type,["vertical","horizontal"]),a=0;a{e.exports=function(e){e.effect("lines3",{seed:null,type:null,blend:"opacity",colormap:"random",fadeinout:1,step:[1,2,4,8,16,32,64],size:[7,210],waves:[1,21],amplitude:[0,42],weight:[1,32]},(function(e,n){var t,r,a,i,s,o;if(n.type=e.randItemByArraySeed(n.type,["vertical","horizontal"]),n.fadeinout=e.randIntByArraySeed(null,n.fadeinout),n.size=e.randByArraySeed(n.size),n.amplitude=e.randByArraySeed(n.amplitude),n.waves=e.randIntByArraySeed(n.waves),n.step=e.randItemByArraySeed(null,n.step),n.weight=e.randIntByArraySeed(n.weight),e.colormap.init(n.colormap,n.size,(function(e){n.colormap=e})),"horizontal"===n.type)for(r=0;r{e.exports=function(e){e.effect("noise",{seed:null,blend:"lighten",mode:"monochrome",channels:[255,255,255],opacity:128},(function(e,n){var t,r,a,i;switch(n.mode){case"color":e.walk((function(i){return t=n.channels[0]?e.randIntSeed(0,n.channels[0]):0,r=n.channels[1]?e.randIntSeed(0,n.channels[1]):0,a=n.channels[2]?e.randIntSeed(0,n.channels[2]):0,[t,r,a,n.opacity]}));break;case"monochrome":e.walk((function(t){return[i=e.randIntSeed(0,255),i,i,n.opacity]}));break;case"colorize":e.walk((function(t){return i=e.randIntSeed(0,255),e.point.colorize([i,i,i,n.opacity],n.rgba)}))}return n}))}},9240:e=>{e.exports=function(e){e.effect("pyramids",{seed:null,blend:e.blendSafe,rgba:"randomalpha",origin:"random",dynamic:"random",count:[1,77],size:[[1,92],[1,92]]},(function(e,n){var t,r;for(n.dynamic=e.randItemByArraySeed(n.dynamic,[!0,!1]),n.size[0]=e.randByArraySeed(n.size[0],!1),n.size[1]=e.randByArraySeed(n.size[1],!1),t=0;t{e.exports=function(e){e.effect("spheres",{seed:null,blend:e.blendFlat,rgba:e.randomRGBA,origin:"random",dynamic:!0,count:[1,77],size:[[1,92],[1,92]]},(function(e,n){var t,r;for(n.dynamic=e.randItemByArraySeed(n.dynamic,[!0,!1]),n.size[0]=e.randByArraySeed(n.size[0],!1),n.size[1]=e.randByArraySeed(n.size[1],!1),t=0;t{e.exports=function(e){e.effect("squares",{seed:null,blend:e.blendFlat,rgba:"randomalpha",origin:"random",count:[1,42],size:[[1,77],[1,77]]},(function(e,n){var t,r;for(n.size[0]=e.randByArraySeed(n.size[0],!1),n.size[1]=e.randByArraySeed(n.size[1],!1),t=0;t{e.exports=function(e){var n={seed:null,blend:e.blendFlat,rgba:e.randomRGBA,colorize:null,size:[1,7],opacity:1};e.effect("subplasma",n,(function(e,n){var t,r,a,i,s,o,l=[],d=e.texture.width,c=d,u=1<d&&(u=d),o=d/u,r=0;r{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}e.exports=function(e){e.effect("waves",{seed:null,blend:e.blendSafe,rgba:"randomalpha",level:[1,100],xsines:[1,14],ysines:[1,14]},(function(e,t){var r,a,i;for(t.xsines=e.randIntByArraySeed(t.xsines,[1,16]),t.ysines=e.randIntByArraySeed(t.ysines,[1,16]),r=0;r{e.exports=function(e){e.effect("xor",{seed:null,blend:"random",rgba:"randomalpha",level:[1,100],zoom:[.1,77]},(function(e,n){var t,r,a,i=e.texture.width,s=e.texture.height;for(n.zoom=e.randIntByArraySeed(n.zoom,[1,10]),t=0;t{e.exports=function(e){e.filter("backlight",{seed:null,channels:[[0,1],[0,1],[0,1],0]},(function(e,n){return n.channels[0]=e.randByArraySeed(n.channels[0]),n.channels[1]=e.randByArraySeed(n.channels[1]),n.channels[2]=e.randByArraySeed(n.channels[2]),n.channels[3]=e.randByArraySeed(n.channels[3]),e.walk((function(e){return[n.channels[0]?255/e[0]*(255/e[0]):e[0],n.channels[1]?255/e[1]*(255/e[1]):e[1],n.channels[2]?255/e[2]*(255/e[2]):e[2],n.channels[3]?255/e[3]*(255/e[3]):e[3]]})),n}))}},6213:e=>{e.exports=function(e){e.filter("blur",{},(function(e,n){return e.do("convolute",{store:!1,transparent:!1,weights:[1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9]}),n}))}},3127:e=>{e.exports=function(e){e.filter("brightness",{seed:null,legacy:!0,adjust:[64,192]},(function(e,n){return n.adjust=e.randByArraySeed(n.adjust),!0===n.legacy?e.walk((function(e){return[Math.min(e[0]+n.adjust,255),Math.min(e[1]+n.adjust,255),Math.min(e[2]+n.adjust,255),e[3]]})):e.walk((function(e){return[e[0]=Math.min(255/e[0]*(n.adjust/255),255),e[1]=Math.min(255/e[1]*(n.adjust/255),255),e[2]=Math.min(255/e[2]*(n.adjust/255),255),e[3]]})),n}))}},6590:e=>{e.exports=function(e){e.filter("channel",{channels:[[.2,.8],[.4,1],[.8,1.2]]},(function(e,n){return n.channels[0]=e.randByArraySeed(n.channels[0],!0),n.channels[1]=e.randByArraySeed(n.channels[1],!0),n.channels[2]=e.randByArraySeed(n.channels[2],!0),e.walk((function(e){return[e[0]*n.channels[0],e[1]*n.channels[1],e[2]*n.channels[2],e[3]]})),n}))}},5891:e=>{e.exports=function(e){e.filter("colorize",{seed:null,level:[32,192],rgba:"random",colormap:null},(function(e,n){return n.level=e.randByArraySeed(n.level),e.colormap.init(n.colormap,255,(function(e){n.colormap=e})),e.walk((function(t){var r,a;return e.colormap.data?(r=(t[0]+t[1]+t[2])/3,(a=e.colormap.get(r,n.rgba))[3]=t[3],a):e.point.colorize(t,n.rgba,n.level)})),n}))}},5093:e=>{e.exports=function(e){e.filter("contrast",{seed:null,adjust:[64,192]},(function(e,n){n.adjust=e.randByArraySeed(n.adjust);var t=(100+n.adjust)/100;return e.walk((function(e){return e[0]=255*((e[0]/255-.5)*t+.5),e[1]=255*((e[1]/255-.5)*t+.5),e[2]=255*((e[2]/255-.5)*t+.5),[Math.max(Math.min(e[0],255),0),Math.max(Math.min(e[1],255),0),Math.max(Math.min(e[2],255),0),e[3]]})),n}))}},2307:e=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}e.exports=function(e){e.filter("convolute",{blend:"opacity",transparent:!1,weights:"default1"},(function(e,t){if("object"!=n(t.weights)&&"string"!=typeof t.weights||null==t.weights)return t;if("string"==typeof t.weights[0]&&(t.weights=e.randByArraySeed(t.weights)),"string"==typeof t.weights)if("random"===t.weights){var r=-32,a=32;t.weights=[e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a)],e.log(t.weights.join(", "))}else{var i={edgedetect1:[-1,-1,-1,-1,8,-1,-1,-1,-1],edgedetect2:[0,1,0,1,-4,1,0,1,0],edgedetect3:[1,0,-1,0,0,0,-1,0,1],sharpen1:[0,-1,0,-1,5,-1,0,-1,0],sharpen2:[-1,-1,-1,-1,9,-1,-1,-1,-1],emboss1:[1,1,1,1,.7,-1,-1,-1,-1],emboss2:[-2,-1,0,-1,1,1,0,1,2],emboss3:[10,3,-2,-8,-5,7,-3,-12,11],emboss4:[-6,11,-9,-9,0,-4,12,8,-2],sobel1:[-1,-2,-1,0,0,0,1,2,1],sobel2:[-1,0,1,-2,0,2,-1,0,1],sobel3:[-5,-8,12,-4,-8,-12,9,6,9],default1:[1,-11,-7,5,2,4,4,9,-2],default2:[-5,-21,25,22,31,-16,-2,-21,-10],default3:[1,1,1,1,1,1,1,1,1]};if(null==i[t.weights])return t;t.weights=i[t.weights]}var s,o,l,d,c,u,h,p,f,b,y,m,g=Math.round(Math.sqrt(t.weights.length)),x=Math.floor(g/2),v=t.transparent?1:0,w=new e.buffer;w.clear();var z=e.texture.size();for(o=0;o{e.exports=function(e){e.filter("edgedetect",{seed:null,type:[1,3]},(function(e,n){return n.type=e.randByArraySeed(n.type),e.do("convolute",{store:!1,transparent:!1,weights:"edgedetect"+n.type}),n}))}},4402:e=>{e.exports=function(e){e.filter("emboss",{seed:null,type:[1,4]},(function(e,n){return n.type=e.randByArraySeed(n.type),e.do("convolute",{store:!1,transparent:!1,weights:"emboss"+n.type}),n}))}},4998:e=>{e.exports=function(e){e.filter("gamma",{seed:null,adjust:[.1,2]},(function(e,n){return n.adjust=e.randByArraySeed(n.adjust,!0),e.walk((function(e){return e[0]=255*Math.pow(e[0]/255,1/n.adjust),e[1]=255*Math.pow(e[1]/255,1/n.adjust),e[2]=255*Math.pow(e[2]/255,1/n.adjust),[e[0],e[1],e[2],e[3]]})),n}))}},6966:e=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}e.exports=function(e){e.filter("grayscale",{seed:null,method:["ligthness","average","luminosity"]},(function(e,t){switch("string"==typeof t&&(t={method:t}),"object"==n(t.method)&&(t.method=e.randItemSeed(t.method)),t.method){case"ligthness":e.walk((function(e){var n=Math.max(e[0],e[1],e[2])+Math.min(e[0],e[1],e[2]);return[n,n,n,e[3]]}));break;case"average":e.walk((function(e){var n=(e[0]+e[1]+e[2])/3;return[n,n,n,e[3]]}));break;case"luminosity":e.walk((function(n){var t=e.calc.luminance(n);return[t,t,t,n[3]]}))}return t}))}},490:(e,n,t)=>{e.exports=function(e){t(9598)(e),t(6213)(e),t(3127)(e),t(6590)(e),t(5891)(e),t(5093)(e),t(2307)(e),t(3458)(e),t(4402)(e),t(4998)(e),t(6966)(e),t(1537)(e),t(173)(e),t(9706)(e),t(7113)(e),t(7772)(e),t(5710)(e),t(4977)(e)}},1537:e=>{e.exports=function(e){e.filter("invert",{seed:null,channels:[[0,1],[0,1],[0,1],0]},(function(e,n){return n.channels[0]=e.randByArraySeed(n.channels[0]),n.channels[1]=e.randByArraySeed(n.channels[1]),n.channels[2]=e.randByArraySeed(n.channels[2]),e.walk((function(e){return[n.channels[0]?255-e[0]:e[0],n.channels[1]?255-e[1]:e[1],n.channels[2]?255-e[2]:e[2],n.channels[3]?255-e[3]:e[3]]})),n}))}},173:e=>{e.exports=function(e){e.filter("opacity",{seed:null,adjust:[32,192]},(function(e,n){return n.adjust=e.randByArraySeed(n.adjust),e.walk((function(e){return e[3]=n.adjust,e})),n}))}},9706:e=>{e.exports=function(e){e.filter("sharpen",{seed:null,type:[1,2]},(function(e,n){return n.type=e.randByArraySeed(n.type),e.do("convolute",{store:!1,transparent:!1,weights:"sharpen"+n.type}),n}))}},7113:e=>{e.exports=function(e){e.filter("sinecolor",{seed:null,sines:[1,10],channel:[0,2]},(function(e,n){return n.sines=e.randByArraySeed(n.sines),n.channel=e.randByArraySeed(n.channel),e.walk((function(t){var r=parseInt(255*Math.sin(t[n.channel]*(e.calc.pi/180)*(255/360)*n.sines));return t[n.channel]=Math.abs(r),t})),n}))}},7772:e=>{e.exports=function(e){e.filter("sobel",{seed:null,type:[1,3]},(function(e,n){return n.type=e.randByArraySeed(n.type),e.do("convolute",{store:!1,transparent:!1,weights:"sobel"+n.type}),n}))}},5710:e=>{e.exports=function(e){e.filter("threshold",{seed:null,adjust:[64,128]},(function(e,n){return n.adjust=e.randByArraySeed(n.adjust),e.walk((function(e){var t=.2126*e[0]+.7152*e[1]+.0722*e[2]<=n.adjust?0:255;return[t,t,t,e[3]]})),n}))}},4977:e=>{e.exports=function(e){e.filter("vibrance",{seed:null,adjust:[64,192]},(function(e,n){n.adjust=e.randByArraySeed(n.adjust);var t=-1*n.adjust;return e.walk((function(e){var n=(e[0]+e[1]+e[2])/3,r=Math.max(e[0],e[1],e[2]),a=2*Math.abs(r-n)/255*t/100;return e[0]!==r&&(e[0]+=(r-e[0])*a),e[1]!==r&&(e[1]+=(r-e[1])*a),e[2]!==r&&(e[2]+=(r-e[2])*a),[e[0],e[1],e[2],e[3]]})),n}))}},2582:e=>{e.exports=function(e){e.function("copy",{layer:null},(function(e,n){return"number"==typeof n&&(n={layer:n}),null===n.layer&&(n.layer=e.layers.length-1),null!=e.layers[n.layer]&&(e.texture.data=e.layerCopy(n.layer)),n}))}},40:e=>{e.exports=function(e){e.function("equirectangular",{layer:null},(function(e,n){null===n.layer&&(n.layer=e.layers.length-1);var t,r,a,i,s,o,l,d,c,u,h,p=new e.buffer,f=e.texture.width,b=e.texture.height,y=Math.PI,m=b/2,g=f/2,x=b/2,v=e.texture.size();for(t=0;t{e.exports=function(e){t(2582)(e),t(40)(e),t(5551)(e),t(9174)(e),t(4013)(e),t(9451)(e),t(1234)(e)}},5551:e=>{e.exports=function(e){e.function("map",{seed:null,xamount:[4,512],yamount:[4,512],xchannel:[0,2],ychannel:[0,2],xlayer:0,ylayer:0},(function(e,n){n.xamount=e.randByArraySeed(n.xamount),n.yamount=e.randByArraySeed(n.yamount),n.xchannel=e.randByArraySeed(n.xchannel),n.ychannel=e.randByArraySeed(n.ychannel),n.xlayer=e.randByArraySeed(n.xlayer),n.ylayer=e.randByArraySeed(n.ylayer);var t,r,a,i,s,o,l,d,c=new e.buffer,u=e.texture.width,h=e.texture.height,p=e.texture.size(),f=e.layers[n.xlayer],b=e.layers[n.ylayer];if(f&&f[0]){for(t=0;t>16)):t+l*n.xamount*u/(u*u),i=h%16==0?e.wrapy(r+(d*n.yamount*h>>16)):r+d*n.yamount*h/(h*h),s=e.point.get(a,i),c.data[o]=s[0],c.data[o+1]=s[1],c.data[o+2]=s[2],c.data[o+3]=s[3];for(;p--;)e.texture.data[p]=c.data[p];return n}}))}},9174:e=>{e.exports=function(e){e.function("merge",{blend:"opacity",opacity:null,layer:0},(function(e,n){if(void 0===e.layers[n.layer])return n;var t,r,a,i=e.layers[n.layer];for(r=0;r{e.exports=function(e){e.function("mergeall",{blend:"opacity",firstcopy:!0,opacity:null},(function(e,n){for(var t=e.layers.length,r=0;r<=t;r++)0===r&&!0===n.firstcopy?e.do("copy",{layer:0}):e.do("merge",{blend:n.blend,layer:r,opacity:n.opacity});return n}))}},1234:e=>{e.exports=function(e){e.function("rot90",{seed:null,times:[1,3],blend:e.blendSafe},(function(n,t){return t.type=1,t.angle=90,e.effects.rotate(n,t),t}))}},9451:e=>{e.exports=function(e){e.function("rotate",{seed:null,angle:90,times:[1,3],type:1,blend:e.blendSafe},(function(e,n){n.type=e.randByArraySeed(n.type),null===n.angle?n.angle=e.randItemByArraySeed(n.angle,[90,180,270]):n.angle=e.randByArraySeed(n.angle),n.times=e.randByArraySeed(n.times);var t,r,a,i,s,o,l,d,c,u=new e.buffer,h=e.texture.width,p=e.texture.height,f=n.angle*(Math.PI/180),b=e.texture.size(),y=function(){for(r=0;r{e.exports=function(e){e.preset("backlights",{width:256,height:256,items:[[0,"spheres",{count:[7,42],size:[14,77],blend:"opacity",rgba:[[94,240],[94,240],[94,240],1]}],[1,"spheres",{count:[7,42],size:[14,77],blend:"opacity",rgba:[[94,240],[94,240],[94,240],1]}],[2,"copy",0],[2,"merge",{layer:1,blend:"backlight"}]]})}},5706:e=>{e.exports=function(e){e.preset("bubbles",{width:256,height:256,items:[[0,"circles",{blend:"opacity",rgba:[[32,255],[32,255],[32,255],[32,200]],count:[32,48],size:[1,5]}],[0,"circles",{blend:"opacity",rgba:[[32,255],[32,255],[32,255],[32,200]],count:[15,20],size:[10,15]}],[0,"circles",{blend:"opacity",rgba:[[32,255],[32,255],[32,255],[32,200]],count:[2,3],size:[20,25]}],[0,"spheres",{blend:"softlight",dynamic:!0}],[0,"circles",{blend:"softlight",opacity:128}],[0,"noise",{blend:"softlight",opacity:32}]]})}},9815:e=>{e.exports=function(e){e.preset("cells",{width:256,height:256,items:[[0,"spheres",{blend:"lighten",count:21,rgba:[255,255,255,1]}],[0,"invert"],[1,"spheres",{blend:"lighten",count:21,rgba:[155,155,155,1]}],[1,"invert"],[1,"merge",{layer:0,blend:["overlay","lighten","difference"]}],[1,"colorize"],[1,"brightness",{adjust:-10,legacy:!0}],[1,"vibrance",{adjust:50}],[1,"contrast",{adjust:50}]]})}},7323:e=>{e.exports=function(e){e.preset("checkerboards-multiply",{width:256,height:256,items:[[0,"checkerboard",{size:[[16,21],[16,21]],rgba:"randomalpha",blend:""}],[0,"checkerboard",{size:[[5,16],[5,16]],rgba:"randomalpha",blend:"multiply"}],[0,"checkerboard",{size:[[2,4],[2,4]],rgba:"randomalpha",blend:"multiply"}],[0,"sharpen",{type:2}],[0,"spheres",{blend:"multiply",dynamic:!0,opacity:255}]]})}},3108:e=>{e.exports=function(e){e.preset("checkerboards",{width:256,height:256,items:[[0,"checkerboard",{size:32,rgba:"randomalpha",blend:""}],[0,"checkerboard",{size:16,rgba:"randomalpha",blend:"opacity"}],[0,"checkerboard",{size:8,rgba:"randomalpha",blend:"opacity"}],[0,"checkerboard",{size:4,rgba:"randomalpha",blend:"opacity"}],[0,"checkerboard",{size:2,rgba:"randomalpha",blend:"opacity"}],[0,"sharpen",{type:2}],[0,"spheres",{blend:"random",dynamic:!0}]]})}},8413:e=>{e.exports=function(e){e.preset("checkerboards2",{width:256,height:256,items:[[0,"checkerboard",{size:[[17,32],[17,32]],rgba:"randomalpha",blend:""}],[0,"checkerboard",{size:[[9,16],[9,16]],rgba:"randomalpha",blend:"random"}],[0,"checkerboard",{size:[[5,8],[5,8]],rgba:"randomalpha",blend:"random"}],[0,"checkerboard",{size:[[2,4],[2,4]],rgba:"randomalpha",blend:"random"}],[0,"sharpen",{type:2}],[0,"spheres",{blend:"random",dynamic:!0,opacity:255}]]})}},2511:e=>{e.exports=function(e){e.preset("circles",{width:64,height:64,items:[[0,"circles",{count:7,origin:[50,50],size:[2,100],rgba:[[1,255],[1,255],[1,255],[.05,.15]]}],[0,"circles",{blend:["opacity","lighten","darken","softlight","multiply","screen","exclusion"],count:7,origin:[50,50],size:[2,50],rgba:[[1,255],[1,255],[1,255],[.05,.15]]}],[0,"brightness",{adjust:-10,legacy:!0}],[0,"vibrance",{adjust:50}],[1,"copy",0],[1,"contrast",{adjust:50}]]})}},1460:e=>{e.exports=function(e){e.preset("clouds-color",{width:512,height:512,items:[[0,"fill"],[0,"clouds",{blend:"difference"}],[0,"clouds",{blend:"difference"}],[0,"clouds",{blend:["exclusion","lighten","darken","overlay","screen","linearlight","lineardodge"]}],[0,"spheres",{blend:"softlight",rgba:"random",count:[7,21],size:[20,70],dynamic:!0}],[0,"vibrance",{adjust:20}],[0,"contrast",{adjust:20}]]})}},1942:e=>{e.exports=function(e){e.preset("clouds-colormap",{width:512,height:512,items:[[0,"fill"],[0,"clouds",{blend:"difference"}],[1,"copy",0],[1,"clouds",{blend:"difference"}],[2,"copy",1],[2,"clouds",{blend:["exclusion","lighten","darken","overlay","screen","linearlight","lineardodge"]}],[3,"copy",2],[3,"spheres",{blend:"softlight",rgba:"random",count:[7,21],size:[20,70],dynamic:!0}],[3,"map",{xamount:[14,121],yamount:[14,121],xchannel:[0,3],ychannel:[0,3],xlayer:[0,3],ylayer:[0,3]}],[3,"vibrance",{adjust:20}],[3,"contrast",{adjust:20}]]})}},9432:e=>{e.exports=function(e){e.preset("clouds-emboss",{width:512,height:512,items:[[0,"clouds"],[0,"clouds",{blend:"difference"}],[0,"emboss"]]})}},2176:e=>{e.exports=function(e){e.preset("clouds",{width:512,height:512,items:[[0,"fill",{rgba:[0,[50,150],[200,255],1]}],[0,"clouds",{blend:"screen",rgba:[255,255,255,1],roughness:[2,5]}],[0,"clouds",{blend:"overlay",rgba:[[0,20],[0,150],[200,255],1],roughness:[2,4]}]]})}},7844:e=>{e.exports=function(e){e.preset("craters",{width:256,height:256,items:[[0,"fill",{rgba:[[144,255],[144,255],[144,255],[.8,1]]}],[0,"spheres",{blend:["overlay","linearlight","multiply","difference","softlight","darken","opacity","lineardodge"],dynamic:!0}],[0,"spheres",{blend:["overlay","linearlight","multiply","difference","softlight","darken","opacity","lineardodge"],dynamic:!0}],[0,"map",{xamount:[1,77],yamount:[1,77],xchannel:[0,3],ychannel:[0,3],xlayer:0,ylayer:0}],[0,"brightness",{adjust:10}],[0,"contrast",{adjust:20}]]})}},7817:e=>{e.exports=function(e){e.preset("crosshatch",{width:256,height:256,items:[[0,"crosshatch"],[0,"waves",{blend:"random"}],[0,"brightness",{adjust:20,legacy:!0}],[0,"contrast",{adjust:10}],[0,"vibrance",{adjust:100}]]})}},1351:e=>{e.exports=function(e){e.preset("dots",{width:256,height:256,items:[[0,"dots",{blend:["opacity","lighten"],shape:"sphere",size:[200,400],gridX:[4,12],gridY:[4,12],xsines:[4,12],ysines:[4,12]}],[0,"dots",{blend:"random",shape:"sphere",size:[50,200],gridX:[4,12],gridY:[4,12],xsines:[4,12],ysines:[4,12]}],[0,"sharpen"]]})}},6961:e=>{e.exports=function(e){e.preset("dunes-blue",{width:256,height:256,items:[[0,"pyramids",{blend:"lighten",rgba:[[0,10],[20,80],[150,255],[.7,1]]}],[0,"pyramids",{blend:"lineardodge",dynamic:!0,rgba:[170,170,170,[.7,1]]}],[0,"waves",{blend:"softlight"}],[0,"waves",{blend:"softlight"}],[0,"map",{xamount:[10,144],yamount:[10,144],xchannel:[0,3],ychannel:[0,3],xlayer:0,ylayer:0}],[0,"brightness",{adjust:20}],[0,"contrast",{adjust:30}]]})}},4214:e=>{e.exports=function(e){e.preset("dunes-magic",{width:256,height:256,items:[[0,"spheres",{blend:"lighten"}],[0,"spheres",{blend:["softlight","lighten","lineardodge"],dynamic:!0}],[0,"waves",{blend:"softlight"}],[0,"waves",{blend:"softlight"}],[0,"map",{xamount:[1,144],yamount:[1,144],xchannel:[0,3],ychannel:[0,3],xlayer:0,ylayer:0}]]})}},6776:e=>{e.exports=function(e){e.preset("fire",{width:256,height:256,items:[[0,"subplasma",{size:[2,4]}],[0,"subplasma",{blend:"difference",size:[1,4]}],[0,"subplasma",{blend:"difference",size:[1,4]}],[0,"subplasma",{blend:"difference",size:[1,4]}],[0,"subplasma",{blend:"difference",size:[1,4]}],[0,"spheres",{blend:["difference"],size:[25,77],count:10,dynamic:!0}],[0,"colorize",{colormap:"!fire"}],[0,"contrast",{value:42}]]})}},9116:e=>{e.exports=function(e){e.preset("gradients",{width:512,height:512,items:[[0,"colorbar",{mirror:!0,colormap:["fire","ice","dusk","seashore","random"]}],[1,"colorbar",{mirror:!0,type:"vertical",colormap:[{percent:0,rgba:[[0,255],[0,255],[0,255],1]},{percent:50,rgba:[[0,255],[0,255],[0,255],1]},{percent:100,rgba:[[0,255],[0,255],[0,255],1]}]}],[2,"copy"],[2,"merge",{layer:0,blend:["multiply","lighten","exclusion","screen","lineardodge"]}]]})}},8818:(e,n,t)=>{e.exports=function(e){t(9674)(e),t(5706)(e),t(9815)(e),t(3108)(e),t(8413)(e),t(7323)(e),t(2511)(e),t(2176)(e),t(1460)(e),t(1942)(e),t(9432)(e),t(7844)(e),t(7817)(e),t(1351)(e),t(6961)(e),t(4214)(e),t(6776)(e),t(9116)(e),t(8255)(e),t(2232)(e),t(8800)(e),t(78)(e),t(3809)(e),t(180)(e),t(6676)(e),t(5752)(e),t(9502)(e),t(7986)(e),t(1220)(e),t(1591)(e),t(5494)(e),t(1416)(e),t(7696)(e),t(2643)(e),t(8663)(e),t(3219)(e),t(2200)(e),t(309)(e),t(5314)(e),t(5039)(e),t(3162)(e),t(5765)(e),t(1209)(e),t(1823)(e),t(2655)(e),t(29)(e),t(325)(e),t(946)(e),t(2408)(e),t(5523)(e),t(7711)(e),t(5172)(e),t(6922)(e),t(8098)(e),t(3107)(e),t(9771)(e),t(7943)(e),t(9039)(e),t(4293)(e),t(5374)(e),t(5949)(e),t(4042)(e),t(8331)(e),t(3584)(e)}},8255:e=>{e.exports=function(e){e.preset("lines",{width:256,height:256,items:[[0,"lines",{size:[110,210],count:[100,440],freq1s:[21,150],freq1c:[21,150],freq2s:[21,150],freq2c:[21,150],rgba:[[1,255],[1,255],[1,255],[.3,.5]]}]]})}},2232:e=>{e.exports=function(e){e.preset("lines2",{width:256,height:256,items:[[0,"lines2"],[0,"lines2"],[0,"lines2"]]})}},8800:e=>{e.exports=function(e){e.preset("lines3",{width:512,height:512,items:[[0,"lines3",{type:"horizontal",weight:[1,2],step:[2,4,8,16,32,64]}],[0,"lines3",{type:"horizontal",weight:[2,4],step:[4,8,16,32,64]}],[0,"lines3",{type:"horizontal",weight:[4,8],step:[4,8,16,32,64]}]]})}},78:e=>{e.exports=function(e){e.preset("map2",{width:256,height:256,items:[[0,"waves",{blend:"",channels:[1,1,1,1]}],[1,"spheres",{blend:["lineardodge","lighten"]}],[2,"copy",1],[2,"map",{xamount:[2,255],yamount:[2,255],xchannel:[0,3],ychannel:[0,3],xlayer:[0,1],ylayer:[0,1]}]]})}},3809:e=>{e.exports=function(e){e.preset("merge-map",{width:256,height:256,items:[[0,"pyramids",{blend:"difference",count:[14,44]}],[0,"pyramids",{blend:"lineardodge",count:[7,14]}],[0,"brightness",{adjust:20}],[0,"contrast",{adjust:20}],[1,"spheres",{dynamic:!0,blend:"lineardodge",count:[14,21]}],[2,"copy",0],[2,"merge",{layer:1,blend:"lineardodge"}],[2,"map",{xamount:[44,77],yamount:[77,121],xchannel:[0,3],ychannel:[0,3],xlayer:1,ylayer:1}]]})}},180:e=>{e.exports=function(e){e.preset("mergetest",{width:256,height:256,items:[[0,"waves",{blend:""}],[1,"pyramids",{blend:["lighten","difference","screen"],dynamic:!0}],[2,"spheres",{blend:["lighten","difference","screen"]}],[3,"merge",{layer:0}],[3,"merge",{layer:1,blend:"overlay"}],[4,"copy",3],[4,"merge",{layer:2,blend:"difference"}],[4,"brightness",{adjust:10,legacy:!0}],[4,"vibrance",{adjust:10}],[4,"contrast",{adjust:20}]]})}},6676:e=>{e.exports=function(e){e.preset("plasma-diffs",{width:256,height:256,items:[[0,"subplasma",{size:[1,4]}],[0,"subplasma",{blend:"difference",size:[1,4]}],[0,"subplasma",{blend:"difference",size:[1,4]}],[0,"subplasma",{blend:"difference",size:[1,4]}],[0,"subplasma",{blend:"difference",size:[1,4]}]]})}},5752:e=>{e.exports=function(e){e.preset("plasma-mergemap",{width:256,height:256,items:[[0,"subplasma",{size:[2,4]}],[0,"subplasma",{blend:"darken",size:[2,4]}],[0,"subplasma",{blend:"difference",size:[2,4]}],[0,"subplasma",{blend:"linearlight",size:[2,4]}],[0,"map",{xamount:[21,77],yamount:[21,77],xchannel:[0,3],ychannel:[0,3],xlayer:0,ylayer:0}]]})}},9502:e=>{e.exports=function(e){e.preset("plasma-shadows",{width:256,height:256,items:[[0,"subplasma",{size:[3,5]}],[0,"subplasma",{blend:"difference",size:[3,5]}],[0,"subplasma",{blend:"difference",size:[3,5]}],[0,"subplasma",{blend:"difference",size:[3,5]}],[0,"subplasma",{blend:"difference",size:[3,5]}],[0,"spheres",{blend:"multiply",dynamic:!0}],[0,"brightness",{adjust:40}],[0,"contrast",{adjust:40}],[0,"vibrance",{adjust:20}]]})}},1220:e=>{e.exports=function(e){e.preset("pyramids-map",{width:256,height:256,items:[[0,"pyramids",{blend:"difference",count:[7,21]}],[0,"pyramids",{blend:"lineardodge",count:[4,7]}],[0,"brightness",{adjust:20}],[0,"contrast",{adjust:20}],[1,"copy",0],[1,"map",{xamount:[44,77],yamount:[77,121],xchannel:[0,3],ychannel:[0,3],xlayer:[0,1],ylayer:[0,1]}]]})}},7986:e=>{e.exports=function(e){e.preset("pyramids",{width:256,height:256,items:[[0,"pyramids",{blend:["difference","lighten"]}],[1,"pyramids",{blend:["difference","lighten"]}],[2,"copy",0],[2,"merge",{layer:1,blend:["exclusion","difference","lighten","lineardodge","screen","darken"]}],[2,"brightness",{adjust:80}],[2,"contrast",{adjust:140}],[2,"vibrance",{adjust:70}]]})}},1591:e=>{e.exports=function(e){e.preset("rrrr",{width:256,height:256,normalize:"compress",items:[[0,["spheres","pyramids","waves","subplasma","dots","clouds","noise","lines2","colorbar","checkerboard","lines","squares","circles","crosshatch","xor"],{blend:["lighten","opacity","screen"],rgba:[[0,255],[0,255],[0,255],[.2,.9]],dynamic:"random"}],[1,"copy",0],[1,["spheres","pyramids","waves","subplasma","dots","clouds","noise","lines2","colorbar","checkerboard","lines","squares","circles","crosshatch","xor"],{blend:"random",rgba:[[0,255],[0,255],[0,255],[.1,.9]],dynamic:"random"}],[2,"copy",1],[2,["spheres","pyramids","waves","subplasma","dots","clouds","noise","lines2","colorbar","checkerboard","lines","squares","circles","crosshatch","xor"],{blend:"random",rgba:[[0,255],[0,255],[0,255],[.1,.9]],dynamic:"random"}],[3,"copy",2],[3,"map",{xamount:[2,177],yamount:[2,177],xchannel:[0,2],ychannel:[0,2],xlayer:[0,2],ylayer:[0,2]}]]})}},5494:e=>{e.exports=function(e){e.preset("rrrr2",{width:256,height:256,normalize:"compress",items:[[0,["spheres","pyramids","waves","subplasma","dots","clouds","noise","lines2","colorbar","checkerboard","lines","squares","circles","crosshatch"],{rgba:[[32,255],[32,255],[32,255],[.5,.9]],dynamic:"random"}],[0,["spheres","pyramids","waves","subplasma","dots","clouds","noise","lines2","colorbar","checkerboard","lines","squares","circles","crosshatch"],{blend:"random",rgba:[[0,255],[0,255],[0,255],[.1,.9]],dynamic:"random"}],[1,["spheres","pyramids","waves","subplasma","dots","clouds","noise","lines2","colorbar","checkerboard","lines","squares","circles","crosshatch"],{rgba:[[32,255],[32,255],[32,255],[.5,.9]],dynamic:"random"}],[1,["spheres","pyramids","waves","subplasma","dots","clouds","noise","lines2","colorbar","checkerboard","lines","squares","circles","crosshatch"],{blend:"random",rgba:[[0,255],[0,255],[0,255],[.1,.9]],dynamic:"random"}],[2,"copy",{layer:0}],[2,"merge",{layer:1,blend:"random"}],[2,"brightness",{adjust:20}],[2,"contrast",{adjust:30}],[2,"map",{xamount:[2,177],yamount:[2,177],xchannel:[0,4],ychannel:[0,4],xlayer:[0,2],ylayer:[0,2]}]]})}},1416:e=>{e.exports=function(e){e.preset("sci-fi-wall",{width:256,height:256,items:[[0,"waves",{}],[0,"dots",{blend:["lighten","opacity","multiply"],shape:"rect",size:[20,250],gridX:[2,12],gridY:[2,12],xsines:[2,12],ysines:[2,12]}],[0,"dots",{blend:["lighten","opacity","multiply"],shape:"rect",size:[20,250],gridX:[2,12],gridY:[2,12],xsines:[2,12],ysines:[2,12]}],[0,"sharpen",{type:1}],[0,"spheres",{blend:["multiply","darken"],dynamic:!0,opacity:255}]]})}},7696:e=>{e.exports=function(e){e.preset("sci-fi-wall2",{width:256,height:256,items:[[0,"waves",{}],[0,"dots",{blend:["lighten","opacity","multiply"],shape:"rect",size:[10,280],gridX:[2,14],gridY:[2,14],xsines:[2,14],ysines:[2,14]}],[0,"dots",{blend:["lighten","opacity","multiply"],shape:"rect",size:[10,280],gridX:[2,14],gridY:[2,14],xsines:[2,14],ysines:[2,14]}],[0,"pyramids",{blend:["softlight","overlay"],dynamic:!1,count:10}],[0,"sharpen",{type:1}],[0,"spheres",{blend:["multiply","darken"],dynamic:!0,opacity:255}]]})}},2643:e=>{e.exports=function(e){e.preset("sci-fi-wall3",{width:512,height:512,items:[[0,"waves",{}],[0,"dots",{blend:["lighten","opacity","multiply"],shape:"rect",size:[10,280],gridX:[2,14],gridY:[2,14],xsines:[2,14],ysines:[2,14]}],[0,"dots",{blend:["lighten","opacity","multiply"],shape:"rect",size:[10,280],gridX:[2,14],gridY:[2,14],xsines:[2,14],ysines:[2,14]}],[0,"pyramids",{blend:["softlight","overlay"],dynamic:!1,count:10}],[0,"sharpen",{type:1}],[0,"spheres",{blend:["multiply","darken"],dynamic:!0,opacity:255}],[0,"rot90",{blend:"random"}]]})}},8663:e=>{e.exports=function(e){e.preset("sines-blue",{width:512,height:512,items:[[0,"subplasma",{size:[1,5],rgba:[[0,255],[0,255],[77,255],1]}],[0,"sinecolor",{channel:[0,2]}],[0,"subplasma",{blend:"random",size:[1,5],rgba:"randomalpha"}],[0,"sinecolor",{channel:[0,2]}],[0,"subplasma",{blend:"random",size:[1,5],rgba:"randomalpha"}],[0,"sinecolor",{channel:[0,2]}],[0,"colorize",{colormap:"ice"}],[0,"brightness",{adjust:20}],[0,"contrast",{adjust:20}],[0,"vibrance",{adjust:20}]]})}},3219:e=>{e.exports=function(e){e.preset("sines-chrome",{width:256,height:256,items:[[0,"subplasma",{size:3,rgba:[[0,255],[0,255],[77,255],1]}],[0,"sinecolor",{channel:2}],[0,"subplasma",{blend:["difference","darken","lighten"],size:3,rgba:[[0,255],[77,255],[0,255],1]}],[0,"sinecolor",{channel:1}],[0,"subplasma",{blend:["difference","darken","lighten"],size:3,rgba:[[77,255],[0,255],[0,255],1]}],[0,"sinecolor",{channel:0}],[0,"grayscale"],[0,"brightness",{adjust:20}],[0,"contrast",{adjust:20}],[0,"vibrance",{adjust:20}]]})}},2200:e=>{e.exports=function(e){e.preset("sines-color",{width:256,height:256,items:[[0,"subplasma",{size:3,rgba:[[0,255],[0,255],[77,255],1]}],[0,"sinecolor",{channel:2}],[0,"subplasma",{blend:["difference","darken","lighten"],size:3,rgba:[[0,255],[77,255],[0,255],1]}],[0,"sinecolor",{channel:1}],[0,"subplasma",{blend:["difference","darken","lighten"],size:3,rgba:[[77,255],[0,255],[0,255],1]}],[0,"sinecolor",{channel:0}],[0,"brightness",{adjust:20}],[0,"contrast",{adjust:20}],[0,"vibrance",{adjust:20}]]})}},309:e=>{e.exports=function(e){e.preset("sines-plasma",{width:512,height:512,items:[[0,"subplasma",{size:[1,5],rgba:[[32,255],[32,255],[32,255],1]}],[0,"sinecolor",{blend:"random",channel:[0,2]}],[0,"subplasma",{blend:"random",size:[1,5],rgba:"randomalpha"}],[0,"sinecolor",{blend:"random",channel:[0,2]}],[0,"subplasma",{blend:"random",size:[1,5],rgba:"randomalpha"}],[0,"sinecolor",{blend:"random",channel:[0,2]}],[0,"brightness",{adjust:20}],[0,"contrast",{adjust:20}],[0,"vibrance",{adjust:20}]]})}},5314:e=>{e.exports=function(e){e.preset("spaceship-color",{width:256,height:256,items:[[0,"waves",{blend:"",rgba:[128,128,128,.5]}],[0,"lines2",{blend:["opacity","screen"],count:[4,44],size:[.1,7]}],[0,"lines2",{blend:"random",type:"horizontal",count:[4,44],size:[.1,7]}],[0,"squares",{blend:["opacity","darken","softlight",""]}],[0,"squares",{blend:["opacity","darken","softlight",""],count:[4,44],size:[7,21]}],[0,"squares",{blend:["opacity","darken","softlight",""],count:[21,44],size:[4,7]}],[0,"pyramids",{blend:"random",dynamic:!0}],[0,"noise",{blend:"softlight",opacity:.2}],[0,"lines2",{blend:["opacity"],rgba:[[32,255],[32,255],[32,255],[.1,.5]],type:"horizontal",count:[21,44],size:[.1,1]}],[0,"lines2",{blend:["opacity"],rgba:[0,0,0,[.1,.5]],count:[4,21],size:[.2,0,5]}],[0,"sharpen",{type:1}]]})}},5039:e=>{e.exports=function(e){e.preset("spaceship-hull",{width:256,height:256,items:[[0,"waves",{blend:"",rgba:[128,128,128,.5]}],[0,"lines2",{blend:["opacity","screen"],count:[4,44],size:[.1,7]}],[0,"lines2",{blend:"random",type:"horizontal",count:[4,44],size:[.1,7]}],[0,"squares",{blend:["opacity","darken","softlight",""]}],[0,"squares",{blend:["opacity","darken","softlight",""],count:[4,44],size:[7,21]}],[0,"squares",{blend:["opacity","darken","softlight",""],count:[21,44],size:[4,7]}],[0,"pyramids",{blend:"random",dynamic:!0}],[0,"noise",{blend:"softlight",opacity:.2}],[0,"grayscale"],[0,"lines2",{blend:["opacity"],rgba:[[32,255],[32,255],[32,255],[.1,.5]],type:"horizontal",count:[21,44],size:[.1,1]}],[0,"lines2",{blend:["opacity"],rgba:[0,0,0,[.1,.5]],count:[4,21],size:[.2,0,5]}],[0,"sharpen",{type:1}]]})}},5765:e=>{e.exports=function(e){e.preset("spheres-blend",{width:512,height:512,items:[[0,"fill",{blend:"opacity",rgba:"random"}],[0,"spheres",{blend:"random",origin:"random",dynamic:!0,count:21,size:[10,60]}],[0,"spheres",{blend:"random",origin:"random",dynamic:!0,count:21,size:[10,60]}],[0,"spheres",{blend:"random",origin:"random",dynamic:!0,count:44,size:[10,44]}]]})}},1209:e=>{e.exports=function(e){e.preset("spheres-diffdodge",{width:256,height:256,items:[[0,"spheres",{blend:"difference",count:[7,21]}],[0,"spheres",{blend:"lineardodge",count:[4,7]}],[0,"brightness",{adjust:20}],[0,"contrast",{adjust:20}]]})}},1823:e=>{e.exports=function(e){e.preset("spheres-invert",{width:256,height:256,items:[[0,"spheres",{blend:"difference",count:[21,32]}],[0,"invert"],[1,"spheres",{blend:"difference",count:[21,48]}],[1,"invert"],[2,"merge",{layer:0}],[2,"merge",{layer:1,blend:"difference"}]]})}},2655:e=>{e.exports=function(e){e.preset("spheres-lilio",{width:256,height:256,items:[[0,"spheres",{blend:"lighten",count:[21,44]}],[1,"spheres",{blend:"lineardodge",count:[21,44]}],[2,"merge",{layer:0}],[2,"merge",{layer:1,blend:"overlay"}]]})}},29:e=>{e.exports=function(e){e.preset("spheres-map",{width:256,height:256,items:[[0,"spheres",{blend:"difference",count:[7,21]}],[0,"spheres",{blend:"lineardodge",count:[4,7]}],[0,"brightness",{adjust:20}],[0,"contrast",{adjust:20}],[1,"copy",0],[1,"map",{xamount:[44,77],yamount:[77,121],xchannel:[0,3],ychannel:[0,3],xlayer:[0,1],ylayer:[0,1]}]]})}},325:e=>{e.exports=function(e){e.preset("spheres-map2",{width:256,height:256,items:[[0,"spheres",{blend:"lighten",count:21}],[1,"spheres",{blend:"lighten",count:21}],[1,"merge",{layer:0,blend:["overlay","lighten","difference"]}],[1,"map",{xamount:[21,177],yamount:[21,177],xchannel:[0,3],ychannel:[0,3],xlayer:[0,1],ylayer:[0,1]}]]})}},946:e=>{e.exports=function(e){e.preset("spheres-worm",{width:256,height:256,items:[[0,"spheres",{blend:["lighten","lineardodge"],count:[14,21]}],[1,"spheres",{blend:["lighten","lineardodge"],count:[14,21]}],[2,"merge",{layer:0}],[2,"merge",{layer:1,blend:"darken"}]]})}},3162:e=>{e.exports=function(e){e.preset("spheres",{width:256,height:256,items:[[0,"spheres",{blend:"lighten",count:[7,21]}],[1,"spheres",{blend:"lighten",count:[4,7]}],[1,"merge",{layer:0,blend:"lighten"}],[1,"brightness",{adjust:20}],[1,"contrast",{adjust:20}]]})}},2408:e=>{e.exports=function(e){e.preset("squares",{width:64,height:64,items:[[0,"squares",{count:[4,14],origin:[50,50],size:[2,200],rgba:[[1,255],[1,255],[1,255],[.05,.15]]}],[0,"squares",{blend:["opacity","lighten","darken","softlight","multiply","screen","exclusion"],count:[4,14],origin:[50,50],size:[2,100],rgba:[[1,255],[1,255],[1,255],[.05,.15]]}],[0,"brightness",{adjust:-10,legacy:!0}],[0,"vibrance",{adjust:50}],[1,"copy",0],[1,"contrast",{adjust:50}]]})}},5523:e=>{e.exports=function(e){e.preset("starfield",{width:512,height:512,items:[[0,"fill",{rgba:[[30,60],[30,60],[30,60],1]}],[0,"clouds",{blend:"softlight",rgba:[232,126,226,1],roughness:[2,4]}],[0,"clouds",{blend:"overlay",rgba:[44,108,208,1],roughness:[2,4]}],[0,"pyramids",{blend:"screen",rgba:[255,255,255,.5],count:170,size:.5}],[0,"pyramids",{blend:"screen",rgba:[255,255,255,1],count:170,size:1}],[0,"pyramids",{blend:"lineardodge",rgba:[255,255,255,1],count:7,size:[1,3]}],[0,"brightness",{adjust:10,legacy:!0}],[0,"vibrance",{adjust:50}],[0,"contrast",{adjust:50}]]})}},7711:e=>{e.exports=function(e){e.preset("stone-and-flowers",{width:256,height:256,items:[[0,"subplasma",{size:[3,5]}],[0,"subplasma",{blend:"difference",size:[3,5]}],[0,"subplasma",{blend:"difference",size:[3,5]}],[0,"subplasma",{blend:"difference",size:[3,5]}],[0,"subplasma",{blend:"difference",size:[3,5]}],[0,"spheres",{blend:"difference",dynamic:!1}],[0,"brightness",{adjust:20}],[0,"contrast",{adjust:20}],[0,"vibrance",{adjust:20}]]})}},5172:e=>{e.exports=function(e){e.preset("waves-3",{width:256,height:256,items:[[0,"waves"],[0,"waves",{blend:"difference",xsines:[1,3],ysines:[1,4]}],[0,"waves",{blend:"linearburn",xsines:[1,3],ysines:[1,4]}],[0,"brightness",{adjust:80,legacy:!0}],[0,"vibrance",{adjust:20}]]})}},6922:e=>{e.exports=function(e){e.preset("waves-4",{width:256,height:256,items:[[0,"waves"],[0,"waves",{blend:"softlight"}],[0,"waves",{blend:"difference"}],[0,"waves",{blend:"linearburn"}],[0,"brightness",{adjust:40,legacy:!0}],[0,"vibrance",{adjust:10}]]})}},3107:e=>{e.exports=function(e){e.preset("waves-5-map",{width:256,height:256,items:[[0,"waves"],[0,"waves",{blend:"difference"}],[0,"waves",{blend:"linearburn"}],[0,"waves",{blend:"difference"}],[0,"waves",{blend:"linearburn"}],[0,"subplasma",{blend:["multiply","difference"]}],[0,"brightness",{adjust:10,legacy:!0}],[0,"vibrance",{adjust:10}],[0,"map"]]})}},8098:e=>{e.exports=function(e){e.preset("waves-5",{width:256,height:256,items:[[0,"waves"],[0,"waves",{blend:"difference"}],[0,"waves",{blend:"linearburn"}],[0,"waves",{blend:"difference"}],[0,"waves",{blend:"linearburn"}],[0,"brightness",{adjust:10,legacy:!0}],[0,"vibrance",{adjust:10}]]})}},7943:e=>{e.exports=function(e){e.preset("waves-cool-rotate",{width:512,height:512,items:[[0,"spheres",{blend:"lighten",origin:"random",dynamic:!1,count:21,size:[20,70]}],[0,"spheres",{blend:"lineardodge",origin:"random",dynamic:!0,count:21,size:[20,70]}],[0,"waves",{blend:"softlight",level:50,xsines:20,ysines:1}],[0,"waves",{blend:"softlight",level:50,xsines:20,ysines:1}],[0,"map",{xamount:[21,121],yamount:[21,121],xchannel:0,ychannel:2,xlayer:0,ylayer:0}],[0,"rot90",{times:[1,3],blend:"random"}]]})}},9771:e=>{e.exports=function(e){e.preset("waves-cool",{width:256,height:256,items:[[0,"spheres",{blend:"lighten",origin:"random",dynamic:!1,count:21,size:[20,70]}],[0,"spheres",{blend:"lineardodge",origin:"random",dynamic:!0,count:21,size:[20,70]}],[0,"waves",{blend:"softlight",level:50,xsines:20,ysines:1}],[0,"waves",{blend:"softlight",level:50,xsines:20,ysines:1}],[0,"map",{xamount:[21,121],yamount:[21,121],xchannel:0,ychannel:2,xlayer:0,ylayer:0}]]})}},4293:e=>{e.exports=function(e){e.preset("xor-sharpen",{width:512,height:512,normalize:"pingpong",items:[[0,"fill",{rgba:[0,0,0]}],[0,"xor",{zoom:[1,2]}],[0,"xor",{zoom:[2,4]}],[0,"xor",{zoom:[4,8]}],[0,"sharpen"],[0,"contrast",{adjust:42}]]})}},9039:e=>{e.exports=function(e){e.preset("xor",{width:256,height:256,normalize:"pingpong",items:[[0,"xor",{zoom:[2,8]}],[0,"xor",{zoom:[4,16]}],[0,"xor",{zoom:[8,32]}]]})}},5949:e=>{e.exports=function(e){e.preset("z-dev-rotate",{width:256,height:256,items:[[0,"spheres",{blend:"lighten",origin:"random",dynamic:!1,count:21,size:[20,70]}],[0,"spheres",{blend:"lineardodge",origin:"random",dynamic:!0,count:21,size:[20,70]}],[0,"waves",{blend:"softlight",level:50,xsines:20,ysines:1}],[0,"waves",{blend:"softlight",level:50,xsines:20,ysines:1}],[0,"map",{xamount:[21,121],yamount:[21,121],xchannel:0,ychannel:2,xlayer:0,ylayer:0}],[null,"copy",{}],[null,"rotate",{type:2,angle:[10,100],times:[1,3],blend:"random"}]]})}},5374:e=>{e.exports=function(e){e.preset("z-dev",{width:256,height:256,normalize:"pingpong",items:[[0,"fill",{seed:34598}],[0,"dots",{shape:null,blend:"random"}],[0,"rot90",{blend:"random"}]]})}},4042:e=>{e.exports=function(e){e.preset("z-error-blend",{width:512,height:512,items:[[0,"clouds",{colormap:"redblue",seed:32,roughness:4}],[1,"clouds",{colormap:"seashore",seed:211,roughness:4}],[2,"copy"],[2,"merge",{layer:0,blend:"multiply"}],[3,"copy",{layer:0}],[3,"clouds",{colormap:"seashore",blend:"multiply",seed:211,roughness:4}]]})}},8331:e=>{e.exports=function(e){e.preset("z-error-blend2",{width:256,height:256,items:[[0,"dots",{blend:"difference-invert",rgba:[[0,255],[0,255],120,.9],shape:"rect",size:[200,200],gridX:[7,7],gridY:[7,7],xsines:[7,7],ysines:[7,7]}]]})}},3584:e=>{e.exports=function(e){e.preset("z-test-pattern",{width:256,height:256,items:[[0,"test-pattern"]]})}},6221:e=>{e.exports=function(e){e.shape("circle",(function(e,n,t,r,a){var i,s,o;for(null==a&&(n+=r,t+=r),i=-r;i{e.exports=function(e){e.shape("colorLine",(function(e,n,t,r,a,i,s,o){var l,d,c,u,h,p=i.length,f=Math.sqrt((r-n)*(r-n)+(a-t)*(a-t)),b=(r-n)/f,y=(a-t)/f,m=0,g=0;for(s=s||1,u=0;u{e.exports=function(e){t(6221)(e),t(2673)(e),t(2105)(e),t(5174)(e),t(4374)(e),t(3196)(e)}},2105:e=>{e.exports=function(e){e.shape("line",(function(e,n,t,r,a){var i,s=Math.sqrt((r-n)*(r-n)+(a-t)*(a-t)),o=(r-n)/s,l=(a-t)/s,d=0,c=0;for(i=0;i{e.exports=function(e){e.shape("pyramid",(function(e,n,t,r,a,i,s,o){var l,d,c,u,h=parseInt(r/2,10),p=parseInt(a/2,10);for(1!=i&&(n+=h,t+=p),c=-h;c1&&(d=o?l:s[3],e.point.rgba=[s[0]/255*l,s[1]/255*l,s[2]/255*l,d],e.point.set(n+c,t+u))}))}},4374:e=>{e.exports=function(e){e.shape("rect",(function(e,n,t,r,a,i){var s,o;for(void 0!==i&&(n-=parseInt(r/2,10),t-=parseInt(a/2,10)),s=0;s{e.exports=function(e){e.shape("sphere",(function(e,n,t,r,a,i,s){var o,l,d,c,u;for(null==a&&(n+=r,t+=r),c=-r;c0&&(l=s?255*o:i[3],e.point.rgba=[i[0]*o,i[1]*o,i[2]*o,l],e.point.set(n+c,t+u))}))}},9281:(e,n,t)=>{var r={version:"1.4.16",defaults:{},effects:{},prepare:{},filters:[],presets:{},functions:[],blends:{},shapes:{},colormaps:{},config:{},blendFlat:["lighten","screen","opacity"],blendSafe:["average","lighten","linearburn","linearlight","difference","difference-invert","screen","lineardodge","lineardodge-invert","opacity","exclusion"],randomRGBA:[[0,255],[0,255],[0,255],[64,255]],effect:function(e,n,t,r){this.defaults[e]=n,this.effects[e]=t,this.prepare[e]=r},function:function(e,n,t){this.functions.push(e),this.defaults[e]=n,this.effects[e]=t},filter:function(e,n,t){this.filters.push(e),this.defaults[e]=n,this.effects[e]=t},preset:function(e,n){n.name=e,this.presets[e]=n},event:function(e,n,t){null!=this.events[e]&&(this.events[e][n]=t)},blend:function(e,n){this.blends[e]=n},shape:function(e,n){this.shapes[e]=n},colormap:function(e,n){this.colormaps[e]=n},init:function(e,n,t){return this.getGenerator(e,n,t)}};t(6611)(r),t(5702)(r),t(9395)(r),t(8565)(r),t(3551)(r),t(5265)(r),t(490)(r),t(9136)(r),e.exports=r},2265:(e,n,t)=>{var r,a=t(9281);t(8818)(a),"undefined"!=typeof window&&(window.tgen=a),void 0!==e.exports?e.exports=a:void 0===(r=function(){return a}.apply(n,[]))||(e.exports=r)},6611:e=>{e.exports=function(e){e.blend("opacity",(function(e,n,t){return t})),e.blend("multiply",(function(e,n,t){return t[0]=n[0]*t[0]/255,t[1]=n[1]*t[1]/255,t[2]=n[2]*t[2]/255,t})),e.blend("linearburn",(function(e,n,t){return t[0]=n[0]+t[0]-255,t[1]=n[1]+t[1]-255,t[2]=n[2]+t[2]-255,t})),e.blend("difference",(function(e,n,t){return t[0]=Math.abs(t[0]-n[0]),t[1]=Math.abs(t[1]-n[1]),t[2]=Math.abs(t[2]-n[2]),t})),e.blend("difference-invert",(function(e,n,t){return t[0]=255-Math.abs(t[0]-n[0]),t[1]=255-Math.abs(t[1]-n[1]),t[2]=255-Math.abs(t[2]-n[2]),t})),e.blend("screen",(function(e,n,t){return t[0]=255-(255-n[0])*(255-t[0])/255,t[1]=255-(255-n[1])*(255-t[1])/255,t[2]=255-(255-n[2])*(255-t[2])/255,t})),e.blend("overlay",(function(e,n,t){return t[0]=n[0]>128?255-2*(255-t[0])*(255-n[0])/255:n[0]*t[0]*2/255,t[1]=n[1]>128?255-2*(255-t[1])*(255-n[1])/255:n[1]*t[1]*2/255,t[2]=n[2]>128?255-2*(255-t[2])*(255-n[2])/255:n[2]*t[2]*2/255,t})),e.blend("exclusion",(function(e,n,t){return t[0]=128-2*(n[0]-128)*(t[0]-128)/255,t[1]=128-2*(n[1]-128)*(t[1]-128)/255,t[2]=128-2*(n[2]-128)*(t[2]-128)/255,t})),e.blend("darken",(function(e,n,t){return t[0]=t[0]n[0]?t[0]:n[0],t[1]=t[1]>n[1]?t[1]:n[1],t[2]=t[2]>n[2]?t[2]:n[2],t})),e.blend("lineardodge",(function(e,n,t){return t[0]=n[0]+t[0],t[1]=n[1]+t[1],t[2]=n[2]+t[2],t})),e.blend("lineardodge-invert",(function(e,n,t){return t[0]=255-(t[0]+n[0]),t[1]=255-(t[1]+n[1]),t[2]=255-(t[2]+n[2]),t})),e.blend("linearlight",(function(e,n,t){return t[0]=n[0]+2*t[0]-255,t[1]=n[1]+2*t[1]-255,t[2]=n[2]+2*t[2]-255,t})),e.blend("linearburn",(function(e,n,t){return t[0]=n[0]+t[0]-255,t[1]=n[1]+t[1]-255,t[2]=n[2]+t[2]-255,t})),e.blend("softlight",(function(e,n,t){return t[0]=n[0]>128?255-(255-n[0])*(255-(t[0]-128))/255:n[0]*(t[0]+128)/255,t[1]=n[1]>128?255-(255-n[1])*(255-(t[1]-128))/255:n[1]*(t[1]+128)/255,t[2]=n[2]>128?255-(255-n[2])*(255-(t[2]-128))/255:n[2]*(t[2]+128)/255,t})),e.blend("subbtract",(function(e,n,t){return t[0]=Math.max(n[0]-t[0],0),t[1]=Math.max(n[1]-t[1],0),t[2]=Math.max(n[2]-t[2],0),t})),e.blend("backlight",(function(e,n,t){return n[0]=0===n[0]?.001:n[0],n[1]=0===n[1]?.001:n[1],n[2]=0===n[2]?.001:n[2],t[0]=255/n[0]*(255/t[0]),t[1]=255/n[1]*(255/t[1]),t[2]=255/n[2]*(255/t[2]),t})),e.blend("average",(function(e,n,t){return t[0]=(t[0]+n[0])/2,t[1]=(t[1]+n[1])/2,t[2]=(t[2]+n[2])/2,t})),e.blend("alphamap",(function(e,n,t){return n[3]=(t[0]+t[1]+t[2])/3,n}))}},5702:e=>{e.exports=function(e){e.colormap("blackwhite",(function(){return[{percent:0,rgba:[0,0,0,255]},{percent:25,rgba:[255,255,255,255]},{percent:50,rgba:[0,0,0,255]},{percent:75,rgba:[255,255,255,255]},{percent:100,rgba:[0,0,0,255]}]})),e.colormap("blackwhite2",(function(){return[{percent:0,rgba:[0,0,0,255]},{percent:100,rgba:[255,255,255,255]}]})),e.colormap("grayscale",(function(){return[{percent:0,rgba:[0,0,0,255]},{percent:100,rgba:[255,255,255,255]}]})),e.colormap("elevation",(function(){return[{percent:0,rgba:[252,69,27,255]},{percent:25,rgba:[245,203,39,255]},{percent:50,rgba:[104,253,163,255]},{percent:75,rgba:[27,196,253,255]},{percent:100,rgba:[88,18,252,255]}]})),e.colormap("wiener-challah",(function(){return[{percent:0,rgba:[66,53,66,255]},{percent:25,rgba:[111,68,70,255]},{percent:50,rgba:[163,90,59,255]},{percent:75,rgba:[237,155,43,255]},{percent:100,rgba:[255,240,150,255]}]})),e.colormap("parula",(function(){return[{percent:0,rgba:[53,42,135,255]},{percent:12.5,rgba:[3,99,225,255]},{percent:25,rgba:[20,133,212,255]},{percent:37.5,rgba:[6,167,198,255]},{percent:50,rgba:[56,185,158,255]},{percent:62.5,rgba:[146,191,115,255]},{percent:75,rgba:[217,186,86,255]},{percent:87.5,rgba:[252,206,46,255]},{percent:100,rgba:[249,251,14,255]}]})),e.colormap("dawn",(function(){return[{percent:0,rgba:[255,255,192,255]},{percent:25,rgba:[255,255,128,255]},{percent:50,rgba:[255,128,128,255]},{percent:75,rgba:[128,0,128,255]},{percent:100,rgba:[0,0,128,255]}]})),e.colormap("dusk",(function(){return[{percent:0,rgba:[255,255,255,255]},{percent:25,rgba:[255,128,255,255]},{percent:50,rgba:[128,0,255,255]},{percent:75,rgba:[0,0,128,255]},{percent:100,rgba:[0,0,0,255]}]})),e.colormap("kryptonite",(function(){return[{percent:0,rgba:[255,255,255,255]},{percent:25,rgba:[255,255,128,255]},{percent:50,rgba:[128,255,0,255]},{percent:75,rgba:[0,128,0,255]},{percent:100,rgba:[0,0,0,255]}]})),e.colormap("ice",(function(){return[{percent:0,rgba:[255,255,255,255]},{percent:25,rgba:[128,255,255,255]},{percent:50,rgba:[0,128,255,255]},{percent:75,rgba:[0,0,128,255]},{percent:100,rgba:[0,0,0,255]}]})),e.colormap("fire",(function(){return[{percent:0,rgba:[255,255,255,255]},{percent:25,rgba:[255,255,128,255]},{percent:50,rgba:[255,128,0,255]},{percent:75,rgba:[128,0,0,255]},{percent:100,rgba:[0,0,0,255]}]})),e.colormap("redblue",(function(){return[{percent:0,rgba:[96,0,0,255]},{percent:25,rgba:[192,0,0,255]},{percent:50,rgba:[255,255,255,255]},{percent:75,rgba:[0,0,192,255]},{percent:100,rgba:[0,0,96,255]}]})),e.colormap("seashore",(function(){return[{percent:0,rgba:[255,255,192,255]},{percent:25,rgba:[255,255,128,255]},{percent:50,rgba:[128,255,128,255]},{percent:75,rgba:[0,128,128,255]},{percent:100,rgba:[0,0,128,255]}]}))}},9395:e=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}e.exports=function(e){e.getGenerator=function(t,r,a){var i=this,s={},o=[],l=null,d={shape:i.shapes,effects:Object.keys(i.effects),layers:[],normalize:a||"limitless"},c=function(){null==t&&(t=256),t<1&&(t=256),r<1&&(r=256),t>2048&&(t=2048),r>2048&&(r=2048),null==r&&(r=t),l=(t+r)/2};c(),d.log=function(){if(this.debug&&arguments.length>0){for(var e=[],n=0;n=n?r=e-(t=Math.floor(a)*n):e<0?(t=Math.ceil(a)*n,(r=n-Math.abs(e-t))>=n?r-=n:r):void 0},this.offset=function(e,n){return e=Math.round(e),n=Math.round(n),(e<0||e>=this.width)&&(e=this.pattern(e,this.width)),(n<0||n>=this.height)&&(n=this.pattern(n,this.height)),n*this.width*this.components+e*this.components},this.set=function(e,n,t){var r=this.offset(e,n);this.data[r]=t[0],this.data[r+1]=t[1],this.data[r+2]=t[2],this.data[r+3]=t[3]},this.get=function(e,n){var t=this.offset(e,n);return[this.data[t],this.data[t+1],this.data[t+2],this.data[t+3]]},this.alpha=function(e){var n;if("sphere"===e)for(;n;)d.texture.data[n]=.5,n-=4},this.canvas=function(e){for(var n=this.size(),t=e.getContext("2d").getImageData(0,0,this.width,this.height);n--;)d.texture.data[n]=t.data[n]},null===this.data&&this.clear()},d.texture=new d.buffer,d.layerCopy=function(e){for(var n=this.layers[e],t=[],r=n.length;r--;)t[r]=n[r];return t},d.minMaxNormalize=function(e,n){return{min:Math.min(e,n),max:Math.max(e,n)}},d.randInt=function(e,n,t){var r,a=d.minMaxNormalize(e,n);return e=a.min,n=a.max,!0===t?(e=Math.round(e/2),n=Math.round(n/2),r=2):r=1,r*(Math.floor(Math.random()*(n-e+1))+e)},d.randIntSeed=function(e,n,t){var r,a=d.minMaxNormalize(e,n);return e=a.min,n=a.max,!0===t?(e=Math.round(e/2),n=Math.round(n/2),r=2):r=1,r*(Math.floor(d.calc.randomseed()*(n-e+1))+e)},d.randReal=function(e,n){var t=d.minMaxNormalize(e,n);return e=t.min,n=t.max,Math.random()*(n-e)+e},d.randRealSeed=function(e,n){var t=d.minMaxNormalize(e,n);return e=t.min,n=t.max,d.calc.randomseed()*(n-e)+e},d.randByArray=function(e,t){return null==e||"object"!==n(e)||void 0===e[0]?(d.calc.seed++,e):e=void 0!==t?d.randReal(e[0],e[1]):d.randInt(e[0],e[1])},d.randByArraySeed=function(e,t,r){return null==e||"object"!==n(e)||void 0===e[0]?(d.calc.seed++,e):e=t?d.randRealSeed(e[0],e[1]):d.randIntSeed(e[0],e[1],r)},d.randIntByArraySeed=function(e,t,r){return null!=e&&"random"!==e||(e=t),"object"!==n(e)?(d.calc.seed++,e):e=d.randIntSeed(e[0],e[1],r)},d.randRealByArraySeed=function(e,t){return null!=e&&"random"!==e||(e=t),"object"!==n(e)?(d.calc.seed++,e):e=d.randRealSeed(e[0],e[1])},d.randItemSeed=function(e){if("object"!==n(e)||void 0===e[0])return d.calc.seed++,e;var t=e.length;return e[d.randIntSeed(0,t-1)]},d.randItemByArray=function(e,n){if(null!=e&&"random"!==e)return e;var t=n.length;return n[d.randInt(0,t-1)]},d.randItemByArraySeed=function(e,n){if(null!=e&&"random"!==e)return d.calc.seed++,e;var t=n.length;return n[d.randIntSeed(0,t-1)]},d.randProperty=function(e,n){if(null!=e&&"random"!==e)return d.calc.seed++,e;var t=Object.keys(n);return t[d.randByArraySeed([0,t.length-1])]},d.rgba=function(e){return"random"!==e&&null!=e||(e=[[0,255],[0,255],[0,255],255]),"randomalpha"===e&&(e=[[0,255],[0,255],[0,255],[128,255]]),void 0!==e[0]&&null!==e[0]||(e[0]=0),void 0!==e[1]&&null!==e[1]||(e[1]=0),void 0!==e[2]&&null!==e[2]||(e[2]=0),void 0!==e[3]&&null!==e[3]||(e[3]=255),e[0]=d.randByArraySeed(e[0]),e[1]=d.randByArraySeed(e[1]),e[2]=d.randByArraySeed(e[2]),e[3]=d.randByArraySeed(e[3]),e[3]%1!=0&&(e[3]=Math.round(255*e[3])),1==e[3]&&(e[3]=255),e};return d.findClosestIndex=function(e,n,t){for(var r=n;r>=0&&r<=e.length-1;r+=t)if(e[r])return r;return e.length-1},d.easing={PI:3.1415926535,c1:1.70158,c2:1.525*this.c1,c3:this.c1+1,c4:2*this.PI/3,c5:2*this.PI/4.5,InQuad:function(e){return e*e},OutQuad:function(e){return 1-(1-e)*(1-e)},InOutQuad:function(e){return e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2},InCubic:function(e){return e*e*e},OutCubic:function(e){return 1-Math.pow(1-e,3)},InOutCubic:function(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2},InQuart:function(e){return e*e*e*e},OutQuart:function(e){return 1-Math.pow(1-e,4)},InOutQuart:function(e){return e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2},InQuint:function(e){return e*e*e*e*e},OutQuint:function(e){return 1-Math.pow(1-e,5)},InOutQuint:function(e){return e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2},InSine:function(e){return 1-Math.cos(e*this.PI/2)},OutSine:function(e){return Math.sin(e*this.PI/2)},InOutSine:function(e){return-(Math.cos(this.PI*e)-1)/2},InExpo:function(e){return 0===e?0:Math.pow(2,10*e-10)},OutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},InOutExpo:function(e){return 0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2},InCirc:function(e){return 1-Math.sqrt(1-Math.pow(e,2))},OutCirc:function(e){return Math.sqrt(1-Math.pow(e-1,2))},InOutCirc:function(e){return e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2},InBack:function(e){return this.c3*e*e*e-this.c1*e*e},OutBack:function(e){return 1+this.c3*Math.pow(e-1,3)+this.c1*Math.pow(e-1,2)},InOutBack:function(e){return e<.5?Math.pow(2*e,2)*(2*(this.c2+1)*e-this.c2)/2:(Math.pow(2*e-2,2)*((this.c2+1)*(2*e-2)+this.c2)+2)/2},InElastic:function(e){return 0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*this.c4)},OutElastic:function(e){return 0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*this.c4)+1},InOutElastic:function(e){return 0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*this.c5)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*this.c5)/2+1},InBounce:function(e){return 1-this.OutBounce(1-e)},OutBounce:function(e){var n=7.5625,t=2.75;return e<1/t?n*e*e:e<2/t?n*(e-=1.5/t)*e+.75:e<2.5/t?n*(e-=2.25/t)*e+.9375:n*(e-=2.625/t)*e+.984375},InOutBounce:function(e){return e<.5?(1-this.OutBounce(1-2*e))/2:(1+this.OutBounce(2*e-1))/2}},d.calc={seed:void 0,pi:3.1415927,luminance:function(e){return.21*e[0]+.72*e[1]+.07*e[2]},randomseed:function(e){void 0!==e?this.seed=e:void 0===this.seed&&(this.seed=d.randInt(1,Number.MAX_SAFE_INTEGER));var n=1e4*Math.sin(this.seed++);return n-Math.floor(n)},normalize1:function(e){return d.calc.normalize(e,0,1)},normalize255:function(e){return d.calc.normalize(e,0,255)},normalize:function(e,n,t){return e>t?t:e1&&(l=1),l}}},d.colormap={data:null,easing:null,reverse:!1,size:255,init:function(e,r,a){if(this.data=null,this.size=null==r?t:r,null==e||null==e)return e;var s;if("object"==n(e))if("object"==n(e[0]))for(var o in e)(s=e[o]).rgba=d.rgba(s.rgba),e[o]=s;else e=d.randItemSeed(e);if("random"===e&&(e=this.random()),"string"==typeof e&&("!"==e.charAt(0)&&(e=e.substring(1),this.reverse=!0),"function"==typeof i.colormaps[e])){var l=i.colormaps[e](r);this.data=this.render(l)}"object"==n(e)&&(this.data=this.render(e)),"function"==typeof a&&a(e)},random:function(e){e=e||d.randIntSeed(2,7);for(var n=[],t=0;t<=e;t++)n[t]={percent:parseInt(t/e*100),rgba:[d.randIntSeed(0,255),d.randIntSeed(0,255),d.randIntSeed(0,255),255]};return n},render:function(e){for(var n=[],t=0;t{e.exports=function(e){e.effect("test-pattern",{},(function(e,n){var t,r=e.texture.width,a=e.texture.height;return e.point.blend="opacity",e.texture.clear(),e.point.rgba=[255,255,155,255],e.shape.rect(e,1,1,r-2,a-2),t=20,e.point.rgba=[0,150,0,153],e.shape.rect(e,2,2,t,t),e.shape.rect(e,r-t-2,2,t,t),e.shape.rect(e,2,a-2-t,t,t),e.shape.rect(e,r-2-t,a-2-t,t,t),e.point.rgba=[20,20,10,51],e.shape.rect(e,r/2,a/2,178,178,!0),e.point.rgba=[10,20,210,178],e.shape.rect(e,r-5,a-5,10,10),t=20,e.point.rgba=[10,10,210,250],e.shape.line(e,t,t,r-t,a-t),e.shape.line(e,r-t,t,t,a-t),e.shape.line(e,0,a/2,r,a/2),e.shape.line(e,r/2,0,r/2,a),e.point.rgba=[255,55,55,128],e.shape.rect(e,10,10,r-20,a-20),e.point.rgba=[0,0,255,76],e.shape.rect(e,r-2,a-2,4,4),e.point.rgba=[255,255,255,255],e.point.set(0,0),e.point.set(r-1,0),e.point.set(0,a-1),e.point.set(r-1,a-1),e.point.rgba=[25,25,0,51],e.shape.circle(e,r/4,a/4,r/4,!0),e.point.rgba=[255,255,0,25],e.shape.circle(e,r,a,r,!0),e.shape.sphere(e,r/4,a-a/4,r/2,!0,[255,0,0,0],!0),e.shape.sphere(e,r/2,a-a/4,r/2,!0,[0,255,0,0],!0),e.shape.sphere(e,r-r/4,a-a/4,r/2,!0,[255,255,255,0],!0),e.shape.pyramid(e,r-r/4,a/4,r/2,a/2,!0,[0,0,0,255],!0),e.do("brightness",{adjust:50}),e.do("vibrance",{adjust:100}),e.do("contrast",{adjust:20}),n})),e.effect("test-all",{},(function(e,n){var t;e.normalize="limitless";var r=0,a=["test-all","test-pattern","copy","merge","mergeall"];for(var i in e.effects)t=e.effects[i],a.indexOf(t)<0&&(e.do(t),e.layers[r++]=e.texture.export());return n}))}}},n={};(function t(r){var a=n[r];if(void 0!==a)return a.exports;var i=n[r]={exports:{}};return e[r](i,i.exports,t),i.exports})(2265)})(); \ No newline at end of file +(()=>{var e={9377:e=>{e.exports=function(e){e.effect("checkerboard",{seed:null,blend:e.blendFlat(),rgba:"randomalpha",even:"random",size:[[2,32],[2,32]]},(function(e,n){n.even=e.randItemByArraySeed(n.even,[!0,!1]);var t,r,a,i,s,o,l=e.texture.width,d=e.texture.height;"number"==typeof n.size?t=r=n.size:(t=n.size[0]=e.randByArraySeed(n.size[0],null,!0),r=n.size[1]=e.randByArraySeed(n.size[1],null,!0));var c=Math.round(l/t),u=Math.round(d/r),h=function(n,t){for(a=0;a{e.exports=function(e){e.effect("circles",{seed:null,blend:e.blendFlat(),rgba:"randomalpha",origin:"random",count:[1,42],size:[[1,42],[1,42]]},(function(e,n){var t,r;for(n.size[0]=e.randByArraySeed(n.size[0],!1),n.size[1]=e.randByArraySeed(n.size[1],!1),t=0;t{e.exports=function(e){e.effect("clouds",{seed:null,blend:e.blendSafe(),rgba:"randomalpha",roughness:[1,32],colormap:null},(function(e,n){n.roughness=e.randByArraySeed(n.roughness);var t,r,a,i,s,o,l,d,c,u,h,p,f=e.texture.width,b=e.texture.height,y=[],m=function(e,n,t){return e=Math.round(e),n=Math.round(n),e<0&&(e=f+e),e>=f&&(e-=f),n<0&&(n=b+n),n>=b&&(n-=b),void 0!==t&&(y[e][n]=t),y[e][n]},g=function(t){return(e.randRealSeed(0,1)-.5)*(t/(f+f)*n.roughness)};for(function(){for(t=0;t<=f;t++)for(y[t]=[],r=0;r<=b;r++)y[t][r]=0}(),function s(y){var x=y/2;if(x<=1)return n;for(l=0;l<=f+x;l+=x)for(d=0;d<=b+x;d+=x)c=m(l-x,d-x),u=m(l,d-x),h=m(l-x,d),p=m(l,d),o=m(t=l-x/2,r=d-x/2,e.calc.normalize1((c+u+h+p)/4+g(y))),a=l-y+x/2,m(l-x,r,e.calc.normalize1((c+h+o+m(a,r))/4+g(y))),i=d-y+x/2,m(t,d-x,e.calc.normalize1((c+u+o+m(t,i))/4+g(y)));s(x)}(f),e.colormap.init(n.colormap,255,(function(e){n.colormap=e})),t=0;t{e.exports=function(e){e.effect("colorbar",{seed:null,blend:e.blendFlat(),type:"random",colormap:"random",mirror:!0},(function(e,n){n.type=e.randItemByArraySeed(n.type,["vertical","horizontal"]);var t,r,a,i=e.texture.width,s=e.texture.height,o="horizontal"==n.type?i:s;if(e.colormap.init(n.colormap,o,(function(e){n.colormap=e})),"horizontal"==n.type)for(t=0;t{e.exports=function(e){e.effect("crosshatch",{seed:null,blend:e.blendSafe(),rgba:"randomalpha",level:[1,100],xadjust:"random",yadjust:"random"},(function(e,n){var t,r,a;for(n.xadjust=e.randRealByArraySeed(n.xadjust,[.1,121]),n.yadjust=e.randRealByArraySeed(n.yadjust,[.1,121]),t=0;t{e.exports=function(e){e.effect("dots",{seed:null,blend:e.blendSafe(),gridX:[2,64],gridY:[2,64],size:[1,250],rgba:"randomalpha",shape:"sphere",dynamic:!0,xsines:[1,16],ysines:[1,16]},(function(e,n){n.gridX=e.randByArraySeed(n.gridX),n.gridY=e.randByArraySeed(n.gridY),n.xsines=e.randIntByArraySeed(n.xsines,[1,16]),n.ysines=e.randIntByArraySeed(n.ysines,[1,16]),n.shape=e.randItemByArraySeed(n.shape,["sphere","pyramid","rect","circle"]);var t,r,a,i,s=e.randByArraySeed(n.size)/100,o=e.texture.width,l=e.texture.height,d=o/n.gridX,c=l/n.gridY,u=d/2,h=c/2;for(t=1;t<=n.gridX;t++)for(r=1;r<=n.gridY;r++)switch(i=(a=s*(d+c)/2/2)-a/2*Math.sin(t/n.gridX*n.xsines*2*e.calc.pi)+a/2*Math.sin(r/n.gridY*n.ysines*2*e.calc.pi),n.shape){case"sphere":e.shape.sphere(e,t*d-u,r*c-h,2*i,!0,n.rgba,n.dynamic);break;case"pyramid":e.shape.pyramid(e,t*d-u,r*c-h,i,i,!0,n.rgba,n.dynamic);break;case"rect":e.shape.rect(e,t*d-u,r*c-h,i,i,!0,n.rgba,n.dynamic);break;default:i/=2,e.shape.circle(e,t*d-u,r*c-h,i,!0)}return n}))}},2855:e=>{e.exports=function(e){e.effect("fill",{seed:null,blend:"opacity",rgba:"randomalpha"},(function(e,n){return e.shape.rect(e,1,1,e.texture.width,e.texture.height),n}))}},743:e=>{e.exports=function(e){e.effect("mandelbrot",{seed:null,blend:"opacity",rgba:"randomalpha",iteration:[8,512],skip:[0,8]},(function(e,n){n.skip=e.randByArraySeed(n.skip),n.iteration=e.randByArraySeed(n.iteration);var t,r,a,i=e.texture.width,s=e.texture.height,o=n.rgba[0],l=n.rgba[1],d=n.rgba[2],c=256/o,u=256/l,h=256/d,p=n.iteration,f=0,b=0,y=0,m=0,g=0,x=0;for(t=0;t4);a++)m=2*y*m+b,y=g-x+f;a>n.skip&&(e.point.rgba=[a%o*c,a%l*u,a%d*h,e.point.rgba[3]],e.point.set(r,t))}return n}))}},5265:(e,n,t)=>{e.exports=function(e){t(9377)(e),t(5405)(e),t(2261)(e),t(4283)(e),t(7891)(e),t(8988)(e),t(2855)(e),t(743)(e),t(1800)(e),t(4191)(e),t(8375)(e),t(8806)(e),t(9240)(e),t(7301)(e),t(6191)(e),t(2163)(e),t(6444)(e),t(5800)(e)}},1800:e=>{e.exports=function(e){e.effect("lines",{seed:null,blend:e.blendFlat(),rgba:"randomalpha",size:[77,221],count:[21,512],freq1s:[4,221],freq1c:[4,221],freq2s:[4,221],freq2c:[4,221]},(function(e,n){var t,r,a,i,s;for(n.freq1s=e.randByArraySeed(n.freq1s,!0),n.freq1c=e.randByArraySeed(n.freq1c,!0),n.freq2s=e.randByArraySeed(n.freq2s,!0),n.freq2c=e.randByArraySeed(n.freq2c,!0),n.size=e.randByArraySeed(n.size),t=0;t{e.exports=function(e){e.effect("lines2",{seed:null,blend:e.blendFlat(),rgba:"randomalpha",type:"random",size:[.1,21],count:[1,42]},(function(e,n){var t,r,a;for(n.type=e.randItemByArraySeed(n.type,["vertical","horizontal"]),a=0;a{e.exports=function(e){e.effect("lines3",{seed:null,type:null,blend:"opacity",colormap:"random",fadeinout:1,step:[1,2,4,8,16,32,64],size:[7,210],waves:[1,21],amplitude:[0,42],weight:[1,32]},(function(e,n){var t,r,a,i,s,o;if(n.type=e.randItemByArraySeed(n.type,["vertical","horizontal"]),n.fadeinout=e.randIntByArraySeed(null,n.fadeinout),n.size=e.randByArraySeed(n.size),n.amplitude=e.randByArraySeed(n.amplitude),n.waves=e.randIntByArraySeed(n.waves),n.step=e.randItemByArraySeed(null,n.step),n.weight=e.randIntByArraySeed(n.weight),e.colormap.init(n.colormap,n.size,(function(e){n.colormap=e})),"horizontal"===n.type)for(r=0;r{e.exports=function(e){e.effect("noise",{seed:null,mode:null,blend:"lighten",channels:[255,255,255],opacity:128},(function(e,n){var t,r,a,i;switch(n.mode||(n.mode=e.randItemSeed(["monochrome","color"])),n.mode){case"color":e.walk((function(i){return t=n.channels[0]?e.randIntSeed(0,n.channels[0]):0,r=n.channels[1]?e.randIntSeed(0,n.channels[1]):0,a=n.channels[2]?e.randIntSeed(0,n.channels[2]):0,[t,r,a,n.opacity]}));break;case"monochrome":e.walk((function(t){return[i=e.randIntSeed(0,255),i,i,n.opacity]}));break;case"colorize":e.walk((function(t){return i=e.randIntSeed(0,255),e.point.colorize([i,i,i,n.opacity],n.rgba)}))}return n}))}},9240:e=>{e.exports=function(e){e.effect("pyramids",{seed:null,blend:e.blendSafe(),rgba:"randomalpha",origin:"random",dynamic:"random",count:[1,77],size:[[1,92],[1,92]]},(function(e,n){var t,r;for(n.dynamic=e.randItemByArraySeed(n.dynamic,[!0,!1]),n.size[0]=e.randByArraySeed(n.size[0],!1),n.size[1]=e.randByArraySeed(n.size[1],!1),t=0;t{e.exports=function(e){e.effect("spheres",{seed:null,blend:e.blendFlat(),rgba:"randomalpha",origin:"random",dynamic:!0,count:[1,77],size:[[1,92],[1,92]]},(function(e,n){var t,r;for(n.dynamic=e.randItemByArraySeed(n.dynamic,[!0,!1]),n.size[0]=e.randByArraySeed(n.size[0],!1),n.size[1]=e.randByArraySeed(n.size[1],!1),t=0;t{e.exports=function(e){e.effect("squares",{seed:null,blend:e.blendFlat(),rgba:"randomalpha",origin:"random",count:[1,42],size:[[1,77],[1,77]]},(function(e,n){var t,r;for(n.size[0]=e.randByArraySeed(n.size[0],!1),n.size[1]=e.randByArraySeed(n.size[1],!1),t=0;t{e.exports=function(e){var n={seed:null,blend:e.blendFlat(),rgba:"randomalpha",colorize:null,size:[1,7],opacity:1};e.effect("subplasma",n,(function(e,n){var t,r,a,i,s,o,l=[],d=e.texture.width,c=d,u=1<d&&(u=d),o=d/u,r=0;r{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}e.exports=function(e){e.effect("waves",{seed:null,blend:e.blendSafe(),rgba:"randomalpha",level:[1,100],xsines:[1,14],ysines:[1,14]},(function(e,t){var r,a,i;for(t.xsines=e.randIntByArraySeed(t.xsines,[1,16]),t.ysines=e.randIntByArraySeed(t.ysines,[1,16]),r=0;r{e.exports=function(e){e.effect("xor",{seed:null,blend:"random",rgba:"randomalpha",level:[1,100],zoom:[.1,77]},(function(e,n){var t,r,a,i=e.texture.width,s=e.texture.height;for(n.zoom=e.randIntByArraySeed(n.zoom,[1,10]),t=0;t{e.exports=function(e){e.filter("backlight",{seed:null,channels:[[0,1],[0,1],[0,1],0]},(function(e,n){return n.channels[0]=e.randByArraySeed(n.channels[0]),n.channels[1]=e.randByArraySeed(n.channels[1]),n.channels[2]=e.randByArraySeed(n.channels[2]),n.channels[3]=e.randByArraySeed(n.channels[3]),e.walk((function(e){return[n.channels[0]?255/e[0]*(255/e[0]):e[0],n.channels[1]?255/e[1]*(255/e[1]):e[1],n.channels[2]?255/e[2]*(255/e[2]):e[2],n.channels[3]?255/e[3]*(255/e[3]):e[3]]})),n}))}},6213:e=>{e.exports=function(e){e.filter("blur",{},(function(e,n){return e.do("convolute",{store:!1,transparent:!1,weights:[1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9]}),n}))}},3127:e=>{e.exports=function(e){e.filter("brightness",{seed:null,legacy:!0,adjust:[64,192]},(function(e,n){return n.adjust=e.randByArraySeed(n.adjust),!0===n.legacy?e.walk((function(e){return[Math.min(e[0]+n.adjust,255),Math.min(e[1]+n.adjust,255),Math.min(e[2]+n.adjust,255),e[3]]})):e.walk((function(e){return[e[0]=Math.min(255/e[0]*(n.adjust/255),255),e[1]=Math.min(255/e[1]*(n.adjust/255),255),e[2]=Math.min(255/e[2]*(n.adjust/255),255),e[3]]})),n}))}},6590:e=>{e.exports=function(e){e.filter("channel",{channels:[[.2,.8],[.4,1],[.8,1.2]]},(function(e,n){return n.channels[0]=e.randByArraySeed(n.channels[0],!0),n.channels[1]=e.randByArraySeed(n.channels[1],!0),n.channels[2]=e.randByArraySeed(n.channels[2],!0),e.walk((function(e){return[e[0]*n.channels[0],e[1]*n.channels[1],e[2]*n.channels[2],e[3]]})),n}))}},5891:e=>{e.exports=function(e){e.filter("colorize",{seed:null,level:[32,192],rgba:"random",colormap:null},(function(e,n){return n.level=e.randByArraySeed(n.level),e.colormap.init(n.colormap,255,(function(e){n.colormap=e})),e.walk((function(t){var r,a;return e.colormap.data?(r=(t[0]+t[1]+t[2])/3,(a=e.colormap.get(r,n.rgba))[3]=t[3],a):e.point.colorize(t,n.rgba,n.level)})),n}))}},5093:e=>{e.exports=function(e){e.filter("contrast",{seed:null,adjust:[64,192]},(function(e,n){n.adjust=e.randByArraySeed(n.adjust);var t=(100+n.adjust)/100;return e.walk((function(e){return e[0]=255*((e[0]/255-.5)*t+.5),e[1]=255*((e[1]/255-.5)*t+.5),e[2]=255*((e[2]/255-.5)*t+.5),[Math.max(Math.min(e[0],255),0),Math.max(Math.min(e[1],255),0),Math.max(Math.min(e[2],255),0),e[3]]})),n}))}},2307:e=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}e.exports=function(e){e.filter("convolute",{blend:"opacity",transparent:!1,weights:"default1"},(function(e,t){if("object"!=n(t.weights)&&"string"!=typeof t.weights||null==t.weights)return t;if("string"==typeof t.weights[0]&&(t.weights=e.randByArraySeed(t.weights)),"string"==typeof t.weights)if("random"===t.weights){var r=-32,a=32;t.weights=[e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a)],e.log(t.weights.join(", "))}else{var i={edgedetect1:[-1,-1,-1,-1,8,-1,-1,-1,-1],edgedetect2:[0,1,0,1,-4,1,0,1,0],edgedetect3:[1,0,-1,0,0,0,-1,0,1],sharpen1:[0,-1,0,-1,5,-1,0,-1,0],sharpen2:[-1,-1,-1,-1,9,-1,-1,-1,-1],emboss1:[1,1,1,1,.7,-1,-1,-1,-1],emboss2:[-2,-1,0,-1,1,1,0,1,2],emboss3:[10,3,-2,-8,-5,7,-3,-12,11],emboss4:[-6,11,-9,-9,0,-4,12,8,-2],sobel1:[-1,-2,-1,0,0,0,1,2,1],sobel2:[-1,0,1,-2,0,2,-1,0,1],sobel3:[-5,-8,12,-4,-8,-12,9,6,9],default1:[1,-11,-7,5,2,4,4,9,-2],default2:[-5,-21,25,22,31,-16,-2,-21,-10],default3:[1,1,1,1,1,1,1,1,1]};if(null==i[t.weights])return t;t.weights=i[t.weights]}var s,o,l,d,c,u,h,p,f,b,y,m,g=Math.round(Math.sqrt(t.weights.length)),x=Math.floor(g/2),v=t.transparent?1:0,w=new e.buffer;w.clear();var z=e.texture.size();for(o=0;o{e.exports=function(e){e.filter("edgedetect",{seed:null,type:[1,3]},(function(e,n){return n.type=e.randByArraySeed(n.type),e.do("convolute",{store:!1,transparent:!1,weights:"edgedetect"+n.type}),n}))}},4402:e=>{e.exports=function(e){e.filter("emboss",{seed:null,type:[1,4]},(function(e,n){return n.type=e.randByArraySeed(n.type),e.do("convolute",{store:!1,transparent:!1,weights:"emboss"+n.type}),n}))}},4998:e=>{e.exports=function(e){e.filter("gamma",{seed:null,adjust:[.1,2]},(function(e,n){return n.adjust=e.randByArraySeed(n.adjust,!0),e.walk((function(e){return e[0]=255*Math.pow(e[0]/255,1/n.adjust),e[1]=255*Math.pow(e[1]/255,1/n.adjust),e[2]=255*Math.pow(e[2]/255,1/n.adjust),[e[0],e[1],e[2],e[3]]})),n}))}},6966:e=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}e.exports=function(e){e.filter("grayscale",{seed:null,method:["ligthness","average","luminosity"]},(function(e,t){switch("string"==typeof t&&(t={method:t}),"object"==n(t.method)&&(t.method=e.randItemSeed(t.method)),t.method){case"ligthness":e.walk((function(e){var n=Math.max(e[0],e[1],e[2])+Math.min(e[0],e[1],e[2]);return[n,n,n,e[3]]}));break;case"average":e.walk((function(e){var n=(e[0]+e[1]+e[2])/3;return[n,n,n,e[3]]}));break;case"luminosity":e.walk((function(n){var t=e.calc.luminance(n);return[t,t,t,n[3]]}))}return t}))}},490:(e,n,t)=>{e.exports=function(e){t(9598)(e),t(6213)(e),t(3127)(e),t(6590)(e),t(5891)(e),t(5093)(e),t(2307)(e),t(3458)(e),t(4402)(e),t(4998)(e),t(6966)(e),t(1537)(e),t(173)(e),t(9706)(e),t(7113)(e),t(7772)(e),t(5710)(e),t(4977)(e)}},1537:e=>{e.exports=function(e){e.filter("invert",{seed:null,channels:[[0,1],[0,1],[0,1],0]},(function(e,n){return n.channels[0]=e.randByArraySeed(n.channels[0]),n.channels[1]=e.randByArraySeed(n.channels[1]),n.channels[2]=e.randByArraySeed(n.channels[2]),e.walk((function(e){return[n.channels[0]?255-e[0]:e[0],n.channels[1]?255-e[1]:e[1],n.channels[2]?255-e[2]:e[2],n.channels[3]?255-e[3]:e[3]]})),n}))}},173:e=>{e.exports=function(e){e.filter("opacity",{seed:null,adjust:[32,192]},(function(e,n){return n.adjust=e.randByArraySeed(n.adjust),e.walk((function(e){return e[3]=n.adjust,e})),n}))}},9706:e=>{e.exports=function(e){e.filter("sharpen",{seed:null,type:[1,2]},(function(e,n){return n.type=e.randByArraySeed(n.type),e.do("convolute",{store:!1,transparent:!1,weights:"sharpen"+n.type}),n}))}},7113:e=>{e.exports=function(e){e.filter("sinecolor",{seed:null,sines:[1,10],channel:[0,2]},(function(e,n){return n.sines=e.randByArraySeed(n.sines),n.channel=e.randByArraySeed(n.channel),e.walk((function(t){var r=parseInt(255*Math.sin(t[n.channel]*(e.calc.pi/180)*(255/360)*n.sines));return t[n.channel]=Math.abs(r),t})),n}))}},7772:e=>{e.exports=function(e){e.filter("sobel",{seed:null,type:[1,3]},(function(e,n){return n.type=e.randByArraySeed(n.type),e.do("convolute",{store:!1,transparent:!1,weights:"sobel"+n.type}),n}))}},5710:e=>{e.exports=function(e){e.filter("threshold",{seed:null,adjust:[64,128]},(function(e,n){return n.adjust=e.randByArraySeed(n.adjust),e.walk((function(e){var t=.2126*e[0]+.7152*e[1]+.0722*e[2]<=n.adjust?0:255;return[t,t,t,e[3]]})),n}))}},4977:e=>{e.exports=function(e){e.filter("vibrance",{seed:null,adjust:[64,192]},(function(e,n){n.adjust=e.randByArraySeed(n.adjust);var t=-1*n.adjust;return e.walk((function(e){var n=(e[0]+e[1]+e[2])/3,r=Math.max(e[0],e[1],e[2]),a=2*Math.abs(r-n)/255*t/100;return e[0]!==r&&(e[0]+=(r-e[0])*a),e[1]!==r&&(e[1]+=(r-e[1])*a),e[2]!==r&&(e[2]+=(r-e[2])*a),[e[0],e[1],e[2],e[3]]})),n}))}},2582:e=>{e.exports=function(e){e.function("copy",{layer:null},(function(e,n){return"number"==typeof n&&(n={layer:n}),null===n.layer&&(n.layer=e.layers.length-1),null!=e.layers[n.layer]&&(e.texture.data=e.layerCopy(n.layer)),n}))}},40:e=>{e.exports=function(e){e.function("equirectangular",{layer:null},(function(e,n){null===n.layer&&(n.layer=e.layers.length-1);var t,r,a,i,s,o,l,d,c,u,h,p=new e.buffer,f=e.texture.width,b=e.texture.height,y=Math.PI,m=b/2,g=f/2,x=b/2,v=e.texture.size();for(t=0;t{e.exports=function(e){t(2582)(e),t(40)(e),t(5551)(e),t(9174)(e),t(4013)(e),t(9451)(e),t(1234)(e)}},5551:e=>{e.exports=function(e){e.function("map",{seed:null,xamount:[4,512],yamount:[4,512],xchannel:[0,2],ychannel:[0,2],xlayer:0,ylayer:0},(function(e,n){n.xamount=e.randByArraySeed(n.xamount),n.yamount=e.randByArraySeed(n.yamount),n.xchannel=e.randByArraySeed(n.xchannel),n.ychannel=e.randByArraySeed(n.ychannel),n.xlayer=e.randByArraySeed(n.xlayer),n.ylayer=e.randByArraySeed(n.ylayer);var t,r,a,i,s,o,l,d,c=new e.buffer,u=e.texture.width,h=e.texture.height,p=e.texture.size(),f=e.layers[n.xlayer],b=e.layers[n.ylayer];if(f&&f[0]){for(t=0;t>16)):t+l*n.xamount*u/(u*u),i=h%16==0?e.wrapy(r+(d*n.yamount*h>>16)):r+d*n.yamount*h/(h*h),s=e.point.get(a,i),c.data[o]=s[0],c.data[o+1]=s[1],c.data[o+2]=s[2],c.data[o+3]=s[3];for(;p--;)e.texture.data[p]=c.data[p];return n}}))}},9174:e=>{e.exports=function(e){e.function("merge",{blend:"opacity",opacity:null,layer:0},(function(e,n){if(void 0===e.layers[n.layer])return n;var t,r,a,i=e.layers[n.layer];for(r=0;r{e.exports=function(e){e.function("mergeall",{blend:"opacity",firstcopy:!0,opacity:null},(function(e,n){for(var t=e.layers.length,r=0;r<=t;r++)0===r&&!0===n.firstcopy?e.do("copy",{layer:0}):e.do("merge",{blend:n.blend,layer:r,opacity:n.opacity});return n}))}},1234:e=>{e.exports=function(e){e.function("rot90",{seed:null,times:[1,3],blend:e.blendSafe()},(function(n,t){return t.type=1,t.angle=90,e.effects.rotate(n,t),t}))}},9451:e=>{e.exports=function(e){e.function("rotate",{seed:null,angle:90,times:[1,3],type:1,blend:e.blendSafe()},(function(e,n){n.type=e.randByArraySeed(n.type),null===n.angle?n.angle=e.randItemByArraySeed(n.angle,[90,180,270]):n.angle=e.randByArraySeed(n.angle),n.times=e.randByArraySeed(n.times);var t,r,a,i,s,o,l,d,c,u=new e.buffer,h=e.texture.width,p=e.texture.height,f=n.angle*(Math.PI/180),b=e.texture.size(),y=function(){for(r=0;r{e.exports=function(e){e.preset("backlights",{width:256,height:256,items:[[0,"spheres",{count:[7,42],size:[14,77],blend:"opacity",rgba:[[94,240],[94,240],[94,240],1]}],[1,"spheres",{count:[7,42],size:[14,77],blend:"opacity",rgba:[[94,240],[94,240],[94,240],1]}],[2,"copy",0],[2,"merge",{layer:1,blend:"backlight"}]]})}},5706:e=>{e.exports=function(e){e.preset("bubbles",{width:256,height:256,items:[[0,"circles",{blend:"opacity",rgba:[[32,255],[32,255],[32,255],[32,200]],count:[32,48],size:[1,5]}],[0,"circles",{blend:"opacity",rgba:[[32,255],[32,255],[32,255],[32,200]],count:[15,20],size:[10,15]}],[0,"circles",{blend:"opacity",rgba:[[32,255],[32,255],[32,255],[32,200]],count:[2,3],size:[20,25]}],[0,"spheres",{blend:"softlight",dynamic:!0}],[0,"circles",{blend:"softlight",opacity:128}],[0,"noise",{blend:"softlight",opacity:32}]]})}},9815:e=>{e.exports=function(e){e.preset("cells",{width:256,height:256,items:[[0,"spheres",{blend:"lighten",count:21,rgba:[255,255,255,1]}],[0,"invert"],[1,"spheres",{blend:"lighten",count:21,rgba:[155,155,155,1]}],[1,"invert"],[1,"merge",{layer:0,blend:["overlay","lighten","difference"]}],[1,"colorize"],[1,"brightness",{adjust:-10,legacy:!0}],[1,"vibrance",{adjust:50}],[1,"contrast",{adjust:50}]]})}},7323:e=>{e.exports=function(e){e.preset("checkerboards-multiply",{width:256,height:256,items:[[0,"checkerboard",{size:[[16,21],[16,21]],rgba:"randomalpha",blend:""}],[0,"checkerboard",{size:[[5,16],[5,16]],rgba:"randomalpha",blend:"multiply"}],[0,"checkerboard",{size:[[2,4],[2,4]],rgba:"randomalpha",blend:"multiply"}],[0,"sharpen",{type:2}],[0,"spheres",{blend:"multiply",dynamic:!0,opacity:255}]]})}},3108:e=>{e.exports=function(e){e.preset("checkerboards",{width:256,height:256,items:[[0,"checkerboard",{size:32,rgba:"randomalpha",blend:""}],[0,"checkerboard",{size:16,rgba:"randomalpha",blend:"opacity"}],[0,"checkerboard",{size:8,rgba:"randomalpha",blend:"opacity"}],[0,"checkerboard",{size:4,rgba:"randomalpha",blend:"opacity"}],[0,"checkerboard",{size:2,rgba:"randomalpha",blend:"opacity"}],[0,"sharpen",{type:2}],[0,"spheres",{blend:"random",dynamic:!0}]]})}},8413:e=>{e.exports=function(e){e.preset("checkerboards2",{width:256,height:256,items:[[0,"checkerboard",{size:[[17,32],[17,32]],rgba:"randomalpha",blend:""}],[0,"checkerboard",{size:[[9,16],[9,16]],rgba:"randomalpha",blend:"random"}],[0,"checkerboard",{size:[[5,8],[5,8]],rgba:"randomalpha",blend:"random"}],[0,"checkerboard",{size:[[2,4],[2,4]],rgba:"randomalpha",blend:"random"}],[0,"sharpen",{type:2}],[0,"spheres",{blend:"random",dynamic:!0,opacity:255}]]})}},2511:e=>{e.exports=function(e){e.preset("circles",{width:64,height:64,items:[[0,"circles",{count:7,origin:[50,50],size:[2,100],rgba:[[1,255],[1,255],[1,255],[.05,.15]]}],[0,"circles",{blend:["opacity","lighten","darken","softlight","multiply","screen","exclusion"],count:7,origin:[50,50],size:[2,50],rgba:[[1,255],[1,255],[1,255],[.05,.15]]}],[0,"brightness",{adjust:-10,legacy:!0}],[0,"vibrance",{adjust:50}],[1,"copy",0],[1,"contrast",{adjust:50}]]})}},1460:e=>{e.exports=function(e){e.preset("clouds-color",{width:512,height:512,items:[[0,"fill"],[0,"clouds",{blend:"difference"}],[0,"clouds",{blend:"difference"}],[0,"clouds",{blend:["exclusion","lighten","darken","overlay","screen","linearlight","lineardodge"]}],[0,"spheres",{blend:"softlight",rgba:"random",count:[7,21],size:[20,70],dynamic:!0}],[0,"vibrance",{adjust:20}],[0,"contrast",{adjust:20}]]})}},1942:e=>{e.exports=function(e){e.preset("clouds-colormap",{width:512,height:512,items:[[0,"fill"],[0,"clouds",{blend:"difference"}],[1,"copy",0],[1,"clouds",{blend:"difference"}],[2,"copy",1],[2,"clouds",{blend:["exclusion","lighten","darken","overlay","screen","linearlight","lineardodge"]}],[3,"copy",2],[3,"spheres",{blend:"softlight",rgba:"random",count:[7,21],size:[20,70],dynamic:!0}],[3,"map",{xamount:[14,121],yamount:[14,121],xchannel:[0,3],ychannel:[0,3],xlayer:[0,3],ylayer:[0,3]}],[3,"vibrance",{adjust:20}],[3,"contrast",{adjust:20}]]})}},9432:e=>{e.exports=function(e){e.preset("clouds-emboss",{width:512,height:512,items:[[0,"clouds"],[0,"clouds",{blend:"difference"}],[0,"emboss"]]})}},2176:e=>{e.exports=function(e){e.preset("clouds",{width:512,height:512,items:[[0,"fill",{rgba:[0,[50,150],[200,255],1]}],[0,"clouds",{blend:"screen",rgba:[255,255,255,1],roughness:[2,5]}],[0,"clouds",{blend:"overlay",rgba:[[0,20],[0,150],[200,255],1],roughness:[2,4]}]]})}},7844:e=>{e.exports=function(e){e.preset("craters",{width:256,height:256,items:[[0,"fill",{rgba:[[144,255],[144,255],[144,255],[.8,1]]}],[0,"spheres",{blend:["overlay","linearlight","multiply","difference","softlight","darken","opacity","lineardodge"],dynamic:!0}],[0,"spheres",{blend:["overlay","linearlight","multiply","difference","softlight","darken","opacity","lineardodge"],dynamic:!0}],[0,"map",{xamount:[1,77],yamount:[1,77],xchannel:[0,3],ychannel:[0,3],xlayer:0,ylayer:0}],[0,"brightness",{adjust:10}],[0,"contrast",{adjust:20}]]})}},7817:e=>{e.exports=function(e){e.preset("crosshatch",{width:256,height:256,items:[[0,"crosshatch"],[0,"waves",{blend:"random"}],[0,"brightness",{adjust:20,legacy:!0}],[0,"contrast",{adjust:10}],[0,"vibrance",{adjust:100}]]})}},1351:e=>{e.exports=function(e){e.preset("dots",{width:256,height:256,items:[[0,"dots",{blend:["opacity","lighten"],shape:"sphere",size:[200,400],gridX:[4,12],gridY:[4,12],xsines:[4,12],ysines:[4,12]}],[0,"dots",{blend:"random",shape:"sphere",size:[50,200],gridX:[4,12],gridY:[4,12],xsines:[4,12],ysines:[4,12]}],[0,"sharpen"]]})}},6961:e=>{e.exports=function(e){e.preset("dunes-blue",{width:256,height:256,items:[[0,"pyramids",{blend:"lighten",rgba:[[0,10],[20,80],[150,255],[.7,1]]}],[0,"pyramids",{blend:"lineardodge",dynamic:!0,rgba:[170,170,170,[.7,1]]}],[0,"waves",{blend:"softlight"}],[0,"waves",{blend:"softlight"}],[0,"map",{xamount:[10,144],yamount:[10,144],xchannel:[0,3],ychannel:[0,3],xlayer:0,ylayer:0}],[0,"brightness",{adjust:20}],[0,"contrast",{adjust:30}]]})}},4214:e=>{e.exports=function(e){e.preset("dunes-magic",{width:256,height:256,items:[[0,"spheres",{blend:"lighten"}],[0,"spheres",{blend:["softlight","lighten","lineardodge"],dynamic:!0}],[0,"waves",{blend:"softlight"}],[0,"waves",{blend:"softlight"}],[0,"map",{xamount:[1,144],yamount:[1,144],xchannel:[0,3],ychannel:[0,3],xlayer:0,ylayer:0}]]})}},6776:e=>{e.exports=function(e){e.preset("fire",{width:256,height:256,items:[[0,"subplasma",{size:[2,4]}],[0,"subplasma",{blend:"difference",size:[1,4]}],[0,"subplasma",{blend:"difference",size:[1,4]}],[0,"subplasma",{blend:"difference",size:[1,4]}],[0,"subplasma",{blend:"difference",size:[1,4]}],[0,"spheres",{blend:["difference"],size:[25,77],count:10,dynamic:!0}],[0,"colorize",{colormap:"!fire"}],[0,"contrast",{value:42}]]})}},9116:e=>{e.exports=function(e){e.preset("gradients",{width:512,height:512,items:[[0,"colorbar",{mirror:!0,colormap:["fire","ice","dusk","seashore","random"]}],[1,"colorbar",{mirror:!0,type:"vertical",colormap:[{percent:0,rgba:[[0,255],[0,255],[0,255],1]},{percent:50,rgba:[[0,255],[0,255],[0,255],1]},{percent:100,rgba:[[0,255],[0,255],[0,255],1]}]}],[2,"copy"],[2,"merge",{layer:0,blend:["multiply","lighten","exclusion","screen","lineardodge"]}]]})}},8818:(e,n,t)=>{e.exports=function(e){t(9674)(e),t(5706)(e),t(9815)(e),t(3108)(e),t(8413)(e),t(7323)(e),t(2511)(e),t(2176)(e),t(1460)(e),t(1942)(e),t(9432)(e),t(7844)(e),t(7817)(e),t(1351)(e),t(6961)(e),t(4214)(e),t(6776)(e),t(9116)(e),t(8255)(e),t(2232)(e),t(8800)(e),t(78)(e),t(3809)(e),t(180)(e),t(6676)(e),t(5752)(e),t(9502)(e),t(7986)(e),t(1220)(e),t(1591)(e),t(5494)(e),t(1416)(e),t(7696)(e),t(2643)(e),t(8663)(e),t(3219)(e),t(2200)(e),t(309)(e),t(5314)(e),t(5039)(e),t(3162)(e),t(5765)(e),t(1209)(e),t(1823)(e),t(2655)(e),t(29)(e),t(325)(e),t(946)(e),t(2408)(e),t(5523)(e),t(7711)(e),t(5172)(e),t(6922)(e),t(8098)(e),t(3107)(e),t(9771)(e),t(7943)(e),t(9039)(e),t(4293)(e),t(5374)(e),t(5949)(e),t(4042)(e),t(8331)(e),t(3584)(e)}},8255:e=>{e.exports=function(e){e.preset("lines",{width:256,height:256,items:[[0,"lines",{size:[110,210],count:[100,440],freq1s:[21,150],freq1c:[21,150],freq2s:[21,150],freq2c:[21,150],rgba:[[1,255],[1,255],[1,255],[.3,.5]]}]]})}},2232:e=>{e.exports=function(e){e.preset("lines2",{width:256,height:256,items:[[0,"lines2"],[0,"lines2"],[0,"lines2"]]})}},8800:e=>{e.exports=function(e){e.preset("lines3",{width:512,height:512,items:[[0,"lines3",{type:"horizontal",weight:[1,2],step:[2,4,8,16,32,64]}],[0,"lines3",{type:"horizontal",weight:[2,4],step:[4,8,16,32,64]}],[0,"lines3",{type:"horizontal",weight:[4,8],step:[4,8,16,32,64]}]]})}},78:e=>{e.exports=function(e){e.preset("map2",{width:256,height:256,items:[[0,"waves",{blend:"",channels:[1,1,1,1]}],[1,"spheres",{blend:["lineardodge","lighten"]}],[2,"copy",1],[2,"map",{xamount:[2,255],yamount:[2,255],xchannel:[0,3],ychannel:[0,3],xlayer:[0,1],ylayer:[0,1]}]]})}},3809:e=>{e.exports=function(e){e.preset("merge-map",{width:256,height:256,items:[[0,"pyramids",{blend:"difference",count:[14,44]}],[0,"pyramids",{blend:"lineardodge",count:[7,14]}],[0,"brightness",{adjust:20}],[0,"contrast",{adjust:20}],[1,"spheres",{dynamic:!0,blend:"lineardodge",count:[14,21]}],[2,"copy",0],[2,"merge",{layer:1,blend:"lineardodge"}],[2,"map",{xamount:[44,77],yamount:[77,121],xchannel:[0,3],ychannel:[0,3],xlayer:1,ylayer:1}]]})}},180:e=>{e.exports=function(e){e.preset("mergetest",{width:256,height:256,items:[[0,"waves",{blend:""}],[1,"pyramids",{blend:["lighten","difference","screen"],dynamic:!0}],[2,"spheres",{blend:["lighten","difference","screen"]}],[3,"merge",{layer:0}],[3,"merge",{layer:1,blend:"overlay"}],[4,"copy",3],[4,"merge",{layer:2,blend:"difference"}],[4,"brightness",{adjust:10,legacy:!0}],[4,"vibrance",{adjust:10}],[4,"contrast",{adjust:20}]]})}},6676:e=>{e.exports=function(e){e.preset("plasma-diffs",{width:256,height:256,items:[[0,"subplasma",{size:[1,4]}],[0,"subplasma",{blend:"difference",size:[1,4]}],[0,"subplasma",{blend:"difference",size:[1,4]}],[0,"subplasma",{blend:"difference",size:[1,4]}],[0,"subplasma",{blend:"difference",size:[1,4]}]]})}},5752:e=>{e.exports=function(e){e.preset("plasma-mergemap",{width:256,height:256,items:[[0,"subplasma",{size:[2,4]}],[0,"subplasma",{blend:"darken",size:[2,4]}],[0,"subplasma",{blend:"difference",size:[2,4]}],[0,"subplasma",{blend:"linearlight",size:[2,4]}],[0,"map",{xamount:[21,77],yamount:[21,77],xchannel:[0,3],ychannel:[0,3],xlayer:0,ylayer:0}]]})}},9502:e=>{e.exports=function(e){e.preset("plasma-shadows",{width:256,height:256,items:[[0,"subplasma",{size:[3,5]}],[0,"subplasma",{blend:"difference",size:[3,5]}],[0,"subplasma",{blend:"difference",size:[3,5]}],[0,"subplasma",{blend:"difference",size:[3,5]}],[0,"subplasma",{blend:"difference",size:[3,5]}],[0,"spheres",{blend:"multiply",dynamic:!0}],[0,"brightness",{adjust:40}],[0,"contrast",{adjust:40}],[0,"vibrance",{adjust:20}]]})}},1220:e=>{e.exports=function(e){e.preset("pyramids-map",{width:256,height:256,items:[[0,"pyramids",{blend:"difference",count:[7,21]}],[0,"pyramids",{blend:"lineardodge",count:[4,7]}],[0,"brightness",{adjust:20}],[0,"contrast",{adjust:20}],[1,"copy",0],[1,"map",{xamount:[44,77],yamount:[77,121],xchannel:[0,3],ychannel:[0,3],xlayer:[0,1],ylayer:[0,1]}]]})}},7986:e=>{e.exports=function(e){e.preset("pyramids",{width:256,height:256,items:[[0,"pyramids",{blend:["difference","lighten"]}],[1,"pyramids",{blend:["difference","lighten"]}],[2,"copy",0],[2,"merge",{layer:1,blend:["exclusion","difference","lighten","lineardodge","screen","darken"]}],[2,"brightness",{adjust:80}],[2,"contrast",{adjust:140}],[2,"vibrance",{adjust:70}]]})}},1591:e=>{e.exports=function(e){e.preset("rrrr",{width:256,height:256,normalize:"compress",items:[[0,["spheres","pyramids","waves","subplasma","dots","clouds","noise","lines2","colorbar","checkerboard","lines","squares","circles","crosshatch","xor"],{blend:["lighten","opacity","screen"],rgba:[[0,255],[0,255],[0,255],[.2,.9]],dynamic:"random"}],[1,"copy",0],[1,["spheres","pyramids","waves","subplasma","dots","clouds","noise","lines2","colorbar","checkerboard","lines","squares","circles","crosshatch","xor"],{blend:"random",rgba:[[0,255],[0,255],[0,255],[.1,.9]],dynamic:"random"}],[2,"copy",1],[2,["spheres","pyramids","waves","subplasma","dots","clouds","noise","lines2","colorbar","checkerboard","lines","squares","circles","crosshatch","xor"],{blend:"random",rgba:[[0,255],[0,255],[0,255],[.1,.9]],dynamic:"random"}],[3,"copy",2],[3,"map",{xamount:[2,177],yamount:[2,177],xchannel:[0,2],ychannel:[0,2],xlayer:[0,2],ylayer:[0,2]}]]})}},5494:e=>{e.exports=function(e){e.preset("rrrr2",{width:256,height:256,normalize:"compress",items:[[0,["spheres","pyramids","waves","subplasma","dots","clouds","noise","lines2","colorbar","checkerboard","lines","squares","circles","crosshatch"],{rgba:[[32,255],[32,255],[32,255],[.5,.9]],dynamic:"random"}],[0,["spheres","pyramids","waves","subplasma","dots","clouds","noise","lines2","colorbar","checkerboard","lines","squares","circles","crosshatch"],{blend:"random",rgba:[[0,255],[0,255],[0,255],[.1,.9]],dynamic:"random"}],[1,["spheres","pyramids","waves","subplasma","dots","clouds","noise","lines2","colorbar","checkerboard","lines","squares","circles","crosshatch"],{rgba:[[32,255],[32,255],[32,255],[.5,.9]],dynamic:"random"}],[1,["spheres","pyramids","waves","subplasma","dots","clouds","noise","lines2","colorbar","checkerboard","lines","squares","circles","crosshatch"],{blend:"random",rgba:[[0,255],[0,255],[0,255],[.1,.9]],dynamic:"random"}],[2,"copy",{layer:0}],[2,"merge",{layer:1,blend:"random"}],[2,"brightness",{adjust:20}],[2,"contrast",{adjust:30}],[2,"map",{xamount:[2,177],yamount:[2,177],xchannel:[0,4],ychannel:[0,4],xlayer:[0,2],ylayer:[0,2]}]]})}},1416:e=>{e.exports=function(e){e.preset("sci-fi-wall",{width:256,height:256,items:[[0,"waves",{}],[0,"dots",{blend:["lighten","opacity","multiply"],shape:"rect",size:[20,250],gridX:[2,12],gridY:[2,12],xsines:[2,12],ysines:[2,12]}],[0,"dots",{blend:["lighten","opacity","multiply"],shape:"rect",size:[20,250],gridX:[2,12],gridY:[2,12],xsines:[2,12],ysines:[2,12]}],[0,"sharpen",{type:1}],[0,"spheres",{blend:["multiply","darken"],dynamic:!0,opacity:255}]]})}},7696:e=>{e.exports=function(e){e.preset("sci-fi-wall2",{width:256,height:256,items:[[0,"waves",{}],[0,"dots",{blend:["lighten","opacity","multiply"],shape:"rect",size:[10,280],gridX:[2,14],gridY:[2,14],xsines:[2,14],ysines:[2,14]}],[0,"dots",{blend:["lighten","opacity","multiply"],shape:"rect",size:[10,280],gridX:[2,14],gridY:[2,14],xsines:[2,14],ysines:[2,14]}],[0,"pyramids",{blend:["softlight","overlay"],dynamic:!1,count:10}],[0,"sharpen",{type:1}],[0,"spheres",{blend:["multiply","darken"],dynamic:!0,opacity:255}]]})}},2643:e=>{e.exports=function(e){e.preset("sci-fi-wall3",{width:512,height:512,items:[[0,"waves",{}],[0,"dots",{blend:["lighten","opacity","multiply"],shape:"rect",size:[10,280],gridX:[2,14],gridY:[2,14],xsines:[2,14],ysines:[2,14]}],[0,"dots",{blend:["lighten","opacity","multiply"],shape:"rect",size:[10,280],gridX:[2,14],gridY:[2,14],xsines:[2,14],ysines:[2,14]}],[0,"pyramids",{blend:["softlight","overlay"],dynamic:!1,count:10}],[0,"sharpen",{type:1}],[0,"spheres",{blend:["multiply","darken"],dynamic:!0,opacity:255}],[0,"rot90",{blend:"random"}]]})}},8663:e=>{e.exports=function(e){e.preset("sines-blue",{width:512,height:512,items:[[0,"subplasma",{size:[1,5],rgba:[[0,255],[0,255],[77,255],1]}],[0,"sinecolor",{channel:[0,2]}],[0,"subplasma",{blend:"random",size:[1,5],rgba:"randomalpha"}],[0,"sinecolor",{channel:[0,2]}],[0,"subplasma",{blend:"random",size:[1,5],rgba:"randomalpha"}],[0,"sinecolor",{channel:[0,2]}],[0,"colorize",{colormap:"ice"}],[0,"brightness",{adjust:20}],[0,"contrast",{adjust:20}],[0,"vibrance",{adjust:20}]]})}},3219:e=>{e.exports=function(e){e.preset("sines-chrome",{width:256,height:256,items:[[0,"subplasma",{size:3,rgba:[[0,255],[0,255],[77,255],1]}],[0,"sinecolor",{channel:2}],[0,"subplasma",{blend:["difference","darken","lighten"],size:3,rgba:[[0,255],[77,255],[0,255],1]}],[0,"sinecolor",{channel:1}],[0,"subplasma",{blend:["difference","darken","lighten"],size:3,rgba:[[77,255],[0,255],[0,255],1]}],[0,"sinecolor",{channel:0}],[0,"grayscale"],[0,"brightness",{adjust:20}],[0,"contrast",{adjust:20}],[0,"vibrance",{adjust:20}]]})}},2200:e=>{e.exports=function(e){e.preset("sines-color",{width:256,height:256,items:[[0,"subplasma",{size:3,rgba:[[0,255],[0,255],[77,255],1]}],[0,"sinecolor",{channel:2}],[0,"subplasma",{blend:["difference","darken","lighten"],size:3,rgba:[[0,255],[77,255],[0,255],1]}],[0,"sinecolor",{channel:1}],[0,"subplasma",{blend:["difference","darken","lighten"],size:3,rgba:[[77,255],[0,255],[0,255],1]}],[0,"sinecolor",{channel:0}],[0,"brightness",{adjust:20}],[0,"contrast",{adjust:20}],[0,"vibrance",{adjust:20}]]})}},309:e=>{e.exports=function(e){e.preset("sines-plasma",{width:512,height:512,items:[[0,"subplasma",{size:[1,5],rgba:[[32,255],[32,255],[32,255],1]}],[0,"sinecolor",{blend:"random",channel:[0,2]}],[0,"subplasma",{blend:"random",size:[1,5],rgba:"randomalpha"}],[0,"sinecolor",{blend:"random",channel:[0,2]}],[0,"subplasma",{blend:"random",size:[1,5],rgba:"randomalpha"}],[0,"sinecolor",{blend:"random",channel:[0,2]}],[0,"brightness",{adjust:20}],[0,"contrast",{adjust:20}],[0,"vibrance",{adjust:20}]]})}},5314:e=>{e.exports=function(e){e.preset("spaceship-color",{width:256,height:256,items:[[0,"waves",{blend:"",rgba:[128,128,128,.5]}],[0,"lines2",{blend:["opacity","screen"],count:[4,44],size:[.1,7]}],[0,"lines2",{blend:"random",type:"horizontal",count:[4,44],size:[.1,7]}],[0,"squares",{blend:["opacity","darken","softlight",""]}],[0,"squares",{blend:["opacity","darken","softlight",""],count:[4,44],size:[7,21]}],[0,"squares",{blend:["opacity","darken","softlight",""],count:[21,44],size:[4,7]}],[0,"pyramids",{blend:"random",dynamic:!0}],[0,"noise",{blend:"softlight",opacity:.2}],[0,"lines2",{blend:["opacity"],rgba:[[32,255],[32,255],[32,255],[.1,.5]],type:"horizontal",count:[21,44],size:[.1,1]}],[0,"lines2",{blend:["opacity"],rgba:[0,0,0,[.1,.5]],count:[4,21],size:[.2,0,5]}],[0,"sharpen",{type:1}]]})}},5039:e=>{e.exports=function(e){e.preset("spaceship-hull",{width:256,height:256,items:[[0,"waves",{blend:"",rgba:[128,128,128,.5]}],[0,"lines2",{blend:["opacity","screen"],count:[4,44],size:[.1,7]}],[0,"lines2",{blend:"random",type:"horizontal",count:[4,44],size:[.1,7]}],[0,"squares",{blend:["opacity","darken","softlight",""]}],[0,"squares",{blend:["opacity","darken","softlight",""],count:[4,44],size:[7,21]}],[0,"squares",{blend:["opacity","darken","softlight",""],count:[21,44],size:[4,7]}],[0,"pyramids",{blend:"random",dynamic:!0}],[0,"noise",{blend:"softlight",opacity:.2}],[0,"grayscale"],[0,"lines2",{blend:["opacity"],rgba:[[32,255],[32,255],[32,255],[.1,.5]],type:"horizontal",count:[21,44],size:[.1,1]}],[0,"lines2",{blend:["opacity"],rgba:[0,0,0,[.1,.5]],count:[4,21],size:[.2,0,5]}],[0,"sharpen",{type:1}]]})}},5765:e=>{e.exports=function(e){e.preset("spheres-blend",{width:512,height:512,items:[[0,"fill",{blend:"opacity",rgba:"random"}],[0,"spheres",{blend:"random",origin:"random",dynamic:!0,count:21,size:[10,60]}],[0,"spheres",{blend:"random",origin:"random",dynamic:!0,count:21,size:[10,60]}],[0,"spheres",{blend:"random",origin:"random",dynamic:!0,count:44,size:[10,44]}]]})}},1209:e=>{e.exports=function(e){e.preset("spheres-diffdodge",{width:256,height:256,items:[[0,"spheres",{blend:"difference",count:[7,21]}],[0,"spheres",{blend:"lineardodge",count:[4,7]}],[0,"brightness",{adjust:20}],[0,"contrast",{adjust:20}]]})}},1823:e=>{e.exports=function(e){e.preset("spheres-invert",{width:256,height:256,items:[[0,"spheres",{blend:"difference",count:[21,32]}],[0,"invert"],[1,"spheres",{blend:"difference",count:[21,48]}],[1,"invert"],[2,"merge",{layer:0}],[2,"merge",{layer:1,blend:"difference"}]]})}},2655:e=>{e.exports=function(e){e.preset("spheres-lilio",{width:256,height:256,items:[[0,"spheres",{blend:"lighten",count:[21,44]}],[1,"spheres",{blend:"lineardodge",count:[21,44]}],[2,"merge",{layer:0}],[2,"merge",{layer:1,blend:"overlay"}]]})}},29:e=>{e.exports=function(e){e.preset("spheres-map",{width:256,height:256,items:[[0,"spheres",{blend:"difference",count:[7,21]}],[0,"spheres",{blend:"lineardodge",count:[4,7]}],[0,"brightness",{adjust:20}],[0,"contrast",{adjust:20}],[1,"copy",0],[1,"map",{xamount:[44,77],yamount:[77,121],xchannel:[0,3],ychannel:[0,3],xlayer:[0,1],ylayer:[0,1]}]]})}},325:e=>{e.exports=function(e){e.preset("spheres-map2",{width:256,height:256,items:[[0,"spheres",{blend:"lighten",count:21}],[1,"spheres",{blend:"lighten",count:21}],[1,"merge",{layer:0,blend:["overlay","lighten","difference"]}],[1,"map",{xamount:[21,177],yamount:[21,177],xchannel:[0,3],ychannel:[0,3],xlayer:[0,1],ylayer:[0,1]}]]})}},946:e=>{e.exports=function(e){e.preset("spheres-worm",{width:256,height:256,items:[[0,"spheres",{blend:["lighten","lineardodge"],count:[14,21]}],[1,"spheres",{blend:["lighten","lineardodge"],count:[14,21]}],[2,"merge",{layer:0}],[2,"merge",{layer:1,blend:"darken"}]]})}},3162:e=>{e.exports=function(e){e.preset("spheres",{width:256,height:256,items:[[0,"spheres",{blend:"lighten",count:[7,21]}],[1,"spheres",{blend:"lighten",count:[4,7]}],[1,"merge",{layer:0,blend:"lighten"}],[1,"brightness",{adjust:20}],[1,"contrast",{adjust:20}]]})}},2408:e=>{e.exports=function(e){e.preset("squares",{width:64,height:64,items:[[0,"squares",{count:[4,14],origin:[50,50],size:[2,200],rgba:[[1,255],[1,255],[1,255],[.05,.15]]}],[0,"squares",{blend:["opacity","lighten","darken","softlight","multiply","screen","exclusion"],count:[4,14],origin:[50,50],size:[2,100],rgba:[[1,255],[1,255],[1,255],[.05,.15]]}],[0,"brightness",{adjust:-10,legacy:!0}],[0,"vibrance",{adjust:50}],[1,"copy",0],[1,"contrast",{adjust:50}]]})}},5523:e=>{e.exports=function(e){e.preset("starfield",{width:512,height:512,items:[[0,"fill",{rgba:[[30,60],[30,60],[30,60],1]}],[0,"clouds",{blend:"softlight",rgba:[232,126,226,1],roughness:[2,4]}],[0,"clouds",{blend:"overlay",rgba:[44,108,208,1],roughness:[2,4]}],[0,"pyramids",{blend:"screen",rgba:[255,255,255,.5],count:170,size:.5}],[0,"pyramids",{blend:"screen",rgba:[255,255,255,1],count:170,size:1}],[0,"pyramids",{blend:"lineardodge",rgba:[255,255,255,1],count:7,size:[1,3]}],[0,"brightness",{adjust:10,legacy:!0}],[0,"vibrance",{adjust:50}],[0,"contrast",{adjust:50}]]})}},7711:e=>{e.exports=function(e){e.preset("stone-and-flowers",{width:256,height:256,items:[[0,"subplasma",{size:[3,5]}],[0,"subplasma",{blend:"difference",size:[3,5]}],[0,"subplasma",{blend:"difference",size:[3,5]}],[0,"subplasma",{blend:"difference",size:[3,5]}],[0,"subplasma",{blend:"difference",size:[3,5]}],[0,"spheres",{blend:"difference",dynamic:!1}],[0,"brightness",{adjust:20}],[0,"contrast",{adjust:20}],[0,"vibrance",{adjust:20}]]})}},5172:e=>{e.exports=function(e){e.preset("waves-3",{width:256,height:256,items:[[0,"waves"],[0,"waves",{blend:"difference",xsines:[1,3],ysines:[1,4]}],[0,"waves",{blend:"linearburn",xsines:[1,3],ysines:[1,4]}],[0,"brightness",{adjust:80,legacy:!0}],[0,"vibrance",{adjust:20}]]})}},6922:e=>{e.exports=function(e){e.preset("waves-4",{width:256,height:256,items:[[0,"waves"],[0,"waves",{blend:"softlight"}],[0,"waves",{blend:"difference"}],[0,"waves",{blend:"linearburn"}],[0,"brightness",{adjust:40,legacy:!0}],[0,"vibrance",{adjust:10}]]})}},3107:e=>{e.exports=function(e){e.preset("waves-5-map",{width:256,height:256,items:[[0,"waves"],[0,"waves",{blend:"difference"}],[0,"waves",{blend:"linearburn"}],[0,"waves",{blend:"difference"}],[0,"waves",{blend:"linearburn"}],[0,"subplasma",{blend:["multiply","difference"]}],[0,"brightness",{adjust:10,legacy:!0}],[0,"vibrance",{adjust:10}],[0,"map"]]})}},8098:e=>{e.exports=function(e){e.preset("waves-5",{width:256,height:256,items:[[0,"waves"],[0,"waves",{blend:"difference"}],[0,"waves",{blend:"linearburn"}],[0,"waves",{blend:"difference"}],[0,"waves",{blend:"linearburn"}],[0,"brightness",{adjust:10,legacy:!0}],[0,"vibrance",{adjust:10}]]})}},7943:e=>{e.exports=function(e){e.preset("waves-cool-rotate",{width:512,height:512,items:[[0,"spheres",{blend:"lighten",origin:"random",dynamic:!1,count:21,size:[20,70]}],[0,"spheres",{blend:"lineardodge",origin:"random",dynamic:!0,count:21,size:[20,70]}],[0,"waves",{blend:"softlight",level:50,xsines:20,ysines:1}],[0,"waves",{blend:"softlight",level:50,xsines:20,ysines:1}],[0,"map",{xamount:[21,121],yamount:[21,121],xchannel:0,ychannel:2,xlayer:0,ylayer:0}],[0,"rot90",{times:[1,3],blend:"random"}]]})}},9771:e=>{e.exports=function(e){e.preset("waves-cool",{width:256,height:256,items:[[0,"spheres",{blend:"lighten",origin:"random",dynamic:!1,count:21,size:[20,70]}],[0,"spheres",{blend:"lineardodge",origin:"random",dynamic:!0,count:21,size:[20,70]}],[0,"waves",{blend:"softlight",level:50,xsines:20,ysines:1}],[0,"waves",{blend:"softlight",level:50,xsines:20,ysines:1}],[0,"map",{xamount:[21,121],yamount:[21,121],xchannel:0,ychannel:2,xlayer:0,ylayer:0}]]})}},4293:e=>{e.exports=function(e){e.preset("xor-sharpen",{width:512,height:512,normalize:"pingpong",items:[[0,"fill",{rgba:[0,0,0]}],[0,"xor",{zoom:[1,2]}],[0,"xor",{zoom:[2,4]}],[0,"xor",{zoom:[4,8]}],[0,"sharpen"],[0,"contrast",{adjust:42}]]})}},9039:e=>{e.exports=function(e){e.preset("xor",{width:256,height:256,normalize:"pingpong",items:[[0,"xor",{zoom:[2,8]}],[0,"xor",{zoom:[4,16]}],[0,"xor",{zoom:[8,32]}]]})}},5949:e=>{e.exports=function(e){e.preset("z-dev-rotate",{width:256,height:256,items:[[0,"spheres",{blend:"lighten",origin:"random",dynamic:!1,count:21,size:[20,70]}],[0,"spheres",{blend:"lineardodge",origin:"random",dynamic:!0,count:21,size:[20,70]}],[0,"waves",{blend:"softlight",level:50,xsines:20,ysines:1}],[0,"waves",{blend:"softlight",level:50,xsines:20,ysines:1}],[0,"map",{xamount:[21,121],yamount:[21,121],xchannel:0,ychannel:2,xlayer:0,ylayer:0}],[null,"copy",{}],[null,"rotate",{type:2,angle:[10,100],times:[1,3],blend:"random"}]]})}},5374:e=>{e.exports=function(e){e.preset("z-dev",{width:256,height:256,normalize:"pingpong",items:[[0,"fill",{seed:34598}],[0,"dots",{shape:null,blend:"random"}],[0,"rot90",{blend:"random"}]]})}},4042:e=>{e.exports=function(e){e.preset("z-error-blend",{width:512,height:512,items:[[0,"clouds",{colormap:"redblue",seed:32,roughness:4}],[1,"clouds",{colormap:"seashore",seed:211,roughness:4}],[2,"copy"],[2,"merge",{layer:0,blend:"multiply"}],[3,"copy",{layer:0}],[3,"clouds",{colormap:"seashore",blend:"multiply",seed:211,roughness:4}]]})}},8331:e=>{e.exports=function(e){e.preset("z-error-blend2",{width:256,height:256,items:[[0,"dots",{blend:"difference-invert",rgba:[[0,255],[0,255],120,.9],shape:"rect",size:[200,200],gridX:[7,7],gridY:[7,7],xsines:[7,7],ysines:[7,7]}]]})}},3584:e=>{e.exports=function(e){e.preset("z-test-pattern",{width:256,height:256,items:[[0,"test-pattern"]]})}},6221:e=>{e.exports=function(e){e.shape("circle",(function(e,n,t,r,a){var i,s,o;for(null==a&&(n+=r,t+=r),i=-r;i{e.exports=function(e){e.shape("colorLine",(function(e,n,t,r,a,i,s,o){var l,d,c,u,h,p=i.length,f=Math.sqrt((r-n)*(r-n)+(a-t)*(a-t)),b=(r-n)/f,y=(a-t)/f,m=0,g=0;for(s=s||1,u=0;u{e.exports=function(e){t(6221)(e),t(2673)(e),t(2105)(e),t(5174)(e),t(4374)(e),t(3196)(e)}},2105:e=>{e.exports=function(e){e.shape("line",(function(e,n,t,r,a){var i,s=Math.sqrt((r-n)*(r-n)+(a-t)*(a-t)),o=(r-n)/s,l=(a-t)/s,d=0,c=0;for(i=0;i{e.exports=function(e){e.shape("pyramid",(function(e,n,t,r,a,i,s,o){var l,d,c,u,h=parseInt(r/2,10),p=parseInt(a/2,10);for(1!=i&&(n+=h,t+=p),c=-h;c1&&(d=o?l:s[3],e.point.rgba=[s[0]/255*l,s[1]/255*l,s[2]/255*l,d],e.point.set(n+c,t+u))}))}},4374:e=>{e.exports=function(e){e.shape("rect",(function(e,n,t,r,a,i){var s,o;for(void 0!==i&&(n-=parseInt(r/2,10),t-=parseInt(a/2,10)),s=0;s{e.exports=function(e){e.shape("sphere",(function(e,n,t,r,a,i,s){var o,l,d,c,u;for(null==a&&(n+=r,t+=r),c=-r;c0&&(l=s?255*o:i[3],e.point.rgba=[i[0]*o,i[1]*o,i[2]*o,l],e.point.set(n+c,t+u))}))}},9281:(e,n,t)=>{var r={version:"1.4.16",defaults:{},effects:{},prepare:{},filters:[],presets:{},functions:[],blends:{},shapes:{},colormaps:{},config:{},blendFlat:function(){return["lighten","screen","opacity"]},blendSafe:function(){return["average","lighten","linearburn","linearlight","difference","difference-invert","screen","lineardodge","lineardodge-invert","opacity","exclusion"]},randomRGBA:function(){return[[0,255],[0,255],[0,255],[64,255]]},effect:function(e,n,t,r){this.defaults[e]=n,this.effects[e]=t,this.prepare[e]=r},function:function(e,n,t){this.functions.push(e),this.defaults[e]=n,this.effects[e]=t},filter:function(e,n,t){this.filters.push(e),this.defaults[e]=n,this.effects[e]=t},preset:function(e,n){n.name=e,this.presets[e]=n},event:function(e,n,t){null!=this.events[e]&&(this.events[e][n]=t)},blend:function(e,n){this.blends[e]=n},shape:function(e,n){this.shapes[e]=n},colormap:function(e,n){this.colormaps[e]=n},init:function(e,n,t){return this.getGenerator(e,n,t)}};t(6611)(r),t(5702)(r),t(9395)(r),t(8565)(r),t(3551)(r),t(5265)(r),t(490)(r),t(9136)(r),e.exports=r},2265:(e,n,t)=>{var r,a=t(9281);t(8818)(a),"undefined"!=typeof window&&(window.tgen=a),void 0!==e.exports?e.exports=a:void 0===(r=function(){return a}.apply(n,[]))||(e.exports=r)},6611:e=>{e.exports=function(e){e.blend("opacity",(function(e,n,t){return t})),e.blend("multiply",(function(e,n,t){return t[0]=n[0]*t[0]/255,t[1]=n[1]*t[1]/255,t[2]=n[2]*t[2]/255,t})),e.blend("linearburn",(function(e,n,t){return t[0]=n[0]+t[0]-255,t[1]=n[1]+t[1]-255,t[2]=n[2]+t[2]-255,t})),e.blend("difference",(function(e,n,t){return t[0]=Math.abs(t[0]-n[0]),t[1]=Math.abs(t[1]-n[1]),t[2]=Math.abs(t[2]-n[2]),t})),e.blend("difference-invert",(function(e,n,t){return t[0]=255-Math.abs(t[0]-n[0]),t[1]=255-Math.abs(t[1]-n[1]),t[2]=255-Math.abs(t[2]-n[2]),t})),e.blend("screen",(function(e,n,t){return t[0]=255-(255-n[0])*(255-t[0])/255,t[1]=255-(255-n[1])*(255-t[1])/255,t[2]=255-(255-n[2])*(255-t[2])/255,t})),e.blend("overlay",(function(e,n,t){return t[0]=n[0]>128?255-2*(255-t[0])*(255-n[0])/255:n[0]*t[0]*2/255,t[1]=n[1]>128?255-2*(255-t[1])*(255-n[1])/255:n[1]*t[1]*2/255,t[2]=n[2]>128?255-2*(255-t[2])*(255-n[2])/255:n[2]*t[2]*2/255,t})),e.blend("exclusion",(function(e,n,t){return t[0]=128-2*(n[0]-128)*(t[0]-128)/255,t[1]=128-2*(n[1]-128)*(t[1]-128)/255,t[2]=128-2*(n[2]-128)*(t[2]-128)/255,t})),e.blend("darken",(function(e,n,t){return t[0]=t[0]n[0]?t[0]:n[0],t[1]=t[1]>n[1]?t[1]:n[1],t[2]=t[2]>n[2]?t[2]:n[2],t})),e.blend("lineardodge",(function(e,n,t){return t[0]=n[0]+t[0],t[1]=n[1]+t[1],t[2]=n[2]+t[2],t})),e.blend("lineardodge-invert",(function(e,n,t){return t[0]=255-(t[0]+n[0]),t[1]=255-(t[1]+n[1]),t[2]=255-(t[2]+n[2]),t})),e.blend("linearlight",(function(e,n,t){return t[0]=n[0]+2*t[0]-255,t[1]=n[1]+2*t[1]-255,t[2]=n[2]+2*t[2]-255,t})),e.blend("linearburn",(function(e,n,t){return t[0]=n[0]+t[0]-255,t[1]=n[1]+t[1]-255,t[2]=n[2]+t[2]-255,t})),e.blend("softlight",(function(e,n,t){return t[0]=n[0]>128?255-(255-n[0])*(255-(t[0]-128))/255:n[0]*(t[0]+128)/255,t[1]=n[1]>128?255-(255-n[1])*(255-(t[1]-128))/255:n[1]*(t[1]+128)/255,t[2]=n[2]>128?255-(255-n[2])*(255-(t[2]-128))/255:n[2]*(t[2]+128)/255,t})),e.blend("subbtract",(function(e,n,t){return t[0]=Math.max(n[0]-t[0],0),t[1]=Math.max(n[1]-t[1],0),t[2]=Math.max(n[2]-t[2],0),t})),e.blend("backlight",(function(e,n,t){return n[0]=0===n[0]?.001:n[0],n[1]=0===n[1]?.001:n[1],n[2]=0===n[2]?.001:n[2],t[0]=255/n[0]*(255/t[0]),t[1]=255/n[1]*(255/t[1]),t[2]=255/n[2]*(255/t[2]),t})),e.blend("average",(function(e,n,t){return t[0]=(t[0]+n[0])/2,t[1]=(t[1]+n[1])/2,t[2]=(t[2]+n[2])/2,t})),e.blend("alphamap",(function(e,n,t){return n[3]=(t[0]+t[1]+t[2])/3,n}))}},5702:e=>{e.exports=function(e){e.colormap("blackwhite",(function(){return[{percent:0,rgba:[0,0,0,255]},{percent:25,rgba:[255,255,255,255]},{percent:50,rgba:[0,0,0,255]},{percent:75,rgba:[255,255,255,255]},{percent:100,rgba:[0,0,0,255]}]})),e.colormap("blackwhite2",(function(){return[{percent:0,rgba:[0,0,0,255]},{percent:100,rgba:[255,255,255,255]}]})),e.colormap("grayscale",(function(){return[{percent:0,rgba:[0,0,0,255]},{percent:100,rgba:[255,255,255,255]}]})),e.colormap("elevation",(function(){return[{percent:0,rgba:[252,69,27,255]},{percent:25,rgba:[245,203,39,255]},{percent:50,rgba:[104,253,163,255]},{percent:75,rgba:[27,196,253,255]},{percent:100,rgba:[88,18,252,255]}]})),e.colormap("wiener-challah",(function(){return[{percent:0,rgba:[66,53,66,255]},{percent:25,rgba:[111,68,70,255]},{percent:50,rgba:[163,90,59,255]},{percent:75,rgba:[237,155,43,255]},{percent:100,rgba:[255,240,150,255]}]})),e.colormap("parula",(function(){return[{percent:0,rgba:[53,42,135,255]},{percent:12.5,rgba:[3,99,225,255]},{percent:25,rgba:[20,133,212,255]},{percent:37.5,rgba:[6,167,198,255]},{percent:50,rgba:[56,185,158,255]},{percent:62.5,rgba:[146,191,115,255]},{percent:75,rgba:[217,186,86,255]},{percent:87.5,rgba:[252,206,46,255]},{percent:100,rgba:[249,251,14,255]}]})),e.colormap("dawn",(function(){return[{percent:0,rgba:[255,255,192,255]},{percent:25,rgba:[255,255,128,255]},{percent:50,rgba:[255,128,128,255]},{percent:75,rgba:[128,0,128,255]},{percent:100,rgba:[0,0,128,255]}]})),e.colormap("dusk",(function(){return[{percent:0,rgba:[255,255,255,255]},{percent:25,rgba:[255,128,255,255]},{percent:50,rgba:[128,0,255,255]},{percent:75,rgba:[0,0,128,255]},{percent:100,rgba:[0,0,0,255]}]})),e.colormap("kryptonite",(function(){return[{percent:0,rgba:[255,255,255,255]},{percent:25,rgba:[255,255,128,255]},{percent:50,rgba:[128,255,0,255]},{percent:75,rgba:[0,128,0,255]},{percent:100,rgba:[0,0,0,255]}]})),e.colormap("ice",(function(){return[{percent:0,rgba:[255,255,255,255]},{percent:25,rgba:[128,255,255,255]},{percent:50,rgba:[0,128,255,255]},{percent:75,rgba:[0,0,128,255]},{percent:100,rgba:[0,0,0,255]}]})),e.colormap("fire",(function(){return[{percent:0,rgba:[255,255,255,255]},{percent:25,rgba:[255,255,128,255]},{percent:50,rgba:[255,128,0,255]},{percent:75,rgba:[128,0,0,255]},{percent:100,rgba:[0,0,0,255]}]})),e.colormap("redblue",(function(){return[{percent:0,rgba:[96,0,0,255]},{percent:25,rgba:[192,0,0,255]},{percent:50,rgba:[255,255,255,255]},{percent:75,rgba:[0,0,192,255]},{percent:100,rgba:[0,0,96,255]}]})),e.colormap("seashore",(function(){return[{percent:0,rgba:[255,255,192,255]},{percent:25,rgba:[255,255,128,255]},{percent:50,rgba:[128,255,128,255]},{percent:75,rgba:[0,128,128,255]},{percent:100,rgba:[0,0,128,255]}]}))}},9395:e=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}e.exports=function(e){e.getGenerator=function(t,r,a){var i=this,s={},o=[],l=null,d={shape:i.shapes,effects:Object.keys(i.effects),layers:[],normalize:a||"limitless"},c=function(){null==t&&(t=256),t<1&&(t=256),r<1&&(r=256),t>2048&&(t=2048),r>2048&&(r=2048),null==r&&(r=t),l=(t+r)/2};c(),d.log=function(){if(this.debug&&arguments.length>0){for(var e=[],n=0;n=n?r=e-(t=Math.floor(a)*n):e<0?(t=Math.ceil(a)*n,(r=n-Math.abs(e-t))>=n?r-=n:r):void 0},this.offset=function(e,n){return e=Math.round(e),n=Math.round(n),(e<0||e>=this.width)&&(e=this.pattern(e,this.width)),(n<0||n>=this.height)&&(n=this.pattern(n,this.height)),n*this.width*this.components+e*this.components},this.set=function(e,n,t){var r=this.offset(e,n);this.data[r]=t[0],this.data[r+1]=t[1],this.data[r+2]=t[2],this.data[r+3]=t[3]},this.get=function(e,n){var t=this.offset(e,n);return[this.data[t],this.data[t+1],this.data[t+2],this.data[t+3]]},this.alpha=function(e){var n;if("sphere"===e)for(;n;)d.texture.data[n]=.5,n-=4},this.canvas=function(e){for(var n=this.size(),t=e.getContext("2d").getImageData(0,0,this.width,this.height);n--;)d.texture.data[n]=t.data[n]},null===this.data&&this.clear()},d.texture=new d.buffer,d.layerCopy=function(e){for(var n=this.layers[e],t=[],r=n.length;r--;)t[r]=n[r];return t},d.minMaxNormalize=function(e,n){return{min:Math.min(e,n),max:Math.max(e,n)}},d.randInt=function(e,n,t){var r,a=d.minMaxNormalize(e,n);return e=a.min,n=a.max,!0===t?(e=Math.round(e/2),n=Math.round(n/2),r=2):r=1,r*(Math.floor(Math.random()*(n-e+1))+e)},d.randIntSeed=function(e,n,t){var r,a=d.minMaxNormalize(e,n);return e=a.min,n=a.max,!0===t?(e=Math.round(e/2),n=Math.round(n/2),r=2):r=1,r*(Math.floor(d.calc.randomseed()*(n-e+1))+e)},d.randReal=function(e,n){var t=d.minMaxNormalize(e,n);return e=t.min,n=t.max,Math.random()*(n-e)+e},d.randRealSeed=function(e,n){var t=d.minMaxNormalize(e,n);return e=t.min,n=t.max,d.calc.randomseed()*(n-e)+e},d.randByArray=function(e,t){return null==e||"object"!==n(e)||void 0===e[0]?(d.calc.seed++,e):e=void 0!==t?d.randReal(e[0],e[1]):d.randInt(e[0],e[1])},d.randByArraySeed=function(e,t,r){return null==e||"object"!==n(e)||void 0===e[0]?(d.calc.seed++,e):e=t?d.randRealSeed(e[0],e[1]):d.randIntSeed(e[0],e[1],r)},d.randIntByArraySeed=function(e,t,r){return null!=e&&"random"!==e||(e=t),"object"!==n(e)?(d.calc.seed++,e):e=d.randIntSeed(e[0],e[1],r)},d.randRealByArraySeed=function(e,t){return null!=e&&"random"!==e||(e=t),"object"!==n(e)?(d.calc.seed++,e):e=d.randRealSeed(e[0],e[1])},d.randItemSeed=function(e){if("object"!==n(e)||void 0===e[0])return d.calc.seed++,e;var t=e.length;return e[d.randIntSeed(0,t-1)]},d.randItemByArray=function(e,n){if(null!=e&&"random"!==e)return e;var t=n.length;return n[d.randInt(0,t-1)]},d.randItemByArraySeed=function(e,n){if(null!=e&&"random"!==e)return d.calc.seed++,e;var t=n.length;return n[d.randIntSeed(0,t-1)]},d.randProperty=function(e,n){if(null!=e&&"random"!==e)return d.calc.seed++,e;var t=Object.keys(n);return t[d.randByArraySeed([0,t.length-1])]},d.rgba=function(e){return"random"!==e&&null!=e||(e=[[0,255],[0,255],[0,255],255]),"randomalpha"===e&&(e=[[0,255],[0,255],[0,255],[128,255]]),void 0!==e[0]&&null!==e[0]||(e[0]=0),void 0!==e[1]&&null!==e[1]||(e[1]=0),void 0!==e[2]&&null!==e[2]||(e[2]=0),void 0!==e[3]&&null!==e[3]||(e[3]=255),e[0]=d.randByArraySeed(e[0]),e[1]=d.randByArraySeed(e[1]),e[2]=d.randByArraySeed(e[2]),e[3]=d.randByArraySeed(e[3]),e[3]%1!=0&&(e[3]=Math.round(255*e[3])),1==e[3]&&(e[3]=255),e};return d.findClosestIndex=function(e,n,t){for(var r=n;r>=0&&r<=e.length-1;r+=t)if(e[r])return r;return e.length-1},d.easing={PI:3.1415926535,c1:1.70158,c2:1.525*this.c1,c3:this.c1+1,c4:2*this.PI/3,c5:2*this.PI/4.5,InQuad:function(e){return e*e},OutQuad:function(e){return 1-(1-e)*(1-e)},InOutQuad:function(e){return e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2},InCubic:function(e){return e*e*e},OutCubic:function(e){return 1-Math.pow(1-e,3)},InOutCubic:function(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2},InQuart:function(e){return e*e*e*e},OutQuart:function(e){return 1-Math.pow(1-e,4)},InOutQuart:function(e){return e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2},InQuint:function(e){return e*e*e*e*e},OutQuint:function(e){return 1-Math.pow(1-e,5)},InOutQuint:function(e){return e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2},InSine:function(e){return 1-Math.cos(e*this.PI/2)},OutSine:function(e){return Math.sin(e*this.PI/2)},InOutSine:function(e){return-(Math.cos(this.PI*e)-1)/2},InExpo:function(e){return 0===e?0:Math.pow(2,10*e-10)},OutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},InOutExpo:function(e){return 0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2},InCirc:function(e){return 1-Math.sqrt(1-Math.pow(e,2))},OutCirc:function(e){return Math.sqrt(1-Math.pow(e-1,2))},InOutCirc:function(e){return e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2},InBack:function(e){return this.c3*e*e*e-this.c1*e*e},OutBack:function(e){return 1+this.c3*Math.pow(e-1,3)+this.c1*Math.pow(e-1,2)},InOutBack:function(e){return e<.5?Math.pow(2*e,2)*(2*(this.c2+1)*e-this.c2)/2:(Math.pow(2*e-2,2)*((this.c2+1)*(2*e-2)+this.c2)+2)/2},InElastic:function(e){return 0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*this.c4)},OutElastic:function(e){return 0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*this.c4)+1},InOutElastic:function(e){return 0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*this.c5)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*this.c5)/2+1},InBounce:function(e){return 1-this.OutBounce(1-e)},OutBounce:function(e){var n=7.5625,t=2.75;return e<1/t?n*e*e:e<2/t?n*(e-=1.5/t)*e+.75:e<2.5/t?n*(e-=2.25/t)*e+.9375:n*(e-=2.625/t)*e+.984375},InOutBounce:function(e){return e<.5?(1-this.OutBounce(1-2*e))/2:(1+this.OutBounce(2*e-1))/2}},d.calc={seed:void 0,pi:3.1415927,luminance:function(e){return.21*e[0]+.72*e[1]+.07*e[2]},randomseed:function(e){void 0!==e?this.seed=e:void 0===this.seed&&(this.seed=d.randInt(1,Number.MAX_SAFE_INTEGER));var n=1e4*Math.sin(this.seed++);return n-Math.floor(n)},normalize1:function(e){return d.calc.normalize(e,0,1)},normalize255:function(e){return d.calc.normalize(e,0,255)},normalize:function(e,n,t){return e>t?t:e1&&(l=1),l}}},d.colormap={data:null,easing:null,reverse:!1,size:255,init:function(e,r,a){if(this.data=null,this.size=null==r?t:r,null==e||null==e)return e;var s;if("object"==n(e))if("object"==n(e[0]))for(var o in e)(s=e[o]).rgba=d.rgba(s.rgba),e[o]=s;else e=d.randItemSeed(e);if("random"===e&&(e=this.random()),"string"==typeof e&&("!"==e.charAt(0)&&(e=e.substring(1),this.reverse=!0),"function"==typeof i.colormaps[e])){var l=i.colormaps[e](r);this.data=this.render(l)}"object"==n(e)&&(this.data=this.render(e)),"function"==typeof a&&a(e)},random:function(e){e=e||d.randIntSeed(2,7);for(var n=[],t=0;t<=e;t++)n[t]={percent:parseInt(t/e*100),rgba:[d.randIntSeed(0,255),d.randIntSeed(0,255),d.randIntSeed(0,255),255]};return n},render:function(e){for(var n=[],t=0;t{e.exports=function(e){e.effect("test-pattern",{},(function(e,n){var t,r=e.texture.width,a=e.texture.height;return e.point.blend="opacity",e.texture.clear(),e.point.rgba=[255,255,155,255],e.shape.rect(e,1,1,r-2,a-2),t=20,e.point.rgba=[0,150,0,153],e.shape.rect(e,2,2,t,t),e.shape.rect(e,r-t-2,2,t,t),e.shape.rect(e,2,a-2-t,t,t),e.shape.rect(e,r-2-t,a-2-t,t,t),e.point.rgba=[20,20,10,51],e.shape.rect(e,r/2,a/2,178,178,!0),e.point.rgba=[10,20,210,178],e.shape.rect(e,r-5,a-5,10,10),t=20,e.point.rgba=[10,10,210,250],e.shape.line(e,t,t,r-t,a-t),e.shape.line(e,r-t,t,t,a-t),e.shape.line(e,0,a/2,r,a/2),e.shape.line(e,r/2,0,r/2,a),e.point.rgba=[255,55,55,128],e.shape.rect(e,10,10,r-20,a-20),e.point.rgba=[0,0,255,76],e.shape.rect(e,r-2,a-2,4,4),e.point.rgba=[255,255,255,255],e.point.set(0,0),e.point.set(r-1,0),e.point.set(0,a-1),e.point.set(r-1,a-1),e.point.rgba=[25,25,0,51],e.shape.circle(e,r/4,a/4,r/4,!0),e.point.rgba=[255,255,0,25],e.shape.circle(e,r,a,r,!0),e.shape.sphere(e,r/4,a-a/4,r/2,!0,[255,0,0,0],!0),e.shape.sphere(e,r/2,a-a/4,r/2,!0,[0,255,0,0],!0),e.shape.sphere(e,r-r/4,a-a/4,r/2,!0,[255,255,255,0],!0),e.shape.pyramid(e,r-r/4,a/4,r/2,a/2,!0,[0,0,0,255],!0),e.do("brightness",{adjust:50}),e.do("vibrance",{adjust:100}),e.do("contrast",{adjust:20}),n})),e.effect("test-all",{},(function(e,n){var t;e.normalize="limitless";var r=0,a=["test-all","test-pattern","copy","merge","mergeall"];for(var i in e.effects)t=e.effects[i],a.indexOf(t)<0&&(e.do(t),e.layers[r++]=e.texture.export());return n}))}}},n={};(function t(r){var a=n[r];if(void 0!==a)return a.exports;var i=n[r]={exports:{}};return e[r](i,i.exports,t),i.exports})(2265)})(); \ No newline at end of file diff --git a/dist/tgen-with-presets.min.js.LICENSE.txt b/dist/tgen-with-presets.min.js.LICENSE.txt index 06131dd..3e32829 100644 --- a/dist/tgen-with-presets.min.js.LICENSE.txt +++ b/dist/tgen-with-presets.min.js.LICENSE.txt @@ -5,7 +5,7 @@ * https://texture-generator.com/ * * @copyright 2015-2022 Tamas Schalk - * @version 1.4.15 + * @version 1.4.16 * @license MIT * */ diff --git a/dist/tgen-with-presets.min.js.gz b/dist/tgen-with-presets.min.js.gz index a4eaec804fc0bafbaaf56ed062729b957ab41a9d..fa02c07a32f39d1a8a5db347c4d79609580a9cca 100644 GIT binary patch delta 16552 zcmV(}K+wODf&r+40e>Hh2mk;80006C?R{%=wf!X)(cg5kdV4(JUeTTTLkKvm6e&5nUz(z8oYh; z+bn;R#JeahqBn7Ro8=E-8E5I6LlT9MR7BC6@-9k8ALH_VbbrXBA}WjVL!6HPR*Zl5 z-8bL<;rnmL;fNRJOUQGO8w z<Db407(BjAvXI zgWU@L4S#ne8ywwr9sx?zH|ewMK0lM`#GCdbs5svxQSlmD%JTRwHmGR_C@NPQN+v)} zlC;E&_-T@sq!vEQzCQrd;OCACf0OS*i zqR3<@z+P&;u`aZb9w^4B8k`GzDf8)Ic z0e=EXPn&4FNw)zouY7zacNH`m5=Y?S&rz6gBzT0nqw&-oIOUadJG^xVCRzlK>Q)5X z3jzynIc;IW)27_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!j^%deEH`6)GUl@L4X+&=b1ocsD(r+SPm}L@*rAWe^-<%FQhBZhot`w zb&0Wn%fT3nw@z{7b2a@sbL$!l7KfLwuKO%F>8FJDVI)$DheZ+Jr;e==L|bf2u}CU7 zK!b*FH{u6xaqrmMgeJ^=P$}_cV|?1{@y{}g)XtlY`DOZT;dCMgwJ?7BeQOb(gGHnx zu(goPvn~hZ?!_BNe?HXNTqYCclGHcKH1?@Pa^>R@rBw3DPQJJ>ry<>1LMz>J2N9Z- z)_$3I-f8XrzeiOhi3Y>^rzHg}@ z>u_a3x`0t-iQt1^@bu zx(xm+31>qqe;qfxyYhHXqq3tO=2-dGQ1DKDLOn924N&l2XMT_Ke8KyM_;@s#i{RkR|4=kWS$>Q(hI41q5tB@UZ}BV$-HFBijU&GR_aIsR?dyTbbp z_{iF3Rs5f_=3oSXewkG_yIm-${9AR5!62d=GO=O89bgJEvXqiC~vJvgzhkd$g zuv!gI_T5=y)ZUAR+O8)rjIS!nYN75{var e={9377:e=>{e.exports=function(e){e.effect("checkerboard",{seed:null,blend:e.blendFlat,rgba:"randomalpha",even:"random",size:[[2,32],[2,32]]},(function(e,t){t.even=e.randItemByArraySeed(t.even,[!0,!1]);var n,r,a,i,o,s,u=e.texture.width,c=e.texture.height;"number"==typeof t.size?n=r=t.size:(n=t.size[0]=e.randByArraySeed(t.size[0],null,!0),r=t.size[1]=e.randByArraySeed(t.size[1],null,!0));var l=Math.round(u/n),d=Math.round(c/r),f=function(t,n){for(a=0;a{e.exports=function(e){e.effect("circles",{seed:null,blend:e.blendFlat,rgba:"randomalpha",origin:"random",count:[1,42],size:[[1,42],[1,42]]},(function(e,t){var n,r;for(t.size[0]=e.randByArraySeed(t.size[0],!1),t.size[1]=e.randByArraySeed(t.size[1],!1),n=0;n{e.exports=function(e){e.effect("clouds",{seed:null,blend:e.blendSafe,rgba:"randomalpha",roughness:[1,32],colormap:null},(function(e,t){t.roughness=e.randByArraySeed(t.roughness);var n,r,a,i,o,s,u,c,l,d,f,h,p=e.texture.width,y=e.texture.height,g=[],m=function(e,t,n){return e=Math.round(e),t=Math.round(t),e<0&&(e=p+e),e>=p&&(e-=p),t<0&&(t=y+t),t>=y&&(t-=y),void 0!==n&&(g[e][t]=n),g[e][t]},b=function(n){return(e.randRealSeed(0,1)-.5)*(n/(p+p)*t.roughness)};for(function(){for(n=0;n<=p;n++)for(g[n]=[],r=0;r<=y;r++)g[n][r]=0}(),function o(g){var x=g/2;if(x<=1)return t;for(u=0;u<=p+x;u+=x)for(c=0;c<=y+x;c+=x)l=m(u-x,c-x),d=m(u,c-x),f=m(u-x,c),h=m(u,c),s=m(n=u-x/2,r=c-x/2,e.calc.normalize1((l+d+f+h)/4+b(g))),a=u-g+x/2,m(u-x,r,e.calc.normalize1((l+f+s+m(a,r))/4+b(g))),i=c-g+x/2,m(n,c-x,e.calc.normalize1((l+d+s+m(n,i))/4+b(g)));o(x)}(p),e.colormap.init(t.colormap,255,(function(e){t.colormap=e})),n=0;n{e.exports=function(e){e.effect("colorbar",{seed:null,blend:e.blendFlat,type:"random",colormap:"random",mirror:!0},(function(e,t){t.type=e.randItemByArraySeed(t.type,["vertical","horizontal"]);var n,r,a,i=e.texture.width,o=e.texture.height,s="horizontal"==t.type?i:o;if(e.colormap.init(t.colormap,s,(function(e){t.colormap=e})),"horizontal"==t.type)for(n=0;n{e.exports=function(e){e.effect("crosshatch",{seed:null,blend:e.blendSafe,rgba:"randomalpha",level:[1,100],xadjust:"random",yadjust:"random"},(function(e,t){var n,r,a;for(t.xadjust=e.randRealByArraySeed(t.xadjust,[.1,121]),t.yadjust=e.randRealByArraySeed(t.yadjust,[.1,121]),n=0;n{e.exports=function(e){e.effect("dots",{seed:null,blend:e.blendSafe,gridX:[2,64],gridY:[2,64],size:[1,250],rgba:"randomalpha",shape:"sphere",dynamic:!0,xsines:[1,16],ysines:[1,16]},(function(e,t){t.gridX=e.randByArraySeed(t.gridX),t.gridY=e.randByArraySeed(t.gridY),t.xsines=e.randIntByArraySeed(t.xsines,[1,16]),t.ysines=e.randIntByArraySeed(t.ysines,[1,16]),t.shape=e.randItemByArraySeed(t.shape,["sphere","pyramid","rect","circle"]);var n,r,a,i,o=e.randByArraySeed(t.size)/100,s=e.texture.width,u=e.texture.height,c=s/t.gridX,l=u/t.gridY,d=c/2,f=l/2;for(n=1;n<=t.gridX;n++)for(r=1;r<=t.gridY;r++)switch(i=(a=o*(c+l)/2/2)-a/2*Math.sin(n/t.gridX*t.xsines*2*e.calc.pi)+a/2*Math.sin(r/t.gridY*t.ysines*2*e.calc.pi),t.shape){case"sphere":e.shape.sphere(e,n*c-d,r*l-f,2*i,!0,t.rgba,t.dynamic);break;case"pyramid":e.shape.pyramid(e,n*c-d,r*l-f,i,i,!0,t.rgba,t.dynamic);break;case"rect":e.shape.rect(e,n*c-d,r*l-f,i,i,!0,t.rgba,t.dynamic);break;default:i/=2,e.shape.circle(e,n*c-d,r*l-f,i,!0)}return t}))}},2855:e=>{e.exports=function(e){e.effect("fill",{seed:null,blend:"opacity",rgba:"randomalpha"},(function(e,t){return e.shape.rect(e,1,1,e.texture.width,e.texture.height),t}))}},743:e=>{e.exports=function(e){e.effect("mandelbrot",{seed:null,blend:"opacity",rgba:"randomalpha",iteration:[8,512],skip:[0,8]},(function(e,t){t.skip=e.randByArraySeed(t.skip),t.iteration=e.randByArraySeed(t.iteration);var n,r,a,i=e.texture.width,o=e.texture.height,s=t.rgba[0],u=t.rgba[1],c=t.rgba[2],l=256/s,d=256/u,f=256/c,h=t.iteration,p=0,y=0,g=0,m=0,b=0,x=0;for(n=0;n4);a++)m=2*g*m+y,g=b-x+p;a>t.skip&&(e.point.rgba=[a%s*l,a%u*d,a%c*f,e.point.rgba[3]],e.point.set(r,n))}return t}))}},5265:(e,t,n)=>{e.exports=function(e){n(9377)(e),n(5405)(e),n(2261)(e),n(4283)(e),n(7891)(e),n(8988)(e),n(2855)(e),n(743)(e),n(1800)(e),n(4191)(e),n(8375)(e),n(8806)(e),n(9240)(e),n(7301)(e),n(6191)(e),n(2163)(e),n(6444)(e),n(5800)(e)}},1800:e=>{e.exports=function(e){e.effect("lines",{seed:null,blend:e.blendFlat,rgba:"randomalpha",size:[77,221],count:[21,512],freq1s:[4,221],freq1c:[4,221],freq2s:[4,221],freq2c:[4,221]},(function(e,t){var n,r,a,i,o;for(t.freq1s=e.randByArraySeed(t.freq1s,!0),t.freq1c=e.randByArraySeed(t.freq1c,!0),t.freq2s=e.randByArraySeed(t.freq2s,!0),t.freq2c=e.randByArraySeed(t.freq2c,!0),t.size=e.randByArraySeed(t.size),n=0;n{e.exports=function(e){e.effect("lines2",{seed:null,blend:e.blendFlat,rgba:"randomalpha",type:"random",size:[.1,21],count:[1,42]},(function(e,t){var n,r,a;for(t.type=e.randItemByArraySeed(t.type,["vertical","horizontal"]),a=0;a{e.exports=function(e){e.effect("lines3",{seed:null,type:null,blend:"opacity",colormap:"random",fadeinout:1,step:[1,2,4,8,16,32,64],size:[7,210],waves:[1,21],amplitude:[0,42],weight:[1,32]},(function(e,t){var n,r,a,i,o,s;if(t.type=e.randItemByArraySeed(t.type,["vertical","horizontal"]),t.fadeinout=e.randIntByArraySeed(null,t.fadeinout),t.size=e.randByArraySeed(t.size),t.amplitude=e.randByArraySeed(t.amplitude),t.waves=e.randIntByArraySeed(t.waves),t.step=e.randItemByArraySeed(null,t.step),t.weight=e.randIntByArraySeed(t.weight),e.colormap.init(t.colormap,t.size,(function(e){t.colormap=e})),"horizontal"===t.type)for(r=0;r{e.exports=function(e){e.effect("noise",{seed:null,blend:"lighten",mode:"monochrome",channels:[255,255,255],opacity:128},(function(e,t){var n,r,a,i;switch(t.mode){case"color":e.walk((function(i){return n=t.channels[0]?e.randIntSeed(0,t.channels[0]):0,r=t.channels[1]?e.randIntSeed(0,t.channels[1]):0,a=t.channels[2]?e.randIntSeed(0,t.channels[2]):0,[n,r,a,t.opacity]}));break;case"monochrome":e.walk((function(n){return[i=e.randIntSeed(0,255),i,i,t.opacity]}));break;case"colorize":e.walk((function(n){return i=e.randIntSeed(0,255),e.point.colorize([i,i,i,t.opacity],t.rgba)}))}return t}))}},9240:e=>{e.exports=function(e){e.effect("pyramids",{seed:null,blend:e.blendSafe,rgba:"randomalpha",origin:"random",dynamic:"random",count:[1,77],size:[[1,92],[1,92]]},(function(e,t){var n,r;for(t.dynamic=e.randItemByArraySeed(t.dynamic,[!0,!1]),t.size[0]=e.randByArraySeed(t.size[0],!1),t.size[1]=e.randByArraySeed(t.size[1],!1),n=0;n{e.exports=function(e){e.effect("spheres",{seed:null,blend:e.blendFlat,rgba:e.randomRGBA,origin:"random",dynamic:!0,count:[1,77],size:[[1,92],[1,92]]},(function(e,t){var n,r;for(t.dynamic=e.randItemByArraySeed(t.dynamic,[!0,!1]),t.size[0]=e.randByArraySeed(t.size[0],!1),t.size[1]=e.randByArraySeed(t.size[1],!1),n=0;n{e.exports=function(e){e.effect("squares",{seed:null,blend:e.blendFlat,rgba:"randomalpha",origin:"random",count:[1,42],size:[[1,77],[1,77]]},(function(e,t){var n,r;for(t.size[0]=e.randByArraySeed(t.size[0],!1),t.size[1]=e.randByArraySeed(t.size[1],!1),n=0;n{e.exports=function(e){var t={seed:null,blend:e.blendFlat,rgba:e.randomRGBA,colorize:null,size:[1,7],opacity:1};e.effect("subplasma",t,(function(e,t){var n,r,a,i,o,s,u=[],c=e.texture.width,l=c,d=1<c&&(d=c),s=c/d,r=0;r{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){e.effect("waves",{seed:null,blend:e.blendSafe,rgba:"randomalpha",level:[1,100],xsines:[1,14],ysines:[1,14]},(function(e,n){var r,a,i;for(n.xsines=e.randIntByArraySeed(n.xsines,[1,16]),n.ysines=e.randIntByArraySeed(n.ysines,[1,16]),r=0;r{e.exports=function(e){e.effect("xor",{seed:null,blend:"random",rgba:"randomalpha",level:[1,100],zoom:[.1,77]},(function(e,t){var n,r,a,i=e.texture.width,o=e.texture.height;for(t.zoom=e.randIntByArraySeed(t.zoom,[1,10]),n=0;n{e.exports=function(e){e.filter("backlight",{seed:null,channels:[[0,1],[0,1],[0,1],0]},(function(e,t){return t.channels[0]=e.randByArraySeed(t.channels[0]),t.channels[1]=e.randByArraySeed(t.channels[1]),t.channels[2]=e.randByArraySeed(t.channels[2]),t.channels[3]=e.randByArraySeed(t.channels[3]),e.walk((function(e){return[t.channels[0]?255/e[0]*(255/e[0]):e[0],t.channels[1]?255/e[1]*(255/e[1]):e[1],t.channels[2]?255/e[2]*(255/e[2]):e[2],t.channels[3]?255/e[3]*(255/e[3]):e[3]]})),t}))}},6213:e=>{e.exports=function(e){e.filter("blur",{},(function(e,t){return e.do("convolute",{store:!1,transparent:!1,weights:[1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9]}),t}))}},3127:e=>{e.exports=function(e){e.filter("brightness",{seed:null,legacy:!0,adjust:[64,192]},(function(e,t){return t.adjust=e.randByArraySeed(t.adjust),!0===t.legacy?e.walk((function(e){return[Math.min(e[0]+t.adjust,255),Math.min(e[1]+t.adjust,255),Math.min(e[2]+t.adjust,255),e[3]]})):e.walk((function(e){return[e[0]=Math.min(255/e[0]*(t.adjust/255),255),e[1]=Math.min(255/e[1]*(t.adjust/255),255),e[2]=Math.min(255/e[2]*(t.adjust/255),255),e[3]]})),t}))}},6590:e=>{e.exports=function(e){e.filter("channel",{channels:[[.2,.8],[.4,1],[.8,1.2]]},(function(e,t){return t.channels[0]=e.randByArraySeed(t.channels[0],!0),t.channels[1]=e.randByArraySeed(t.channels[1],!0),t.channels[2]=e.randByArraySeed(t.channels[2],!0),e.walk((function(e){return[e[0]*t.channels[0],e[1]*t.channels[1],e[2]*t.channels[2],e[3]]})),t}))}},5891:e=>{e.exports=function(e){e.filter("colorize",{seed:null,level:[32,192],rgba:"random",colormap:null},(function(e,t){return t.level=e.randByArraySeed(t.level),e.colormap.init(t.colormap,255,(function(e){t.colormap=e})),e.walk((function(n){var r,a;return e.colormap.data?(r=(n[0]+n[1]+n[2])/3,(a=e.colormap.get(r,t.rgba))[3]=n[3],a):e.point.colorize(n,t.rgba,t.level)})),t}))}},5093:e=>{e.exports=function(e){e.filter("contrast",{seed:null,adjust:[64,192]},(function(e,t){t.adjust=e.randByArraySeed(t.adjust);var n=(100+t.adjust)/100;return e.walk((function(e){return e[0]=255*((e[0]/255-.5)*n+.5),e[1]=255*((e[1]/255-.5)*n+.5),e[2]=255*((e[2]/255-.5)*n+.5),[Math.max(Math.min(e[0],255),0),Math.max(Math.min(e[1],255),0),Math.max(Math.min(e[2],255),0),e[3]]})),t}))}},2307:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){e.filter("convolute",{blend:"opacity",transparent:!1,weights:"default1"},(function(e,n){if("object"!=t(n.weights)&&"string"!=typeof n.weights||null==n.weights)return n;if("string"==typeof n.weights[0]&&(n.weights=e.randByArraySeed(n.weights)),"string"==typeof n.weights)if("random"===n.weights){var r=-32,a=32;n.weights=[e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a)],e.log(n.weights.join(", "))}else{var i={edgedetect1:[-1,-1,-1,-1,8,-1,-1,-1,-1],edgedetect2:[0,1,0,1,-4,1,0,1,0],edgedetect3:[1,0,-1,0,0,0,-1,0,1],sharpen1:[0,-1,0,-1,5,-1,0,-1,0],sharpen2:[-1,-1,-1,-1,9,-1,-1,-1,-1],emboss1:[1,1,1,1,.7,-1,-1,-1,-1],emboss2:[-2,-1,0,-1,1,1,0,1,2],emboss3:[10,3,-2,-8,-5,7,-3,-12,11],emboss4:[-6,11,-9,-9,0,-4,12,8,-2],sobel1:[-1,-2,-1,0,0,0,1,2,1],sobel2:[-1,0,1,-2,0,2,-1,0,1],sobel3:[-5,-8,12,-4,-8,-12,9,6,9],default1:[1,-11,-7,5,2,4,4,9,-2],default2:[-5,-21,25,22,31,-16,-2,-21,-10],default3:[1,1,1,1,1,1,1,1,1]};if(null==i[n.weights])return n;n.weights=i[n.weights]}var o,s,u,c,l,d,f,h,p,y,g,m,b=Math.round(Math.sqrt(n.weights.length)),x=Math.floor(b/2),v=n.transparent?1:0,S=new e.buffer;S.clear();var M=e.texture.size();for(s=0;s{e.exports=function(e){e.filter("edgedetect",{seed:null,type:[1,3]},(function(e,t){return t.type=e.randByArraySeed(t.type),e.do("convolute",{store:!1,transparent:!1,weights:"edgedetect"+t.type}),t}))}},4402:e=>{e.exports=function(e){e.filter("emboss",{seed:null,type:[1,4]},(function(e,t){return t.type=e.randByArraySeed(t.type),e.do("convolute",{store:!1,transparent:!1,weights:"emboss"+t.type}),t}))}},4998:e=>{e.exports=function(e){e.filter("gamma",{seed:null,adjust:[.1,2]},(function(e,t){return t.adjust=e.randByArraySeed(t.adjust,!0),e.walk((function(e){return e[0]=255*Math.pow(e[0]/255,1/t.adjust),e[1]=255*Math.pow(e[1]/255,1/t.adjust),e[2]=255*Math.pow(e[2]/255,1/t.adjust),[e[0],e[1],e[2],e[3]]})),t}))}},6966:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){e.filter("grayscale",{seed:null,method:["ligthness","average","luminosity"]},(function(e,n){switch("string"==typeof n&&(n={method:n}),"object"==t(n.method)&&(n.method=e.randItemSeed(n.method)),n.method){case"ligthness":e.walk((function(e){var t=Math.max(e[0],e[1],e[2])+Math.min(e[0],e[1],e[2]);return[t,t,t,e[3]]}));break;case"average":e.walk((function(e){var t=(e[0]+e[1]+e[2])/3;return[t,t,t,e[3]]}));break;case"luminosity":e.walk((function(t){var n=e.calc.luminance(t);return[n,n,n,t[3]]}))}return n}))}},490:(e,t,n)=>{e.exports=function(e){n(9598)(e),n(6213)(e),n(3127)(e),n(6590)(e),n(5891)(e),n(5093)(e),n(2307)(e),n(3458)(e),n(4402)(e),n(4998)(e),n(6966)(e),n(1537)(e),n(173)(e),n(9706)(e),n(7113)(e),n(7772)(e),n(5710)(e),n(4977)(e)}},1537:e=>{e.exports=function(e){e.filter("invert",{seed:null,channels:[[0,1],[0,1],[0,1],0]},(function(e,t){return t.channels[0]=e.randByArraySeed(t.channels[0]),t.channels[1]=e.randByArraySeed(t.channels[1]),t.channels[2]=e.randByArraySeed(t.channels[2]),e.walk((function(e){return[t.channels[0]?255-e[0]:e[0],t.channels[1]?255-e[1]:e[1],t.channels[2]?255-e[2]:e[2],t.channels[3]?255-e[3]:e[3]]})),t}))}},173:e=>{e.exports=function(e){e.filter("opacity",{seed:null,adjust:[32,192]},(function(e,t){return t.adjust=e.randByArraySeed(t.adjust),e.walk((function(e){return e[3]=t.adjust,e})),t}))}},9706:e=>{e.exports=function(e){e.filter("sharpen",{seed:null,type:[1,2]},(function(e,t){return t.type=e.randByArraySeed(t.type),e.do("convolute",{store:!1,transparent:!1,weights:"sharpen"+t.type}),t}))}},7113:e=>{e.exports=function(e){e.filter("sinecolor",{seed:null,sines:[1,10],channel:[0,2]},(function(e,t){return t.sines=e.randByArraySeed(t.sines),t.channel=e.randByArraySeed(t.channel),e.walk((function(n){var r=parseInt(255*Math.sin(n[t.channel]*(e.calc.pi/180)*(255/360)*t.sines));return n[t.channel]=Math.abs(r),n})),t}))}},7772:e=>{e.exports=function(e){e.filter("sobel",{seed:null,type:[1,3]},(function(e,t){return t.type=e.randByArraySeed(t.type),e.do("convolute",{store:!1,transparent:!1,weights:"sobel"+t.type}),t}))}},5710:e=>{e.exports=function(e){e.filter("threshold",{seed:null,adjust:[64,128]},(function(e,t){return t.adjust=e.randByArraySeed(t.adjust),e.walk((function(e){var n=.2126*e[0]+.7152*e[1]+.0722*e[2]<=t.adjust?0:255;return[n,n,n,e[3]]})),t}))}},4977:e=>{e.exports=function(e){e.filter("vibrance",{seed:null,adjust:[64,192]},(function(e,t){t.adjust=e.randByArraySeed(t.adjust);var n=-1*t.adjust;return e.walk((function(e){var t=(e[0]+e[1]+e[2])/3,r=Math.max(e[0],e[1],e[2]),a=2*Math.abs(r-t)/255*n/100;return e[0]!==r&&(e[0]+=(r-e[0])*a),e[1]!==r&&(e[1]+=(r-e[1])*a),e[2]!==r&&(e[2]+=(r-e[2])*a),[e[0],e[1],e[2],e[3]]})),t}))}},2582:e=>{e.exports=function(e){e.function("copy",{layer:null},(function(e,t){return"number"==typeof t&&(t={layer:t}),null===t.layer&&(t.layer=e.layers.length-1),null!=e.layers[t.layer]&&(e.texture.data=e.layerCopy(t.layer)),t}))}},40:e=>{e.exports=function(e){e.function("equirectangular",{layer:null},(function(e,t){null===t.layer&&(t.layer=e.layers.length-1);var n,r,a,i,o,s,u,c,l,d,f,h=new e.buffer,p=e.texture.width,y=e.texture.height,g=Math.PI,m=y/2,b=p/2,x=y/2,v=e.texture.size();for(n=0;n{e.exports=function(e){n(2582)(e),n(40)(e),n(5551)(e),n(9174)(e),n(4013)(e),n(9451)(e),n(1234)(e)}},5551:e=>{e.exports=function(e){e.function("map",{seed:null,xamount:[4,512],yamount:[4,512],xchannel:[0,2],ychannel:[0,2],xlayer:0,ylayer:0},(function(e,t){t.xamount=e.randByArraySeed(t.xamount),t.yamount=e.randByArraySeed(t.yamount),t.xchannel=e.randByArraySeed(t.xchannel),t.ychannel=e.randByArraySeed(t.ychannel),t.xlayer=e.randByArraySeed(t.xlayer),t.ylayer=e.randByArraySeed(t.ylayer);var n,r,a,i,o,s,u,c,l=new e.buffer,d=e.texture.width,f=e.texture.height,h=e.texture.size(),p=e.layers[t.xlayer],y=e.layers[t.ylayer];if(p&&p[0]){for(n=0;n>16)):n+u*t.xamount*d/(d*d),i=f%16==0?e.wrapy(r+(c*t.yamount*f>>16)):r+c*t.yamount*f/(f*f),o=e.point.get(a,i),l.data[s]=o[0],l.data[s+1]=o[1],l.data[s+2]=o[2],l.data[s+3]=o[3];for(;h--;)e.texture.data[h]=l.data[h];return t}}))}},9174:e=>{e.exports=function(e){e.function("merge",{blend:"opacity",opacity:null,layer:0},(function(e,t){if(void 0===e.layers[t.layer])return t;var n,r,a,i=e.layers[t.layer];for(r=0;r{e.exports=function(e){e.function("mergeall",{blend:"opacity",firstcopy:!0,opacity:null},(function(e,t){for(var n=e.layers.length,r=0;r<=n;r++)0===r&&!0===t.firstcopy?e.do("copy",{layer:0}):e.do("merge",{blend:t.blend,layer:r,opacity:t.opacity});return t}))}},1234:e=>{e.exports=function(e){e.function("rot90",{seed:null,times:[1,3],blend:e.blendSafe},(function(t,n){return n.type=1,n.angle=90,e.effects.rotate(t,n),n}))}},9451:e=>{e.exports=function(e){e.function("rotate",{seed:null,angle:90,times:[1,3],type:1,blend:e.blendSafe},(function(e,t){t.type=e.randByArraySeed(t.type),null===t.angle?t.angle=e.randItemByArraySeed(t.angle,[90,180,270]):t.angle=e.randByArraySeed(t.angle),t.times=e.randByArraySeed(t.times);var n,r,a,i,o,s,u,c,l,d=new e.buffer,f=e.texture.width,h=e.texture.height,p=t.angle*(Math.PI/180),y=e.texture.size(),g=function(){for(r=0;r{e.exports=function(e){e.shape("circle",(function(e,t,n,r,a){var i,o,s;for(null==a&&(t+=r,n+=r),i=-r;i{e.exports=function(e){e.shape("colorLine",(function(e,t,n,r,a,i,o,s){var u,c,l,d,f,h=i.length,p=Math.sqrt((r-t)*(r-t)+(a-n)*(a-n)),y=(r-t)/p,g=(a-n)/p,m=0,b=0;for(o=o||1,d=0;d{e.exports=function(e){n(6221)(e),n(2673)(e),n(2105)(e),n(5174)(e),n(4374)(e),n(3196)(e)}},2105:e=>{e.exports=function(e){e.shape("line",(function(e,t,n,r,a){var i,o=Math.sqrt((r-t)*(r-t)+(a-n)*(a-n)),s=(r-t)/o,u=(a-n)/o,c=0,l=0;for(i=0;i{e.exports=function(e){e.shape("pyramid",(function(e,t,n,r,a,i,o,s){var u,c,l,d,f=parseInt(r/2,10),h=parseInt(a/2,10);for(1!=i&&(t+=f,n+=h),l=-f;l1&&(c=s?u:o[3],e.point.rgba=[o[0]/255*u,o[1]/255*u,o[2]/255*u,c],e.point.set(t+l,n+d))}))}},4374:e=>{e.exports=function(e){e.shape("rect",(function(e,t,n,r,a,i){var o,s;for(void 0!==i&&(t-=parseInt(r/2,10),n-=parseInt(a/2,10)),o=0;o{e.exports=function(e){e.shape("sphere",(function(e,t,n,r,a,i,o){var s,u,c,l,d;for(null==a&&(t+=r,n+=r),l=-r;l0&&(u=o?255*s:i[3],e.point.rgba=[i[0]*s,i[1]*s,i[2]*s,u],e.point.set(t+l,n+d))}))}},9281:(e,t,n)=>{var r={version:"1.4.16",defaults:{},effects:{},prepare:{},filters:[],presets:{},functions:[],blends:{},shapes:{},colormaps:{},config:{},blendFlat:["lighten","screen","opacity"],blendSafe:["average","lighten","linearburn","linearlight","difference","difference-invert","screen","lineardodge","lineardodge-invert","opacity","exclusion"],randomRGBA:[[0,255],[0,255],[0,255],[64,255]],effect:function(e,t,n,r){this.defaults[e]=t,this.effects[e]=n,this.prepare[e]=r},function:function(e,t,n){this.functions.push(e),this.defaults[e]=t,this.effects[e]=n},filter:function(e,t,n){this.filters.push(e),this.defaults[e]=t,this.effects[e]=n},preset:function(e,t){t.name=e,this.presets[e]=t},event:function(e,t,n){null!=this.events[e]&&(this.events[e][t]=n)},blend:function(e,t){this.blends[e]=t},shape:function(e,t){this.shapes[e]=t},colormap:function(e,t){this.colormaps[e]=t},init:function(e,t,n){return this.getGenerator(e,t,n)}};n(6611)(r),n(5702)(r),n(9395)(r),n(8565)(r),n(3551)(r),n(5265)(r),n(490)(r),n(9136)(r),e.exports=r},9691:(e,t,n)=>{var r,a=n(9281);"undefined"!=typeof window&&(window.tgen=a),void 0!==e.exports?e.exports=a:void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)},6611:e=>{e.exports=function(e){e.blend("opacity",(function(e,t,n){return n})),e.blend("multiply",(function(e,t,n){return n[0]=t[0]*n[0]/255,n[1]=t[1]*n[1]/255,n[2]=t[2]*n[2]/255,n})),e.blend("linearburn",(function(e,t,n){return n[0]=t[0]+n[0]-255,n[1]=t[1]+n[1]-255,n[2]=t[2]+n[2]-255,n})),e.blend("difference",(function(e,t,n){return n[0]=Math.abs(n[0]-t[0]),n[1]=Math.abs(n[1]-t[1]),n[2]=Math.abs(n[2]-t[2]),n})),e.blend("difference-invert",(function(e,t,n){return n[0]=255-Math.abs(n[0]-t[0]),n[1]=255-Math.abs(n[1]-t[1]),n[2]=255-Math.abs(n[2]-t[2]),n})),e.blend("screen",(function(e,t,n){return n[0]=255-(255-t[0])*(255-n[0])/255,n[1]=255-(255-t[1])*(255-n[1])/255,n[2]=255-(255-t[2])*(255-n[2])/255,n})),e.blend("overlay",(function(e,t,n){return n[0]=t[0]>128?255-2*(255-n[0])*(255-t[0])/255:t[0]*n[0]*2/255,n[1]=t[1]>128?255-2*(255-n[1])*(255-t[1])/255:t[1]*n[1]*2/255,n[2]=t[2]>128?255-2*(255-n[2])*(255-t[2])/255:t[2]*n[2]*2/255,n})),e.blend("exclusion",(function(e,t,n){return n[0]=128-2*(t[0]-128)*(n[0]-128)/255,n[1]=128-2*(t[1]-128)*(n[1]-128)/255,n[2]=128-2*(t[2]-128)*(n[2]-128)/255,n})),e.blend("darken",(function(e,t,n){return n[0]=n[0]t[0]?n[0]:t[0],n[1]=n[1]>t[1]?n[1]:t[1],n[2]=n[2]>t[2]?n[2]:t[2],n})),e.blend("lineardodge",(function(e,t,n){return n[0]=t[0]+n[0],n[1]=t[1]+n[1],n[2]=t[2]+n[2],n})),e.blend("lineardodge-invert",(function(e,t,n){return n[0]=255-(n[0]+t[0]),n[1]=255-(n[1]+t[1]),n[2]=255-(n[2]+t[2]),n})),e.blend("linearlight",(function(e,t,n){return n[0]=t[0]+2*n[0]-255,n[1]=t[1]+2*n[1]-255,n[2]=t[2]+2*n[2]-255,n})),e.blend("linearburn",(function(e,t,n){return n[0]=t[0]+n[0]-255,n[1]=t[1]+n[1]-255,n[2]=t[2]+n[2]-255,n})),e.blend("softlight",(function(e,t,n){return n[0]=t[0]>128?255-(255-t[0])*(255-(n[0]-128))/255:t[0]*(n[0]+128)/255,n[1]=t[1]>128?255-(255-t[1])*(255-(n[1]-128))/255:t[1]*(n[1]+128)/255,n[2]=t[2]>128?255-(255-t[2])*(255-(n[2]-128))/255:t[2]*(n[2]+128)/255,n})),e.blend("subbtract",(function(e,t,n){return n[0]=Math.max(t[0]-n[0],0),n[1]=Math.max(t[1]-n[1],0),n[2]=Math.max(t[2]-n[2],0),n})),e.blend("backlight",(function(e,t,n){return t[0]=0===t[0]?.001:t[0],t[1]=0===t[1]?.001:t[1],t[2]=0===t[2]?.001:t[2],n[0]=255/t[0]*(255/n[0]),n[1]=255/t[1]*(255/n[1]),n[2]=255/t[2]*(255/n[2]),n})),e.blend("average",(function(e,t,n){return n[0]=(n[0]+t[0])/2,n[1]=(n[1]+t[1])/2,n[2]=(n[2]+t[2])/2,n})),e.blend("alphamap",(function(e,t,n){return t[3]=(n[0]+n[1]+n[2])/3,t}))}},5702:e=>{e.exports=function(e){e.colormap("blackwhite",(function(){return[{percent:0,rgba:[0,0,0,255]},{percent:25,rgba:[255,255,255,255]},{percent:50,rgba:[0,0,0,255]},{percent:75,rgba:[255,255,255,255]},{percent:100,rgba:[0,0,0,255]}]})),e.colormap("blackwhite2",(function(){return[{percent:0,rgba:[0,0,0,255]},{percent:100,rgba:[255,255,255,255]}]})),e.colormap("grayscale",(function(){return[{percent:0,rgba:[0,0,0,255]},{percent:100,rgba:[255,255,255,255]}]})),e.colormap("elevation",(function(){return[{percent:0,rgba:[252,69,27,255]},{percent:25,rgba:[245,203,39,255]},{percent:50,rgba:[104,253,163,255]},{percent:75,rgba:[27,196,253,255]},{percent:100,rgba:[88,18,252,255]}]})),e.colormap("wiener-challah",(function(){return[{percent:0,rgba:[66,53,66,255]},{percent:25,rgba:[111,68,70,255]},{percent:50,rgba:[163,90,59,255]},{percent:75,rgba:[237,155,43,255]},{percent:100,rgba:[255,240,150,255]}]})),e.colormap("parula",(function(){return[{percent:0,rgba:[53,42,135,255]},{percent:12.5,rgba:[3,99,225,255]},{percent:25,rgba:[20,133,212,255]},{percent:37.5,rgba:[6,167,198,255]},{percent:50,rgba:[56,185,158,255]},{percent:62.5,rgba:[146,191,115,255]},{percent:75,rgba:[217,186,86,255]},{percent:87.5,rgba:[252,206,46,255]},{percent:100,rgba:[249,251,14,255]}]})),e.colormap("dawn",(function(){return[{percent:0,rgba:[255,255,192,255]},{percent:25,rgba:[255,255,128,255]},{percent:50,rgba:[255,128,128,255]},{percent:75,rgba:[128,0,128,255]},{percent:100,rgba:[0,0,128,255]}]})),e.colormap("dusk",(function(){return[{percent:0,rgba:[255,255,255,255]},{percent:25,rgba:[255,128,255,255]},{percent:50,rgba:[128,0,255,255]},{percent:75,rgba:[0,0,128,255]},{percent:100,rgba:[0,0,0,255]}]})),e.colormap("kryptonite",(function(){return[{percent:0,rgba:[255,255,255,255]},{percent:25,rgba:[255,255,128,255]},{percent:50,rgba:[128,255,0,255]},{percent:75,rgba:[0,128,0,255]},{percent:100,rgba:[0,0,0,255]}]})),e.colormap("ice",(function(){return[{percent:0,rgba:[255,255,255,255]},{percent:25,rgba:[128,255,255,255]},{percent:50,rgba:[0,128,255,255]},{percent:75,rgba:[0,0,128,255]},{percent:100,rgba:[0,0,0,255]}]})),e.colormap("fire",(function(){return[{percent:0,rgba:[255,255,255,255]},{percent:25,rgba:[255,255,128,255]},{percent:50,rgba:[255,128,0,255]},{percent:75,rgba:[128,0,0,255]},{percent:100,rgba:[0,0,0,255]}]})),e.colormap("redblue",(function(){return[{percent:0,rgba:[96,0,0,255]},{percent:25,rgba:[192,0,0,255]},{percent:50,rgba:[255,255,255,255]},{percent:75,rgba:[0,0,192,255]},{percent:100,rgba:[0,0,96,255]}]})),e.colormap("seashore",(function(){return[{percent:0,rgba:[255,255,192,255]},{percent:25,rgba:[255,255,128,255]},{percent:50,rgba:[128,255,128,255]},{percent:75,rgba:[0,128,128,255]},{percent:100,rgba:[0,0,128,255]}]}))}},9395:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){e.getGenerator=function(n,r,a){var i=this,o={},s=[],u=null,c={shape:i.shapes,effects:Object.keys(i.effects),layers:[],normalize:a||"limitless"},l=function(){null==n&&(n=256),n<1&&(n=256),r<1&&(r=256),n>2048&&(n=2048),r>2048&&(r=2048),null==r&&(r=n),u=(n+r)/2};l(),c.log=function(){if(this.debug&&arguments.length>0){for(var e=[],t=0;t=t?r=e-(n=Math.floor(a)*t):e<0?(n=Math.ceil(a)*t,(r=t-Math.abs(e-n))>=t?r-=t:r):void 0},this.offset=function(e,t){return e=Math.round(e),t=Math.round(t),(e<0||e>=this.width)&&(e=this.pattern(e,this.width)),(t<0||t>=this.height)&&(t=this.pattern(t,this.height)),t*this.width*this.components+e*this.components},this.set=function(e,t,n){var r=this.offset(e,t);this.data[r]=n[0],this.data[r+1]=n[1],this.data[r+2]=n[2],this.data[r+3]=n[3]},this.get=function(e,t){var n=this.offset(e,t);return[this.data[n],this.data[n+1],this.data[n+2],this.data[n+3]]},this.alpha=function(e){var t;if("sphere"===e)for(;t;)c.texture.data[t]=.5,t-=4},this.canvas=function(e){for(var t=this.size(),n=e.getContext("2d").getImageData(0,0,this.width,this.height);t--;)c.texture.data[t]=n.data[t]},null===this.data&&this.clear()},c.texture=new c.buffer,c.layerCopy=function(e){for(var t=this.layers[e],n=[],r=t.length;r--;)n[r]=t[r];return n},c.minMaxNormalize=function(e,t){return{min:Math.min(e,t),max:Math.max(e,t)}},c.randInt=function(e,t,n){var r,a=c.minMaxNormalize(e,t);return e=a.min,t=a.max,!0===n?(e=Math.round(e/2),t=Math.round(t/2),r=2):r=1,r*(Math.floor(Math.random()*(t-e+1))+e)},c.randIntSeed=function(e,t,n){var r,a=c.minMaxNormalize(e,t);return e=a.min,t=a.max,!0===n?(e=Math.round(e/2),t=Math.round(t/2),r=2):r=1,r*(Math.floor(c.calc.randomseed()*(t-e+1))+e)},c.randReal=function(e,t){var n=c.minMaxNormalize(e,t);return e=n.min,t=n.max,Math.random()*(t-e)+e},c.randRealSeed=function(e,t){var n=c.minMaxNormalize(e,t);return e=n.min,t=n.max,c.calc.randomseed()*(t-e)+e},c.randByArray=function(e,n){return null==e||"object"!==t(e)||void 0===e[0]?(c.calc.seed++,e):e=void 0!==n?c.randReal(e[0],e[1]):c.randInt(e[0],e[1])},c.randByArraySeed=function(e,n,r){return null==e||"object"!==t(e)||void 0===e[0]?(c.calc.seed++,e):e=n?c.randRealSeed(e[0],e[1]):c.randIntSeed(e[0],e[1],r)},c.randIntByArraySeed=function(e,n,r){return null!=e&&"random"!==e||(e=n),"object"!==t(e)?(c.calc.seed++,e):e=c.randIntSeed(e[0],e[1],r)},c.randRealByArraySeed=function(e,n){return null!=e&&"random"!==e||(e=n),"object"!==t(e)?(c.calc.seed++,e):e=c.randRealSeed(e[0],e[1])},c.randItemSeed=function(e){if("object"!==t(e)||void 0===e[0])return c.calc.seed++,e;var n=e.length;return e[c.randIntSeed(0,n-1)]},c.randItemByArray=function(e,t){if(null!=e&&"random"!==e)return e;var n=t.length;return t[c.randInt(0,n-1)]},c.randItemByArraySeed=function(e,t){if(null!=e&&"random"!==e)return c.calc.seed++,e;var n=t.length;return t[c.randIntSeed(0,n-1)]},c.randProperty=function(e,t){if(null!=e&&"random"!==e)return c.calc.seed++,e;var n=Object.keys(t);return n[c.randByArraySeed([0,n.length-1])]},c.rgba=function(e){return"random"!==e&&null!=e||(e=[[0,255],[0,255],[0,255],255]),"randomalpha"===e&&(e=[[0,255],[0,255],[0,255],[128,255]]),void 0!==e[0]&&null!==e[0]||(e[0]=0),void 0!==e[1]&&null!==e[1]||(e[1]=0),void 0!==e[2]&&null!==e[2]||(e[2]=0),void 0!==e[3]&&null!==e[3]||(e[3]=255),e[0]=c.randByArraySeed(e[0]),e[1]=c.randByArraySeed(e[1]),e[2]=c.randByArraySeed(e[2]),e[3]=c.randByArraySeed(e[3]),e[3]%1!=0&&(e[3]=Math.round(255*e[3])),1==e[3]&&(e[3]=255),e};return c.findClosestIndex=function(e,t,n){for(var r=t;r>=0&&r<=e.length-1;r+=n)if(e[r])return r;return e.length-1},c.easing={PI:3.1415926535,c1:1.70158,c2:1.525*this.c1,c3:this.c1+1,c4:2*this.PI/3,c5:2*this.PI/4.5,InQuad:function(e){return e*e},OutQuad:function(e){return 1-(1-e)*(1-e)},InOutQuad:function(e){return e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2},InCubic:function(e){return e*e*e},OutCubic:function(e){return 1-Math.pow(1-e,3)},InOutCubic:function(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2},InQuart:function(e){return e*e*e*e},OutQuart:function(e){return 1-Math.pow(1-e,4)},InOutQuart:function(e){return e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2},InQuint:function(e){return e*e*e*e*e},OutQuint:function(e){return 1-Math.pow(1-e,5)},InOutQuint:function(e){return e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2},InSine:function(e){return 1-Math.cos(e*this.PI/2)},OutSine:function(e){return Math.sin(e*this.PI/2)},InOutSine:function(e){return-(Math.cos(this.PI*e)-1)/2},InExpo:function(e){return 0===e?0:Math.pow(2,10*e-10)},OutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},InOutExpo:function(e){return 0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2},InCirc:function(e){return 1-Math.sqrt(1-Math.pow(e,2))},OutCirc:function(e){return Math.sqrt(1-Math.pow(e-1,2))},InOutCirc:function(e){return e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2},InBack:function(e){return this.c3*e*e*e-this.c1*e*e},OutBack:function(e){return 1+this.c3*Math.pow(e-1,3)+this.c1*Math.pow(e-1,2)},InOutBack:function(e){return e<.5?Math.pow(2*e,2)*(2*(this.c2+1)*e-this.c2)/2:(Math.pow(2*e-2,2)*((this.c2+1)*(2*e-2)+this.c2)+2)/2},InElastic:function(e){return 0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*this.c4)},OutElastic:function(e){return 0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*this.c4)+1},InOutElastic:function(e){return 0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*this.c5)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*this.c5)/2+1},InBounce:function(e){return 1-this.OutBounce(1-e)},OutBounce:function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},InOutBounce:function(e){return e<.5?(1-this.OutBounce(1-2*e))/2:(1+this.OutBounce(2*e-1))/2}},c.calc={seed:void 0,pi:3.1415927,luminance:function(e){return.21*e[0]+.72*e[1]+.07*e[2]},randomseed:function(e){void 0!==e?this.seed=e:void 0===this.seed&&(this.seed=c.randInt(1,Number.MAX_SAFE_INTEGER));var t=1e4*Math.sin(this.seed++);return t-Math.floor(t)},normalize1:function(e){return c.calc.normalize(e,0,1)},normalize255:function(e){return c.calc.normalize(e,0,255)},normalize:function(e,t,n){return e>n?n:e1&&(u=1),u}}},c.colormap={data:null,easing:null,reverse:!1,size:255,init:function(e,r,a){if(this.data=null,this.size=null==r?n:r,null==e||null==e)return e;var o;if("object"==t(e))if("object"==t(e[0]))for(var s in e)(o=e[s]).rgba=c.rgba(o.rgba),e[s]=o;else e=c.randItemSeed(e);if("random"===e&&(e=this.random()),"string"==typeof e&&("!"==e.charAt(0)&&(e=e.substring(1),this.reverse=!0),"function"==typeof i.colormaps[e])){var u=i.colormaps[e](r);this.data=this.render(u)}"object"==t(e)&&(this.data=this.render(e)),"function"==typeof a&&a(e)},random:function(e){e=e||c.randIntSeed(2,7);for(var t=[],n=0;n<=e;n++)t[n]={percent:parseInt(n/e*100),rgba:[c.randIntSeed(0,255),c.randIntSeed(0,255),c.randIntSeed(0,255),255]};return t},render:function(e){for(var t=[],n=0;n{e.exports=function(e){e.effect("test-pattern",{},(function(e,t){var n,r=e.texture.width,a=e.texture.height;return e.point.blend="opacity",e.texture.clear(),e.point.rgba=[255,255,155,255],e.shape.rect(e,1,1,r-2,a-2),n=20,e.point.rgba=[0,150,0,153],e.shape.rect(e,2,2,n,n),e.shape.rect(e,r-n-2,2,n,n),e.shape.rect(e,2,a-2-n,n,n),e.shape.rect(e,r-2-n,a-2-n,n,n),e.point.rgba=[20,20,10,51],e.shape.rect(e,r/2,a/2,178,178,!0),e.point.rgba=[10,20,210,178],e.shape.rect(e,r-5,a-5,10,10),n=20,e.point.rgba=[10,10,210,250],e.shape.line(e,n,n,r-n,a-n),e.shape.line(e,r-n,n,n,a-n),e.shape.line(e,0,a/2,r,a/2),e.shape.line(e,r/2,0,r/2,a),e.point.rgba=[255,55,55,128],e.shape.rect(e,10,10,r-20,a-20),e.point.rgba=[0,0,255,76],e.shape.rect(e,r-2,a-2,4,4),e.point.rgba=[255,255,255,255],e.point.set(0,0),e.point.set(r-1,0),e.point.set(0,a-1),e.point.set(r-1,a-1),e.point.rgba=[25,25,0,51],e.shape.circle(e,r/4,a/4,r/4,!0),e.point.rgba=[255,255,0,25],e.shape.circle(e,r,a,r,!0),e.shape.sphere(e,r/4,a-a/4,r/2,!0,[255,0,0,0],!0),e.shape.sphere(e,r/2,a-a/4,r/2,!0,[0,255,0,0],!0),e.shape.sphere(e,r-r/4,a-a/4,r/2,!0,[255,255,255,0],!0),e.shape.pyramid(e,r-r/4,a/4,r/2,a/2,!0,[0,0,0,255],!0),e.do("brightness",{adjust:50}),e.do("vibrance",{adjust:100}),e.do("contrast",{adjust:20}),t})),e.effect("test-all",{},(function(e,t){var n;e.normalize="limitless";var r=0,a=["test-all","test-pattern","copy","merge","mergeall"];for(var i in e.effects)n=e.effects[i],a.indexOf(n)<0&&(e.do(n),e.layers[r++]=e.texture.export());return t}))}}},t={};(function n(r){var a=t[r];if(void 0!==a)return a.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports})(9691)})(); \ No newline at end of file +(()=>{var e={9377:e=>{e.exports=function(e){e.effect("checkerboard",{seed:null,blend:e.blendFlat(),rgba:"randomalpha",even:"random",size:[[2,32],[2,32]]},(function(e,t){t.even=e.randItemByArraySeed(t.even,[!0,!1]);var n,r,a,i,o,s,u=e.texture.width,c=e.texture.height;"number"==typeof t.size?n=r=t.size:(n=t.size[0]=e.randByArraySeed(t.size[0],null,!0),r=t.size[1]=e.randByArraySeed(t.size[1],null,!0));var l=Math.round(u/n),d=Math.round(c/r),f=function(t,n){for(a=0;a{e.exports=function(e){e.effect("circles",{seed:null,blend:e.blendFlat(),rgba:"randomalpha",origin:"random",count:[1,42],size:[[1,42],[1,42]]},(function(e,t){var n,r;for(t.size[0]=e.randByArraySeed(t.size[0],!1),t.size[1]=e.randByArraySeed(t.size[1],!1),n=0;n{e.exports=function(e){e.effect("clouds",{seed:null,blend:e.blendSafe(),rgba:"randomalpha",roughness:[1,32],colormap:null},(function(e,t){t.roughness=e.randByArraySeed(t.roughness);var n,r,a,i,o,s,u,c,l,d,f,h,p=e.texture.width,y=e.texture.height,g=[],m=function(e,t,n){return e=Math.round(e),t=Math.round(t),e<0&&(e=p+e),e>=p&&(e-=p),t<0&&(t=y+t),t>=y&&(t-=y),void 0!==n&&(g[e][t]=n),g[e][t]},b=function(n){return(e.randRealSeed(0,1)-.5)*(n/(p+p)*t.roughness)};for(function(){for(n=0;n<=p;n++)for(g[n]=[],r=0;r<=y;r++)g[n][r]=0}(),function o(g){var x=g/2;if(x<=1)return t;for(u=0;u<=p+x;u+=x)for(c=0;c<=y+x;c+=x)l=m(u-x,c-x),d=m(u,c-x),f=m(u-x,c),h=m(u,c),s=m(n=u-x/2,r=c-x/2,e.calc.normalize1((l+d+f+h)/4+b(g))),a=u-g+x/2,m(u-x,r,e.calc.normalize1((l+f+s+m(a,r))/4+b(g))),i=c-g+x/2,m(n,c-x,e.calc.normalize1((l+d+s+m(n,i))/4+b(g)));o(x)}(p),e.colormap.init(t.colormap,255,(function(e){t.colormap=e})),n=0;n{e.exports=function(e){e.effect("colorbar",{seed:null,blend:e.blendFlat(),type:"random",colormap:"random",mirror:!0},(function(e,t){t.type=e.randItemByArraySeed(t.type,["vertical","horizontal"]);var n,r,a,i=e.texture.width,o=e.texture.height,s="horizontal"==t.type?i:o;if(e.colormap.init(t.colormap,s,(function(e){t.colormap=e})),"horizontal"==t.type)for(n=0;n{e.exports=function(e){e.effect("crosshatch",{seed:null,blend:e.blendSafe(),rgba:"randomalpha",level:[1,100],xadjust:"random",yadjust:"random"},(function(e,t){var n,r,a;for(t.xadjust=e.randRealByArraySeed(t.xadjust,[.1,121]),t.yadjust=e.randRealByArraySeed(t.yadjust,[.1,121]),n=0;n{e.exports=function(e){e.effect("dots",{seed:null,blend:e.blendSafe(),gridX:[2,64],gridY:[2,64],size:[1,250],rgba:"randomalpha",shape:"sphere",dynamic:!0,xsines:[1,16],ysines:[1,16]},(function(e,t){t.gridX=e.randByArraySeed(t.gridX),t.gridY=e.randByArraySeed(t.gridY),t.xsines=e.randIntByArraySeed(t.xsines,[1,16]),t.ysines=e.randIntByArraySeed(t.ysines,[1,16]),t.shape=e.randItemByArraySeed(t.shape,["sphere","pyramid","rect","circle"]);var n,r,a,i,o=e.randByArraySeed(t.size)/100,s=e.texture.width,u=e.texture.height,c=s/t.gridX,l=u/t.gridY,d=c/2,f=l/2;for(n=1;n<=t.gridX;n++)for(r=1;r<=t.gridY;r++)switch(i=(a=o*(c+l)/2/2)-a/2*Math.sin(n/t.gridX*t.xsines*2*e.calc.pi)+a/2*Math.sin(r/t.gridY*t.ysines*2*e.calc.pi),t.shape){case"sphere":e.shape.sphere(e,n*c-d,r*l-f,2*i,!0,t.rgba,t.dynamic);break;case"pyramid":e.shape.pyramid(e,n*c-d,r*l-f,i,i,!0,t.rgba,t.dynamic);break;case"rect":e.shape.rect(e,n*c-d,r*l-f,i,i,!0,t.rgba,t.dynamic);break;default:i/=2,e.shape.circle(e,n*c-d,r*l-f,i,!0)}return t}))}},2855:e=>{e.exports=function(e){e.effect("fill",{seed:null,blend:"opacity",rgba:"randomalpha"},(function(e,t){return e.shape.rect(e,1,1,e.texture.width,e.texture.height),t}))}},743:e=>{e.exports=function(e){e.effect("mandelbrot",{seed:null,blend:"opacity",rgba:"randomalpha",iteration:[8,512],skip:[0,8]},(function(e,t){t.skip=e.randByArraySeed(t.skip),t.iteration=e.randByArraySeed(t.iteration);var n,r,a,i=e.texture.width,o=e.texture.height,s=t.rgba[0],u=t.rgba[1],c=t.rgba[2],l=256/s,d=256/u,f=256/c,h=t.iteration,p=0,y=0,g=0,m=0,b=0,x=0;for(n=0;n4);a++)m=2*g*m+y,g=b-x+p;a>t.skip&&(e.point.rgba=[a%s*l,a%u*d,a%c*f,e.point.rgba[3]],e.point.set(r,n))}return t}))}},5265:(e,t,n)=>{e.exports=function(e){n(9377)(e),n(5405)(e),n(2261)(e),n(4283)(e),n(7891)(e),n(8988)(e),n(2855)(e),n(743)(e),n(1800)(e),n(4191)(e),n(8375)(e),n(8806)(e),n(9240)(e),n(7301)(e),n(6191)(e),n(2163)(e),n(6444)(e),n(5800)(e)}},1800:e=>{e.exports=function(e){e.effect("lines",{seed:null,blend:e.blendFlat(),rgba:"randomalpha",size:[77,221],count:[21,512],freq1s:[4,221],freq1c:[4,221],freq2s:[4,221],freq2c:[4,221]},(function(e,t){var n,r,a,i,o;for(t.freq1s=e.randByArraySeed(t.freq1s,!0),t.freq1c=e.randByArraySeed(t.freq1c,!0),t.freq2s=e.randByArraySeed(t.freq2s,!0),t.freq2c=e.randByArraySeed(t.freq2c,!0),t.size=e.randByArraySeed(t.size),n=0;n{e.exports=function(e){e.effect("lines2",{seed:null,blend:e.blendFlat(),rgba:"randomalpha",type:"random",size:[.1,21],count:[1,42]},(function(e,t){var n,r,a;for(t.type=e.randItemByArraySeed(t.type,["vertical","horizontal"]),a=0;a{e.exports=function(e){e.effect("lines3",{seed:null,type:null,blend:"opacity",colormap:"random",fadeinout:1,step:[1,2,4,8,16,32,64],size:[7,210],waves:[1,21],amplitude:[0,42],weight:[1,32]},(function(e,t){var n,r,a,i,o,s;if(t.type=e.randItemByArraySeed(t.type,["vertical","horizontal"]),t.fadeinout=e.randIntByArraySeed(null,t.fadeinout),t.size=e.randByArraySeed(t.size),t.amplitude=e.randByArraySeed(t.amplitude),t.waves=e.randIntByArraySeed(t.waves),t.step=e.randItemByArraySeed(null,t.step),t.weight=e.randIntByArraySeed(t.weight),e.colormap.init(t.colormap,t.size,(function(e){t.colormap=e})),"horizontal"===t.type)for(r=0;r{e.exports=function(e){e.effect("noise",{seed:null,mode:null,blend:"lighten",channels:[255,255,255],opacity:128},(function(e,t){var n,r,a,i;switch(t.mode||(t.mode=e.randItemSeed(["monochrome","color"])),t.mode){case"color":e.walk((function(i){return n=t.channels[0]?e.randIntSeed(0,t.channels[0]):0,r=t.channels[1]?e.randIntSeed(0,t.channels[1]):0,a=t.channels[2]?e.randIntSeed(0,t.channels[2]):0,[n,r,a,t.opacity]}));break;case"monochrome":e.walk((function(n){return[i=e.randIntSeed(0,255),i,i,t.opacity]}));break;case"colorize":e.walk((function(n){return i=e.randIntSeed(0,255),e.point.colorize([i,i,i,t.opacity],t.rgba)}))}return t}))}},9240:e=>{e.exports=function(e){e.effect("pyramids",{seed:null,blend:e.blendSafe(),rgba:"randomalpha",origin:"random",dynamic:"random",count:[1,77],size:[[1,92],[1,92]]},(function(e,t){var n,r;for(t.dynamic=e.randItemByArraySeed(t.dynamic,[!0,!1]),t.size[0]=e.randByArraySeed(t.size[0],!1),t.size[1]=e.randByArraySeed(t.size[1],!1),n=0;n{e.exports=function(e){e.effect("spheres",{seed:null,blend:e.blendFlat(),rgba:"randomalpha",origin:"random",dynamic:!0,count:[1,77],size:[[1,92],[1,92]]},(function(e,t){var n,r;for(t.dynamic=e.randItemByArraySeed(t.dynamic,[!0,!1]),t.size[0]=e.randByArraySeed(t.size[0],!1),t.size[1]=e.randByArraySeed(t.size[1],!1),n=0;n{e.exports=function(e){e.effect("squares",{seed:null,blend:e.blendFlat(),rgba:"randomalpha",origin:"random",count:[1,42],size:[[1,77],[1,77]]},(function(e,t){var n,r;for(t.size[0]=e.randByArraySeed(t.size[0],!1),t.size[1]=e.randByArraySeed(t.size[1],!1),n=0;n{e.exports=function(e){var t={seed:null,blend:e.blendFlat(),rgba:"randomalpha",colorize:null,size:[1,7],opacity:1};e.effect("subplasma",t,(function(e,t){var n,r,a,i,o,s,u=[],c=e.texture.width,l=c,d=1<c&&(d=c),s=c/d,r=0;r{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){e.effect("waves",{seed:null,blend:e.blendSafe(),rgba:"randomalpha",level:[1,100],xsines:[1,14],ysines:[1,14]},(function(e,n){var r,a,i;for(n.xsines=e.randIntByArraySeed(n.xsines,[1,16]),n.ysines=e.randIntByArraySeed(n.ysines,[1,16]),r=0;r{e.exports=function(e){e.effect("xor",{seed:null,blend:"random",rgba:"randomalpha",level:[1,100],zoom:[.1,77]},(function(e,t){var n,r,a,i=e.texture.width,o=e.texture.height;for(t.zoom=e.randIntByArraySeed(t.zoom,[1,10]),n=0;n{e.exports=function(e){e.filter("backlight",{seed:null,channels:[[0,1],[0,1],[0,1],0]},(function(e,t){return t.channels[0]=e.randByArraySeed(t.channels[0]),t.channels[1]=e.randByArraySeed(t.channels[1]),t.channels[2]=e.randByArraySeed(t.channels[2]),t.channels[3]=e.randByArraySeed(t.channels[3]),e.walk((function(e){return[t.channels[0]?255/e[0]*(255/e[0]):e[0],t.channels[1]?255/e[1]*(255/e[1]):e[1],t.channels[2]?255/e[2]*(255/e[2]):e[2],t.channels[3]?255/e[3]*(255/e[3]):e[3]]})),t}))}},6213:e=>{e.exports=function(e){e.filter("blur",{},(function(e,t){return e.do("convolute",{store:!1,transparent:!1,weights:[1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9]}),t}))}},3127:e=>{e.exports=function(e){e.filter("brightness",{seed:null,legacy:!0,adjust:[64,192]},(function(e,t){return t.adjust=e.randByArraySeed(t.adjust),!0===t.legacy?e.walk((function(e){return[Math.min(e[0]+t.adjust,255),Math.min(e[1]+t.adjust,255),Math.min(e[2]+t.adjust,255),e[3]]})):e.walk((function(e){return[e[0]=Math.min(255/e[0]*(t.adjust/255),255),e[1]=Math.min(255/e[1]*(t.adjust/255),255),e[2]=Math.min(255/e[2]*(t.adjust/255),255),e[3]]})),t}))}},6590:e=>{e.exports=function(e){e.filter("channel",{channels:[[.2,.8],[.4,1],[.8,1.2]]},(function(e,t){return t.channels[0]=e.randByArraySeed(t.channels[0],!0),t.channels[1]=e.randByArraySeed(t.channels[1],!0),t.channels[2]=e.randByArraySeed(t.channels[2],!0),e.walk((function(e){return[e[0]*t.channels[0],e[1]*t.channels[1],e[2]*t.channels[2],e[3]]})),t}))}},5891:e=>{e.exports=function(e){e.filter("colorize",{seed:null,level:[32,192],rgba:"random",colormap:null},(function(e,t){return t.level=e.randByArraySeed(t.level),e.colormap.init(t.colormap,255,(function(e){t.colormap=e})),e.walk((function(n){var r,a;return e.colormap.data?(r=(n[0]+n[1]+n[2])/3,(a=e.colormap.get(r,t.rgba))[3]=n[3],a):e.point.colorize(n,t.rgba,t.level)})),t}))}},5093:e=>{e.exports=function(e){e.filter("contrast",{seed:null,adjust:[64,192]},(function(e,t){t.adjust=e.randByArraySeed(t.adjust);var n=(100+t.adjust)/100;return e.walk((function(e){return e[0]=255*((e[0]/255-.5)*n+.5),e[1]=255*((e[1]/255-.5)*n+.5),e[2]=255*((e[2]/255-.5)*n+.5),[Math.max(Math.min(e[0],255),0),Math.max(Math.min(e[1],255),0),Math.max(Math.min(e[2],255),0),e[3]]})),t}))}},2307:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){e.filter("convolute",{blend:"opacity",transparent:!1,weights:"default1"},(function(e,n){if("object"!=t(n.weights)&&"string"!=typeof n.weights||null==n.weights)return n;if("string"==typeof n.weights[0]&&(n.weights=e.randByArraySeed(n.weights)),"string"==typeof n.weights)if("random"===n.weights){var r=-32,a=32;n.weights=[e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a),e.randIntSeed(r,a)],e.log(n.weights.join(", "))}else{var i={edgedetect1:[-1,-1,-1,-1,8,-1,-1,-1,-1],edgedetect2:[0,1,0,1,-4,1,0,1,0],edgedetect3:[1,0,-1,0,0,0,-1,0,1],sharpen1:[0,-1,0,-1,5,-1,0,-1,0],sharpen2:[-1,-1,-1,-1,9,-1,-1,-1,-1],emboss1:[1,1,1,1,.7,-1,-1,-1,-1],emboss2:[-2,-1,0,-1,1,1,0,1,2],emboss3:[10,3,-2,-8,-5,7,-3,-12,11],emboss4:[-6,11,-9,-9,0,-4,12,8,-2],sobel1:[-1,-2,-1,0,0,0,1,2,1],sobel2:[-1,0,1,-2,0,2,-1,0,1],sobel3:[-5,-8,12,-4,-8,-12,9,6,9],default1:[1,-11,-7,5,2,4,4,9,-2],default2:[-5,-21,25,22,31,-16,-2,-21,-10],default3:[1,1,1,1,1,1,1,1,1]};if(null==i[n.weights])return n;n.weights=i[n.weights]}var o,s,u,c,l,d,f,h,p,y,g,m,b=Math.round(Math.sqrt(n.weights.length)),x=Math.floor(b/2),v=n.transparent?1:0,S=new e.buffer;S.clear();var M=e.texture.size();for(s=0;s{e.exports=function(e){e.filter("edgedetect",{seed:null,type:[1,3]},(function(e,t){return t.type=e.randByArraySeed(t.type),e.do("convolute",{store:!1,transparent:!1,weights:"edgedetect"+t.type}),t}))}},4402:e=>{e.exports=function(e){e.filter("emboss",{seed:null,type:[1,4]},(function(e,t){return t.type=e.randByArraySeed(t.type),e.do("convolute",{store:!1,transparent:!1,weights:"emboss"+t.type}),t}))}},4998:e=>{e.exports=function(e){e.filter("gamma",{seed:null,adjust:[.1,2]},(function(e,t){return t.adjust=e.randByArraySeed(t.adjust,!0),e.walk((function(e){return e[0]=255*Math.pow(e[0]/255,1/t.adjust),e[1]=255*Math.pow(e[1]/255,1/t.adjust),e[2]=255*Math.pow(e[2]/255,1/t.adjust),[e[0],e[1],e[2],e[3]]})),t}))}},6966:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){e.filter("grayscale",{seed:null,method:["ligthness","average","luminosity"]},(function(e,n){switch("string"==typeof n&&(n={method:n}),"object"==t(n.method)&&(n.method=e.randItemSeed(n.method)),n.method){case"ligthness":e.walk((function(e){var t=Math.max(e[0],e[1],e[2])+Math.min(e[0],e[1],e[2]);return[t,t,t,e[3]]}));break;case"average":e.walk((function(e){var t=(e[0]+e[1]+e[2])/3;return[t,t,t,e[3]]}));break;case"luminosity":e.walk((function(t){var n=e.calc.luminance(t);return[n,n,n,t[3]]}))}return n}))}},490:(e,t,n)=>{e.exports=function(e){n(9598)(e),n(6213)(e),n(3127)(e),n(6590)(e),n(5891)(e),n(5093)(e),n(2307)(e),n(3458)(e),n(4402)(e),n(4998)(e),n(6966)(e),n(1537)(e),n(173)(e),n(9706)(e),n(7113)(e),n(7772)(e),n(5710)(e),n(4977)(e)}},1537:e=>{e.exports=function(e){e.filter("invert",{seed:null,channels:[[0,1],[0,1],[0,1],0]},(function(e,t){return t.channels[0]=e.randByArraySeed(t.channels[0]),t.channels[1]=e.randByArraySeed(t.channels[1]),t.channels[2]=e.randByArraySeed(t.channels[2]),e.walk((function(e){return[t.channels[0]?255-e[0]:e[0],t.channels[1]?255-e[1]:e[1],t.channels[2]?255-e[2]:e[2],t.channels[3]?255-e[3]:e[3]]})),t}))}},173:e=>{e.exports=function(e){e.filter("opacity",{seed:null,adjust:[32,192]},(function(e,t){return t.adjust=e.randByArraySeed(t.adjust),e.walk((function(e){return e[3]=t.adjust,e})),t}))}},9706:e=>{e.exports=function(e){e.filter("sharpen",{seed:null,type:[1,2]},(function(e,t){return t.type=e.randByArraySeed(t.type),e.do("convolute",{store:!1,transparent:!1,weights:"sharpen"+t.type}),t}))}},7113:e=>{e.exports=function(e){e.filter("sinecolor",{seed:null,sines:[1,10],channel:[0,2]},(function(e,t){return t.sines=e.randByArraySeed(t.sines),t.channel=e.randByArraySeed(t.channel),e.walk((function(n){var r=parseInt(255*Math.sin(n[t.channel]*(e.calc.pi/180)*(255/360)*t.sines));return n[t.channel]=Math.abs(r),n})),t}))}},7772:e=>{e.exports=function(e){e.filter("sobel",{seed:null,type:[1,3]},(function(e,t){return t.type=e.randByArraySeed(t.type),e.do("convolute",{store:!1,transparent:!1,weights:"sobel"+t.type}),t}))}},5710:e=>{e.exports=function(e){e.filter("threshold",{seed:null,adjust:[64,128]},(function(e,t){return t.adjust=e.randByArraySeed(t.adjust),e.walk((function(e){var n=.2126*e[0]+.7152*e[1]+.0722*e[2]<=t.adjust?0:255;return[n,n,n,e[3]]})),t}))}},4977:e=>{e.exports=function(e){e.filter("vibrance",{seed:null,adjust:[64,192]},(function(e,t){t.adjust=e.randByArraySeed(t.adjust);var n=-1*t.adjust;return e.walk((function(e){var t=(e[0]+e[1]+e[2])/3,r=Math.max(e[0],e[1],e[2]),a=2*Math.abs(r-t)/255*n/100;return e[0]!==r&&(e[0]+=(r-e[0])*a),e[1]!==r&&(e[1]+=(r-e[1])*a),e[2]!==r&&(e[2]+=(r-e[2])*a),[e[0],e[1],e[2],e[3]]})),t}))}},2582:e=>{e.exports=function(e){e.function("copy",{layer:null},(function(e,t){return"number"==typeof t&&(t={layer:t}),null===t.layer&&(t.layer=e.layers.length-1),null!=e.layers[t.layer]&&(e.texture.data=e.layerCopy(t.layer)),t}))}},40:e=>{e.exports=function(e){e.function("equirectangular",{layer:null},(function(e,t){null===t.layer&&(t.layer=e.layers.length-1);var n,r,a,i,o,s,u,c,l,d,f,h=new e.buffer,p=e.texture.width,y=e.texture.height,g=Math.PI,m=y/2,b=p/2,x=y/2,v=e.texture.size();for(n=0;n{e.exports=function(e){n(2582)(e),n(40)(e),n(5551)(e),n(9174)(e),n(4013)(e),n(9451)(e),n(1234)(e)}},5551:e=>{e.exports=function(e){e.function("map",{seed:null,xamount:[4,512],yamount:[4,512],xchannel:[0,2],ychannel:[0,2],xlayer:0,ylayer:0},(function(e,t){t.xamount=e.randByArraySeed(t.xamount),t.yamount=e.randByArraySeed(t.yamount),t.xchannel=e.randByArraySeed(t.xchannel),t.ychannel=e.randByArraySeed(t.ychannel),t.xlayer=e.randByArraySeed(t.xlayer),t.ylayer=e.randByArraySeed(t.ylayer);var n,r,a,i,o,s,u,c,l=new e.buffer,d=e.texture.width,f=e.texture.height,h=e.texture.size(),p=e.layers[t.xlayer],y=e.layers[t.ylayer];if(p&&p[0]){for(n=0;n>16)):n+u*t.xamount*d/(d*d),i=f%16==0?e.wrapy(r+(c*t.yamount*f>>16)):r+c*t.yamount*f/(f*f),o=e.point.get(a,i),l.data[s]=o[0],l.data[s+1]=o[1],l.data[s+2]=o[2],l.data[s+3]=o[3];for(;h--;)e.texture.data[h]=l.data[h];return t}}))}},9174:e=>{e.exports=function(e){e.function("merge",{blend:"opacity",opacity:null,layer:0},(function(e,t){if(void 0===e.layers[t.layer])return t;var n,r,a,i=e.layers[t.layer];for(r=0;r{e.exports=function(e){e.function("mergeall",{blend:"opacity",firstcopy:!0,opacity:null},(function(e,t){for(var n=e.layers.length,r=0;r<=n;r++)0===r&&!0===t.firstcopy?e.do("copy",{layer:0}):e.do("merge",{blend:t.blend,layer:r,opacity:t.opacity});return t}))}},1234:e=>{e.exports=function(e){e.function("rot90",{seed:null,times:[1,3],blend:e.blendSafe()},(function(t,n){return n.type=1,n.angle=90,e.effects.rotate(t,n),n}))}},9451:e=>{e.exports=function(e){e.function("rotate",{seed:null,angle:90,times:[1,3],type:1,blend:e.blendSafe()},(function(e,t){t.type=e.randByArraySeed(t.type),null===t.angle?t.angle=e.randItemByArraySeed(t.angle,[90,180,270]):t.angle=e.randByArraySeed(t.angle),t.times=e.randByArraySeed(t.times);var n,r,a,i,o,s,u,c,l,d=new e.buffer,f=e.texture.width,h=e.texture.height,p=t.angle*(Math.PI/180),y=e.texture.size(),g=function(){for(r=0;r{e.exports=function(e){e.shape("circle",(function(e,t,n,r,a){var i,o,s;for(null==a&&(t+=r,n+=r),i=-r;i{e.exports=function(e){e.shape("colorLine",(function(e,t,n,r,a,i,o,s){var u,c,l,d,f,h=i.length,p=Math.sqrt((r-t)*(r-t)+(a-n)*(a-n)),y=(r-t)/p,g=(a-n)/p,m=0,b=0;for(o=o||1,d=0;d{e.exports=function(e){n(6221)(e),n(2673)(e),n(2105)(e),n(5174)(e),n(4374)(e),n(3196)(e)}},2105:e=>{e.exports=function(e){e.shape("line",(function(e,t,n,r,a){var i,o=Math.sqrt((r-t)*(r-t)+(a-n)*(a-n)),s=(r-t)/o,u=(a-n)/o,c=0,l=0;for(i=0;i{e.exports=function(e){e.shape("pyramid",(function(e,t,n,r,a,i,o,s){var u,c,l,d,f=parseInt(r/2,10),h=parseInt(a/2,10);for(1!=i&&(t+=f,n+=h),l=-f;l1&&(c=s?u:o[3],e.point.rgba=[o[0]/255*u,o[1]/255*u,o[2]/255*u,c],e.point.set(t+l,n+d))}))}},4374:e=>{e.exports=function(e){e.shape("rect",(function(e,t,n,r,a,i){var o,s;for(void 0!==i&&(t-=parseInt(r/2,10),n-=parseInt(a/2,10)),o=0;o{e.exports=function(e){e.shape("sphere",(function(e,t,n,r,a,i,o){var s,u,c,l,d;for(null==a&&(t+=r,n+=r),l=-r;l0&&(u=o?255*s:i[3],e.point.rgba=[i[0]*s,i[1]*s,i[2]*s,u],e.point.set(t+l,n+d))}))}},9281:(e,t,n)=>{var r={version:"1.4.16",defaults:{},effects:{},prepare:{},filters:[],presets:{},functions:[],blends:{},shapes:{},colormaps:{},config:{},blendFlat:function(){return["lighten","screen","opacity"]},blendSafe:function(){return["average","lighten","linearburn","linearlight","difference","difference-invert","screen","lineardodge","lineardodge-invert","opacity","exclusion"]},randomRGBA:function(){return[[0,255],[0,255],[0,255],[64,255]]},effect:function(e,t,n,r){this.defaults[e]=t,this.effects[e]=n,this.prepare[e]=r},function:function(e,t,n){this.functions.push(e),this.defaults[e]=t,this.effects[e]=n},filter:function(e,t,n){this.filters.push(e),this.defaults[e]=t,this.effects[e]=n},preset:function(e,t){t.name=e,this.presets[e]=t},event:function(e,t,n){null!=this.events[e]&&(this.events[e][t]=n)},blend:function(e,t){this.blends[e]=t},shape:function(e,t){this.shapes[e]=t},colormap:function(e,t){this.colormaps[e]=t},init:function(e,t,n){return this.getGenerator(e,t,n)}};n(6611)(r),n(5702)(r),n(9395)(r),n(8565)(r),n(3551)(r),n(5265)(r),n(490)(r),n(9136)(r),e.exports=r},9691:(e,t,n)=>{var r,a=n(9281);"undefined"!=typeof window&&(window.tgen=a),void 0!==e.exports?e.exports=a:void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)},6611:e=>{e.exports=function(e){e.blend("opacity",(function(e,t,n){return n})),e.blend("multiply",(function(e,t,n){return n[0]=t[0]*n[0]/255,n[1]=t[1]*n[1]/255,n[2]=t[2]*n[2]/255,n})),e.blend("linearburn",(function(e,t,n){return n[0]=t[0]+n[0]-255,n[1]=t[1]+n[1]-255,n[2]=t[2]+n[2]-255,n})),e.blend("difference",(function(e,t,n){return n[0]=Math.abs(n[0]-t[0]),n[1]=Math.abs(n[1]-t[1]),n[2]=Math.abs(n[2]-t[2]),n})),e.blend("difference-invert",(function(e,t,n){return n[0]=255-Math.abs(n[0]-t[0]),n[1]=255-Math.abs(n[1]-t[1]),n[2]=255-Math.abs(n[2]-t[2]),n})),e.blend("screen",(function(e,t,n){return n[0]=255-(255-t[0])*(255-n[0])/255,n[1]=255-(255-t[1])*(255-n[1])/255,n[2]=255-(255-t[2])*(255-n[2])/255,n})),e.blend("overlay",(function(e,t,n){return n[0]=t[0]>128?255-2*(255-n[0])*(255-t[0])/255:t[0]*n[0]*2/255,n[1]=t[1]>128?255-2*(255-n[1])*(255-t[1])/255:t[1]*n[1]*2/255,n[2]=t[2]>128?255-2*(255-n[2])*(255-t[2])/255:t[2]*n[2]*2/255,n})),e.blend("exclusion",(function(e,t,n){return n[0]=128-2*(t[0]-128)*(n[0]-128)/255,n[1]=128-2*(t[1]-128)*(n[1]-128)/255,n[2]=128-2*(t[2]-128)*(n[2]-128)/255,n})),e.blend("darken",(function(e,t,n){return n[0]=n[0]t[0]?n[0]:t[0],n[1]=n[1]>t[1]?n[1]:t[1],n[2]=n[2]>t[2]?n[2]:t[2],n})),e.blend("lineardodge",(function(e,t,n){return n[0]=t[0]+n[0],n[1]=t[1]+n[1],n[2]=t[2]+n[2],n})),e.blend("lineardodge-invert",(function(e,t,n){return n[0]=255-(n[0]+t[0]),n[1]=255-(n[1]+t[1]),n[2]=255-(n[2]+t[2]),n})),e.blend("linearlight",(function(e,t,n){return n[0]=t[0]+2*n[0]-255,n[1]=t[1]+2*n[1]-255,n[2]=t[2]+2*n[2]-255,n})),e.blend("linearburn",(function(e,t,n){return n[0]=t[0]+n[0]-255,n[1]=t[1]+n[1]-255,n[2]=t[2]+n[2]-255,n})),e.blend("softlight",(function(e,t,n){return n[0]=t[0]>128?255-(255-t[0])*(255-(n[0]-128))/255:t[0]*(n[0]+128)/255,n[1]=t[1]>128?255-(255-t[1])*(255-(n[1]-128))/255:t[1]*(n[1]+128)/255,n[2]=t[2]>128?255-(255-t[2])*(255-(n[2]-128))/255:t[2]*(n[2]+128)/255,n})),e.blend("subbtract",(function(e,t,n){return n[0]=Math.max(t[0]-n[0],0),n[1]=Math.max(t[1]-n[1],0),n[2]=Math.max(t[2]-n[2],0),n})),e.blend("backlight",(function(e,t,n){return t[0]=0===t[0]?.001:t[0],t[1]=0===t[1]?.001:t[1],t[2]=0===t[2]?.001:t[2],n[0]=255/t[0]*(255/n[0]),n[1]=255/t[1]*(255/n[1]),n[2]=255/t[2]*(255/n[2]),n})),e.blend("average",(function(e,t,n){return n[0]=(n[0]+t[0])/2,n[1]=(n[1]+t[1])/2,n[2]=(n[2]+t[2])/2,n})),e.blend("alphamap",(function(e,t,n){return t[3]=(n[0]+n[1]+n[2])/3,t}))}},5702:e=>{e.exports=function(e){e.colormap("blackwhite",(function(){return[{percent:0,rgba:[0,0,0,255]},{percent:25,rgba:[255,255,255,255]},{percent:50,rgba:[0,0,0,255]},{percent:75,rgba:[255,255,255,255]},{percent:100,rgba:[0,0,0,255]}]})),e.colormap("blackwhite2",(function(){return[{percent:0,rgba:[0,0,0,255]},{percent:100,rgba:[255,255,255,255]}]})),e.colormap("grayscale",(function(){return[{percent:0,rgba:[0,0,0,255]},{percent:100,rgba:[255,255,255,255]}]})),e.colormap("elevation",(function(){return[{percent:0,rgba:[252,69,27,255]},{percent:25,rgba:[245,203,39,255]},{percent:50,rgba:[104,253,163,255]},{percent:75,rgba:[27,196,253,255]},{percent:100,rgba:[88,18,252,255]}]})),e.colormap("wiener-challah",(function(){return[{percent:0,rgba:[66,53,66,255]},{percent:25,rgba:[111,68,70,255]},{percent:50,rgba:[163,90,59,255]},{percent:75,rgba:[237,155,43,255]},{percent:100,rgba:[255,240,150,255]}]})),e.colormap("parula",(function(){return[{percent:0,rgba:[53,42,135,255]},{percent:12.5,rgba:[3,99,225,255]},{percent:25,rgba:[20,133,212,255]},{percent:37.5,rgba:[6,167,198,255]},{percent:50,rgba:[56,185,158,255]},{percent:62.5,rgba:[146,191,115,255]},{percent:75,rgba:[217,186,86,255]},{percent:87.5,rgba:[252,206,46,255]},{percent:100,rgba:[249,251,14,255]}]})),e.colormap("dawn",(function(){return[{percent:0,rgba:[255,255,192,255]},{percent:25,rgba:[255,255,128,255]},{percent:50,rgba:[255,128,128,255]},{percent:75,rgba:[128,0,128,255]},{percent:100,rgba:[0,0,128,255]}]})),e.colormap("dusk",(function(){return[{percent:0,rgba:[255,255,255,255]},{percent:25,rgba:[255,128,255,255]},{percent:50,rgba:[128,0,255,255]},{percent:75,rgba:[0,0,128,255]},{percent:100,rgba:[0,0,0,255]}]})),e.colormap("kryptonite",(function(){return[{percent:0,rgba:[255,255,255,255]},{percent:25,rgba:[255,255,128,255]},{percent:50,rgba:[128,255,0,255]},{percent:75,rgba:[0,128,0,255]},{percent:100,rgba:[0,0,0,255]}]})),e.colormap("ice",(function(){return[{percent:0,rgba:[255,255,255,255]},{percent:25,rgba:[128,255,255,255]},{percent:50,rgba:[0,128,255,255]},{percent:75,rgba:[0,0,128,255]},{percent:100,rgba:[0,0,0,255]}]})),e.colormap("fire",(function(){return[{percent:0,rgba:[255,255,255,255]},{percent:25,rgba:[255,255,128,255]},{percent:50,rgba:[255,128,0,255]},{percent:75,rgba:[128,0,0,255]},{percent:100,rgba:[0,0,0,255]}]})),e.colormap("redblue",(function(){return[{percent:0,rgba:[96,0,0,255]},{percent:25,rgba:[192,0,0,255]},{percent:50,rgba:[255,255,255,255]},{percent:75,rgba:[0,0,192,255]},{percent:100,rgba:[0,0,96,255]}]})),e.colormap("seashore",(function(){return[{percent:0,rgba:[255,255,192,255]},{percent:25,rgba:[255,255,128,255]},{percent:50,rgba:[128,255,128,255]},{percent:75,rgba:[0,128,128,255]},{percent:100,rgba:[0,0,128,255]}]}))}},9395:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){e.getGenerator=function(n,r,a){var i=this,o={},s=[],u=null,c={shape:i.shapes,effects:Object.keys(i.effects),layers:[],normalize:a||"limitless"},l=function(){null==n&&(n=256),n<1&&(n=256),r<1&&(r=256),n>2048&&(n=2048),r>2048&&(r=2048),null==r&&(r=n),u=(n+r)/2};l(),c.log=function(){if(this.debug&&arguments.length>0){for(var e=[],t=0;t=t?r=e-(n=Math.floor(a)*t):e<0?(n=Math.ceil(a)*t,(r=t-Math.abs(e-n))>=t?r-=t:r):void 0},this.offset=function(e,t){return e=Math.round(e),t=Math.round(t),(e<0||e>=this.width)&&(e=this.pattern(e,this.width)),(t<0||t>=this.height)&&(t=this.pattern(t,this.height)),t*this.width*this.components+e*this.components},this.set=function(e,t,n){var r=this.offset(e,t);this.data[r]=n[0],this.data[r+1]=n[1],this.data[r+2]=n[2],this.data[r+3]=n[3]},this.get=function(e,t){var n=this.offset(e,t);return[this.data[n],this.data[n+1],this.data[n+2],this.data[n+3]]},this.alpha=function(e){var t;if("sphere"===e)for(;t;)c.texture.data[t]=.5,t-=4},this.canvas=function(e){for(var t=this.size(),n=e.getContext("2d").getImageData(0,0,this.width,this.height);t--;)c.texture.data[t]=n.data[t]},null===this.data&&this.clear()},c.texture=new c.buffer,c.layerCopy=function(e){for(var t=this.layers[e],n=[],r=t.length;r--;)n[r]=t[r];return n},c.minMaxNormalize=function(e,t){return{min:Math.min(e,t),max:Math.max(e,t)}},c.randInt=function(e,t,n){var r,a=c.minMaxNormalize(e,t);return e=a.min,t=a.max,!0===n?(e=Math.round(e/2),t=Math.round(t/2),r=2):r=1,r*(Math.floor(Math.random()*(t-e+1))+e)},c.randIntSeed=function(e,t,n){var r,a=c.minMaxNormalize(e,t);return e=a.min,t=a.max,!0===n?(e=Math.round(e/2),t=Math.round(t/2),r=2):r=1,r*(Math.floor(c.calc.randomseed()*(t-e+1))+e)},c.randReal=function(e,t){var n=c.minMaxNormalize(e,t);return e=n.min,t=n.max,Math.random()*(t-e)+e},c.randRealSeed=function(e,t){var n=c.minMaxNormalize(e,t);return e=n.min,t=n.max,c.calc.randomseed()*(t-e)+e},c.randByArray=function(e,n){return null==e||"object"!==t(e)||void 0===e[0]?(c.calc.seed++,e):e=void 0!==n?c.randReal(e[0],e[1]):c.randInt(e[0],e[1])},c.randByArraySeed=function(e,n,r){return null==e||"object"!==t(e)||void 0===e[0]?(c.calc.seed++,e):e=n?c.randRealSeed(e[0],e[1]):c.randIntSeed(e[0],e[1],r)},c.randIntByArraySeed=function(e,n,r){return null!=e&&"random"!==e||(e=n),"object"!==t(e)?(c.calc.seed++,e):e=c.randIntSeed(e[0],e[1],r)},c.randRealByArraySeed=function(e,n){return null!=e&&"random"!==e||(e=n),"object"!==t(e)?(c.calc.seed++,e):e=c.randRealSeed(e[0],e[1])},c.randItemSeed=function(e){if("object"!==t(e)||void 0===e[0])return c.calc.seed++,e;var n=e.length;return e[c.randIntSeed(0,n-1)]},c.randItemByArray=function(e,t){if(null!=e&&"random"!==e)return e;var n=t.length;return t[c.randInt(0,n-1)]},c.randItemByArraySeed=function(e,t){if(null!=e&&"random"!==e)return c.calc.seed++,e;var n=t.length;return t[c.randIntSeed(0,n-1)]},c.randProperty=function(e,t){if(null!=e&&"random"!==e)return c.calc.seed++,e;var n=Object.keys(t);return n[c.randByArraySeed([0,n.length-1])]},c.rgba=function(e){return"random"!==e&&null!=e||(e=[[0,255],[0,255],[0,255],255]),"randomalpha"===e&&(e=[[0,255],[0,255],[0,255],[128,255]]),void 0!==e[0]&&null!==e[0]||(e[0]=0),void 0!==e[1]&&null!==e[1]||(e[1]=0),void 0!==e[2]&&null!==e[2]||(e[2]=0),void 0!==e[3]&&null!==e[3]||(e[3]=255),e[0]=c.randByArraySeed(e[0]),e[1]=c.randByArraySeed(e[1]),e[2]=c.randByArraySeed(e[2]),e[3]=c.randByArraySeed(e[3]),e[3]%1!=0&&(e[3]=Math.round(255*e[3])),1==e[3]&&(e[3]=255),e};return c.findClosestIndex=function(e,t,n){for(var r=t;r>=0&&r<=e.length-1;r+=n)if(e[r])return r;return e.length-1},c.easing={PI:3.1415926535,c1:1.70158,c2:1.525*this.c1,c3:this.c1+1,c4:2*this.PI/3,c5:2*this.PI/4.5,InQuad:function(e){return e*e},OutQuad:function(e){return 1-(1-e)*(1-e)},InOutQuad:function(e){return e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2},InCubic:function(e){return e*e*e},OutCubic:function(e){return 1-Math.pow(1-e,3)},InOutCubic:function(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2},InQuart:function(e){return e*e*e*e},OutQuart:function(e){return 1-Math.pow(1-e,4)},InOutQuart:function(e){return e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2},InQuint:function(e){return e*e*e*e*e},OutQuint:function(e){return 1-Math.pow(1-e,5)},InOutQuint:function(e){return e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2},InSine:function(e){return 1-Math.cos(e*this.PI/2)},OutSine:function(e){return Math.sin(e*this.PI/2)},InOutSine:function(e){return-(Math.cos(this.PI*e)-1)/2},InExpo:function(e){return 0===e?0:Math.pow(2,10*e-10)},OutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},InOutExpo:function(e){return 0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2},InCirc:function(e){return 1-Math.sqrt(1-Math.pow(e,2))},OutCirc:function(e){return Math.sqrt(1-Math.pow(e-1,2))},InOutCirc:function(e){return e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2},InBack:function(e){return this.c3*e*e*e-this.c1*e*e},OutBack:function(e){return 1+this.c3*Math.pow(e-1,3)+this.c1*Math.pow(e-1,2)},InOutBack:function(e){return e<.5?Math.pow(2*e,2)*(2*(this.c2+1)*e-this.c2)/2:(Math.pow(2*e-2,2)*((this.c2+1)*(2*e-2)+this.c2)+2)/2},InElastic:function(e){return 0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*this.c4)},OutElastic:function(e){return 0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*this.c4)+1},InOutElastic:function(e){return 0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*this.c5)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*this.c5)/2+1},InBounce:function(e){return 1-this.OutBounce(1-e)},OutBounce:function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},InOutBounce:function(e){return e<.5?(1-this.OutBounce(1-2*e))/2:(1+this.OutBounce(2*e-1))/2}},c.calc={seed:void 0,pi:3.1415927,luminance:function(e){return.21*e[0]+.72*e[1]+.07*e[2]},randomseed:function(e){void 0!==e?this.seed=e:void 0===this.seed&&(this.seed=c.randInt(1,Number.MAX_SAFE_INTEGER));var t=1e4*Math.sin(this.seed++);return t-Math.floor(t)},normalize1:function(e){return c.calc.normalize(e,0,1)},normalize255:function(e){return c.calc.normalize(e,0,255)},normalize:function(e,t,n){return e>n?n:e1&&(u=1),u}}},c.colormap={data:null,easing:null,reverse:!1,size:255,init:function(e,r,a){if(this.data=null,this.size=null==r?n:r,null==e||null==e)return e;var o;if("object"==t(e))if("object"==t(e[0]))for(var s in e)(o=e[s]).rgba=c.rgba(o.rgba),e[s]=o;else e=c.randItemSeed(e);if("random"===e&&(e=this.random()),"string"==typeof e&&("!"==e.charAt(0)&&(e=e.substring(1),this.reverse=!0),"function"==typeof i.colormaps[e])){var u=i.colormaps[e](r);this.data=this.render(u)}"object"==t(e)&&(this.data=this.render(e)),"function"==typeof a&&a(e)},random:function(e){e=e||c.randIntSeed(2,7);for(var t=[],n=0;n<=e;n++)t[n]={percent:parseInt(n/e*100),rgba:[c.randIntSeed(0,255),c.randIntSeed(0,255),c.randIntSeed(0,255),255]};return t},render:function(e){for(var t=[],n=0;n{e.exports=function(e){e.effect("test-pattern",{},(function(e,t){var n,r=e.texture.width,a=e.texture.height;return e.point.blend="opacity",e.texture.clear(),e.point.rgba=[255,255,155,255],e.shape.rect(e,1,1,r-2,a-2),n=20,e.point.rgba=[0,150,0,153],e.shape.rect(e,2,2,n,n),e.shape.rect(e,r-n-2,2,n,n),e.shape.rect(e,2,a-2-n,n,n),e.shape.rect(e,r-2-n,a-2-n,n,n),e.point.rgba=[20,20,10,51],e.shape.rect(e,r/2,a/2,178,178,!0),e.point.rgba=[10,20,210,178],e.shape.rect(e,r-5,a-5,10,10),n=20,e.point.rgba=[10,10,210,250],e.shape.line(e,n,n,r-n,a-n),e.shape.line(e,r-n,n,n,a-n),e.shape.line(e,0,a/2,r,a/2),e.shape.line(e,r/2,0,r/2,a),e.point.rgba=[255,55,55,128],e.shape.rect(e,10,10,r-20,a-20),e.point.rgba=[0,0,255,76],e.shape.rect(e,r-2,a-2,4,4),e.point.rgba=[255,255,255,255],e.point.set(0,0),e.point.set(r-1,0),e.point.set(0,a-1),e.point.set(r-1,a-1),e.point.rgba=[25,25,0,51],e.shape.circle(e,r/4,a/4,r/4,!0),e.point.rgba=[255,255,0,25],e.shape.circle(e,r,a,r,!0),e.shape.sphere(e,r/4,a-a/4,r/2,!0,[255,0,0,0],!0),e.shape.sphere(e,r/2,a-a/4,r/2,!0,[0,255,0,0],!0),e.shape.sphere(e,r-r/4,a-a/4,r/2,!0,[255,255,255,0],!0),e.shape.pyramid(e,r-r/4,a/4,r/2,a/2,!0,[0,0,0,255],!0),e.do("brightness",{adjust:50}),e.do("vibrance",{adjust:100}),e.do("contrast",{adjust:20}),t})),e.effect("test-all",{},(function(e,t){var n;e.normalize="limitless";var r=0,a=["test-all","test-pattern","copy","merge","mergeall"];for(var i in e.effects)n=e.effects[i],a.indexOf(n)<0&&(e.do(n),e.layers[r++]=e.texture.export());return t}))}}},t={};(function n(r){var a=t[r];if(void 0!==a)return a.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports})(9691)})(); \ No newline at end of file diff --git a/dist/tgen.min.js.LICENSE.txt b/dist/tgen.min.js.LICENSE.txt index 06131dd..3e32829 100644 --- a/dist/tgen.min.js.LICENSE.txt +++ b/dist/tgen.min.js.LICENSE.txt @@ -5,7 +5,7 @@ * https://texture-generator.com/ * * @copyright 2015-2022 Tamas Schalk - * @version 1.4.15 + * @version 1.4.16 * @license MIT * */ diff --git a/dist/tgen.min.js.gz b/dist/tgen.min.js.gz index 37d36b34b35baac5a587a82a34b1a032b7f2e46a..b993eac330aa2c83a8e645346cd47337f3e5439f 100644 GIT binary patch literal 13012 zcmV;_GAqp=iwFP!000023hjOUbK|(N;P3ZWcvQD8Qi47Reb|=Fac%ZCxw*Au)9g7YqBObM$6)|Tc^F<5Phm26j*`LO^1<)l{qW---v2l#UW%*k@V_{Y z>%aZ{G03h$|MT7W=4KwkdpHPR_Gwn+{`Qcpu{tMoF?G8Q*M-wr@51$mFndgcY|~+% zp^eQvIm9u0jKgFz4+r%7+c+p3mt{|n!Mu|N$tHac;{7h@u<&D;sH6_dqyGr!%Oz)H zzGC8Mb!1N2G%MWC#Q+QW;Q&j$E5hgByndf$!Rvcy+Yy;;`DVo4cq?~-{YhBH0v559 z#AO>ZWj)MXwk_wTV2S$~ zX5I<>(IU8y7eTM*;(G+|(fwu-!F$jv?hn`3Q7^e)UtfoVeHtauepon=!ywr`F0f1r zWzzd(kwTeh>!jat-yczJIppN`*&@fS?6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Bo`0zJbF$XTOtToSeHK16e~cZhHsDJ z2ZPGDoNeNF3XF45$?;`nH0@RYXPLz+_sw9i@iQh3?sOstrLY+0E^Y*&90ZYuz(ydM zX9Wi&^Wvi;AF9h-CNpJ{)DdNB=TsuOwDAZil{~kTI~{Wxij~E*iWM1%=p#(#d6{@4 zX;kK0_M~N~jvgcceU?fc8>pu-I%!%vyW1cR7wRya9EB0TO&Eto_y%84CUy!~_|1o9 zWnj%mCo;l;HeUF(0n9fv--BXrR7WXQZX>eaBx&(xjqy!je39XVr1`$}1R>-1;%;uL zi$%r=UD7Lv`VL6`*d~V4Jkcjg#^>Yving5&=uAalUV8$LRr|z()Cy`}CJ6lc=R}lS zrbR9KfFi7I2X^>feZgE_if1wi@c;uT12Xuf^Q_NV(C4_5@KL3_h_ix!$F;H?{v~K7 zs-)wAcUvB{)K6N&x;ycY|X^%>C_<{U-`Ti6d zo?`736S_VSltbnDbX1l{Hw4;B66`h$`bM{8UM9NJm^UJ5lA+H>>+gZaf(EP9oo3s%UFA1r%Rg+=KOvw6PH3^aN>QGjqY6@Cl z_B@Nv4bZ4eV6-OmTc2fxA@;DTFbm*+QA}isD|D*fzNnc42wRGJ;NPmP1h14B$+lZd z^qX7JSli`fl=!lsEEeeI^zCs`3_p(Zlp)&?AF%!`Ki4=Nom95*RY#fWjmli$q(v6w zMVZS-@@tu_!rjCNf|@zoB5c-e7vk_9D8XMEwN%)p{OphV%uo3}qLp@Hh{%aVhgHCv zDQZ`URxB7qC=~t?w0M_XX{d9w_>^U?*IOB^R*9UIZ(*Dm8fX@}hi?)mlZJV5cTj&y z3O1EMovj9HZ;;krg!DhlG*D(v=10.0.0" } }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.2.0.tgz", + "integrity": "sha512-gB8T4H4DEfX2IV9zGDJPOBgP1e/DbfCPDTtEqUMckpvzS1OYtva8JdFYBqMwYk7xAQ429WGF/UPqn8uQ//h2vQ==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.4.0.tgz", + "integrity": "sha512-A9983Q0LnDGdLPjxyXQ00sbV+K+O+ko2Dr+CZigbHWtX9pNfxlaBkMR8X1CztI73zuEyEBXTVjx7CE+/VSwDiQ==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, "node_modules/@eslint/eslintrc": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.4.1.tgz", - "integrity": "sha512-XXrH9Uarn0stsyldqDYq8r++mROmWRI1xKMXa640Bb//SY1+ECYX6VzT6Lcx5frD0V30XieqJ0oX9I2Xj5aoMA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.1.tgz", + "integrity": "sha512-eFRmABvW2E5Ho6f5fHLqgena46rOj7r7OKHYfLElqcBfGFHHpjBhivyi5+jOEQuSpdc/1phIZJlbC2te+tZNIw==", "dev": true, "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.4.0", + "espree": "^9.5.0", "globals": "^13.19.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", @@ -1815,6 +1839,15 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/@eslint/js": { + "version": "8.36.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.36.0.tgz", + "integrity": "sha512-lxJ9R5ygVm8ZWgYdUweoq5ownDlJ4upvoWmO4eLxBYHdMo+vZ/Rx0EN6MbKWDJOSUGrqJy2Gt+Dyv/VKml0fjg==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, "node_modules/@humanwhocodes/config-array": { "version": "0.11.8", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", @@ -4381,12 +4414,15 @@ } }, "node_modules/eslint": { - "version": "8.34.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.34.0.tgz", - "integrity": "sha512-1Z8iFsucw+7kSqXNZVslXS8Ioa4u2KM7GPwuKtkTFAqZ/cHMcEaR+1+Br0wLlot49cNxIiZk5wp8EAbPcYZxTg==", + "version": "8.36.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.36.0.tgz", + "integrity": "sha512-Y956lmS7vDqomxlaaQAHVmeb4tNMp2FWIvU/RnU5BD3IKMD/MJPr76xdyr68P8tV1iNMvN2mRK0yy3c+UjL+bw==", "dev": true, "dependencies": { - "@eslint/eslintrc": "^1.4.1", + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "@eslint/eslintrc": "^2.0.1", + "@eslint/js": "8.36.0", "@humanwhocodes/config-array": "^0.11.8", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", @@ -4397,10 +4433,9 @@ "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", "eslint-scope": "^7.1.1", - "eslint-utils": "^3.0.0", "eslint-visitor-keys": "^3.3.0", - "espree": "^9.4.0", - "esquery": "^1.4.0", + "espree": "^9.5.0", + "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^6.0.1", @@ -4421,7 +4456,6 @@ "minimatch": "^3.1.2", "natural-compare": "^1.4.0", "optionator": "^0.9.1", - "regexpp": "^3.2.0", "strip-ansi": "^6.0.1", "strip-json-comments": "^3.1.0", "text-table": "^0.2.0" @@ -4449,33 +4483,6 @@ "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, - "node_modules/eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^2.0.0" - }, - "engines": { - "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=5" - } - }, - "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/eslint-visitor-keys": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", @@ -4486,9 +4493,9 @@ } }, "node_modules/espree": { - "version": "9.4.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.1.tgz", - "integrity": "sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==", + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.0.tgz", + "integrity": "sha512-JPbJGhKc47++oo4JkEoTe2wjy4fmMwvFpgJT9cQzmfXKp22Dr6Hf1tdCteLz1h0P3t+mGvWZ+4Uankvh8+c6zw==", "dev": true, "dependencies": { "acorn": "^8.8.0", @@ -4503,9 +4510,9 @@ } }, "node_modules/esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.2.tgz", + "integrity": "sha512-JVSoLdTlTDkmjFmab7H/9SL9qGSyjElT3myyKp7krqjVFQCDLmj1QFaCLRFBszBKI0XVZaiiXvuPIX3ZwHe1Ng==", "dev": true, "dependencies": { "estraverse": "^5.1.0" @@ -5105,9 +5112,9 @@ "dev": true }, "node_modules/globals": { - "version": "13.19.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.19.0.tgz", - "integrity": "sha512-dkQ957uSRWHw7CFXLUtUHQI3g3aWApYhfNR2O6jn/907riyTYKVBmxYVROkBcY614FSSeSJh7Xm7SrUWCxvJMQ==", + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", "dev": true, "dependencies": { "type-fest": "^0.20.2" @@ -7213,12 +7220,12 @@ } }, "node_modules/pngjs": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-6.0.0.tgz", - "integrity": "sha512-TRzzuFRRmEoSW/p1KVAmiOgPco2Irlah+bGFCeNfJXxxYGwSw7YwAOAcd7X28K/m5bjBWKsC29KyoMfHbypayg==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-7.0.0.tgz", + "integrity": "sha512-LKWqWJRhstyYo9pGvgor/ivk2w94eSjE3RGVuzLGlr3NmD8bf7RcYGze1mNdEHRP6TRP6rMuDHk5t44hnTRyow==", "dev": true, "engines": { - "node": ">=12.13.0" + "node": ">=14.19.0" } }, "node_modules/postcss": { @@ -8065,18 +8072,6 @@ "integrity": "sha512-jbD/FT0+9MBU2XAZluI7w2OBs1RBi6p9M83nkoZayQXXU9e8Robt69FcZc7wU4eJD/YFTjn1JdCk3rbMJajz8Q==", "dev": true }, - "node_modules/regexpp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - } - }, "node_modules/regexpu-core": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.2.1.tgz", @@ -9365,9 +9360,9 @@ } }, "node_modules/webpack": { - "version": "5.74.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.74.0.tgz", - "integrity": "sha512-A2InDwnhhGN4LYctJj6M1JEaGL7Luj6LOmyBHjcI8529cm5p6VXiTIW2sn6ffvEAKmveLzvu4jrihwXtPojlAA==", + "version": "5.76.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.76.1.tgz", + "integrity": "sha512-4+YIK4Abzv8172/SGqObnUjaIHjLEuUasz9EwQj/9xmPPkYJy2Mh03Q/lJfSD3YLzbxy5FeTq5Uw0323Oh6SJQ==", "dev": true, "dependencies": { "@types/eslint-scope": "^3.7.3", @@ -11106,15 +11101,30 @@ "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", "dev": true }, + "@eslint-community/eslint-utils": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.2.0.tgz", + "integrity": "sha512-gB8T4H4DEfX2IV9zGDJPOBgP1e/DbfCPDTtEqUMckpvzS1OYtva8JdFYBqMwYk7xAQ429WGF/UPqn8uQ//h2vQ==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^3.3.0" + } + }, + "@eslint-community/regexpp": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.4.0.tgz", + "integrity": "sha512-A9983Q0LnDGdLPjxyXQ00sbV+K+O+ko2Dr+CZigbHWtX9pNfxlaBkMR8X1CztI73zuEyEBXTVjx7CE+/VSwDiQ==", + "dev": true + }, "@eslint/eslintrc": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.4.1.tgz", - "integrity": "sha512-XXrH9Uarn0stsyldqDYq8r++mROmWRI1xKMXa640Bb//SY1+ECYX6VzT6Lcx5frD0V30XieqJ0oX9I2Xj5aoMA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.1.tgz", + "integrity": "sha512-eFRmABvW2E5Ho6f5fHLqgena46rOj7r7OKHYfLElqcBfGFHHpjBhivyi5+jOEQuSpdc/1phIZJlbC2te+tZNIw==", "dev": true, "requires": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.4.0", + "espree": "^9.5.0", "globals": "^13.19.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", @@ -11123,6 +11133,12 @@ "strip-json-comments": "^3.1.1" } }, + "@eslint/js": { + "version": "8.36.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.36.0.tgz", + "integrity": "sha512-lxJ9R5ygVm8ZWgYdUweoq5ownDlJ4upvoWmO4eLxBYHdMo+vZ/Rx0EN6MbKWDJOSUGrqJy2Gt+Dyv/VKml0fjg==", + "dev": true + }, "@humanwhocodes/config-array": { "version": "0.11.8", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", @@ -13194,12 +13210,15 @@ "dev": true }, "eslint": { - "version": "8.34.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.34.0.tgz", - "integrity": "sha512-1Z8iFsucw+7kSqXNZVslXS8Ioa4u2KM7GPwuKtkTFAqZ/cHMcEaR+1+Br0wLlot49cNxIiZk5wp8EAbPcYZxTg==", + "version": "8.36.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.36.0.tgz", + "integrity": "sha512-Y956lmS7vDqomxlaaQAHVmeb4tNMp2FWIvU/RnU5BD3IKMD/MJPr76xdyr68P8tV1iNMvN2mRK0yy3c+UjL+bw==", "dev": true, "requires": { - "@eslint/eslintrc": "^1.4.1", + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "@eslint/eslintrc": "^2.0.1", + "@eslint/js": "8.36.0", "@humanwhocodes/config-array": "^0.11.8", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", @@ -13210,10 +13229,9 @@ "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", "eslint-scope": "^7.1.1", - "eslint-utils": "^3.0.0", "eslint-visitor-keys": "^3.3.0", - "espree": "^9.4.0", - "esquery": "^1.4.0", + "espree": "^9.5.0", + "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^6.0.1", @@ -13234,7 +13252,6 @@ "minimatch": "^3.1.2", "natural-compare": "^1.4.0", "optionator": "^0.9.1", - "regexpp": "^3.2.0", "strip-ansi": "^6.0.1", "strip-json-comments": "^3.1.0", "text-table": "^0.2.0" @@ -13250,23 +13267,6 @@ "estraverse": "^5.2.0" } }, - "eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^2.0.0" - }, - "dependencies": { - "eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true - } - } - }, "eslint-visitor-keys": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", @@ -13274,9 +13274,9 @@ "dev": true }, "espree": { - "version": "9.4.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.1.tgz", - "integrity": "sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==", + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.0.tgz", + "integrity": "sha512-JPbJGhKc47++oo4JkEoTe2wjy4fmMwvFpgJT9cQzmfXKp22Dr6Hf1tdCteLz1h0P3t+mGvWZ+4Uankvh8+c6zw==", "dev": true, "requires": { "acorn": "^8.8.0", @@ -13285,9 +13285,9 @@ } }, "esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.2.tgz", + "integrity": "sha512-JVSoLdTlTDkmjFmab7H/9SL9qGSyjElT3myyKp7krqjVFQCDLmj1QFaCLRFBszBKI0XVZaiiXvuPIX3ZwHe1Ng==", "dev": true, "requires": { "estraverse": "^5.1.0" @@ -13734,9 +13734,9 @@ "dev": true }, "globals": { - "version": "13.19.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.19.0.tgz", - "integrity": "sha512-dkQ957uSRWHw7CFXLUtUHQI3g3aWApYhfNR2O6jn/907riyTYKVBmxYVROkBcY614FSSeSJh7Xm7SrUWCxvJMQ==", + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", "dev": true, "requires": { "type-fest": "^0.20.2" @@ -15327,9 +15327,9 @@ } }, "pngjs": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-6.0.0.tgz", - "integrity": "sha512-TRzzuFRRmEoSW/p1KVAmiOgPco2Irlah+bGFCeNfJXxxYGwSw7YwAOAcd7X28K/m5bjBWKsC29KyoMfHbypayg==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-7.0.0.tgz", + "integrity": "sha512-LKWqWJRhstyYo9pGvgor/ivk2w94eSjE3RGVuzLGlr3NmD8bf7RcYGze1mNdEHRP6TRP6rMuDHk5t44hnTRyow==", "dev": true }, "postcss": { @@ -15897,12 +15897,6 @@ "integrity": "sha512-jbD/FT0+9MBU2XAZluI7w2OBs1RBi6p9M83nkoZayQXXU9e8Robt69FcZc7wU4eJD/YFTjn1JdCk3rbMJajz8Q==", "dev": true }, - "regexpp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", - "dev": true - }, "regexpu-core": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.2.1.tgz", @@ -16897,9 +16891,9 @@ } }, "webpack": { - "version": "5.74.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.74.0.tgz", - "integrity": "sha512-A2InDwnhhGN4LYctJj6M1JEaGL7Luj6LOmyBHjcI8529cm5p6VXiTIW2sn6ffvEAKmveLzvu4jrihwXtPojlAA==", + "version": "5.76.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.76.1.tgz", + "integrity": "sha512-4+YIK4Abzv8172/SGqObnUjaIHjLEuUasz9EwQj/9xmPPkYJy2Mh03Q/lJfSD3YLzbxy5FeTq5Uw0323Oh6SJQ==", "dev": true, "requires": { "@types/eslint-scope": "^3.7.3", diff --git a/package.json b/package.json index b862f3c..84a0ce8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "seamless-texture-generator", - "version": "1.4.15", + "version": "1.4.16", "description": "Seamless texture generator", "homepage": "https://github.com/schalkt/tgen/", "scripts": { @@ -34,12 +34,12 @@ "devDependencies": { "compression-webpack-plugin": "^10.0.0", "cross-env": "^7.0.3", - "eslint": "^8.34.0", + "eslint": "^8.36.0", "i": "^0.3.7", "laravel-mix": "^6.0.49", "lodash": "^4.17.21", "mocha": "10.2.0", - "pngjs": "6.0.0", + "pngjs": "7.0.0", "resolve-url-loader": "^5.0.0" } } diff --git a/src/effects/checkerboard.js b/src/effects/checkerboard.js index 691faeb..0d41b90 100644 --- a/src/effects/checkerboard.js +++ b/src/effects/checkerboard.js @@ -1,11 +1,10 @@ module.exports = function (tgen) { - // checkerboard tgen.effect( "checkerboard", { seed: null, - blend: tgen.blendFlat, + blend: tgen.blendFlat(), rgba: "randomalpha", even: "random", size: [ @@ -14,7 +13,6 @@ module.exports = function (tgen) { ], }, function ($g, params) { - params.even = $g.randItemByArraySeed(params.even, [true, false]); const width = $g.texture.width; @@ -56,7 +54,6 @@ module.exports = function (tgen) { } return params; - } ); }; diff --git a/src/effects/circles.js b/src/effects/circles.js index 7047aa4..80f90b1 100644 --- a/src/effects/circles.js +++ b/src/effects/circles.js @@ -4,7 +4,7 @@ module.exports = function (tgen) { "circles", { seed: null, - blend: tgen.blendFlat, + blend: tgen.blendFlat(), rgba: "randomalpha", origin: "random", count: [1, 42], @@ -14,14 +14,12 @@ module.exports = function (tgen) { ], }, function ($g, params) { - params.size[0] = $g.randByArraySeed(params.size[0], false); params.size[1] = $g.randByArraySeed(params.size[1], false); let i, xys; for (i = 0; i < params.count; i++) { - xys = $g.xysize(i, params); $g.shape.circle( diff --git a/src/effects/clouds.js b/src/effects/clouds.js index fb3f77d..9a2ad1c 100644 --- a/src/effects/clouds.js +++ b/src/effects/clouds.js @@ -4,13 +4,12 @@ module.exports = function (tgen) { "clouds", { seed: null, - blend: tgen.blendSafe, + blend: tgen.blendSafe(), rgba: "randomalpha", roughness: [1, 32], colormap: null, }, function ($g, params) { - params.roughness = $g.randByArraySeed(params.roughness); const width = $g.texture.width; @@ -64,7 +63,6 @@ module.exports = function (tgen) { }; const generateCloud = function (step) { - let stepHalf = step / 2; if (stepHalf <= 1) { @@ -87,7 +85,7 @@ module.exports = function (tgen) { y, $g.calc.normalize1( (topLeft + topRight + bottomLeft + bottomRight) / 4 + - displace(step) + displace(step) ) ); @@ -98,7 +96,7 @@ module.exports = function (tgen) { y, $g.calc.normalize1( (topLeft + bottomLeft + center + mapV(xx, y)) / 4 + - displace(step) + displace(step) ) ); diff --git a/src/effects/colorbar.js b/src/effects/colorbar.js index c3d3b6c..b6fc383 100644 --- a/src/effects/colorbar.js +++ b/src/effects/colorbar.js @@ -4,13 +4,12 @@ module.exports = function (tgen) { "colorbar", { seed: null, - blend: tgen.blendFlat, + blend: tgen.blendFlat(), type: "random", colormap: "random", mirror: true, }, function ($g, params) { - params.type = $g.randItemByArraySeed(params.type, [ "vertical", "horizontal", @@ -28,7 +27,6 @@ module.exports = function (tgen) { }); if (params.type == "horizontal") { - for (x = 0; x < width; x++) { if (params.mirror) { q = x < width / 2 ? x * 2 : width * 2 - x * 2; @@ -41,9 +39,7 @@ module.exports = function (tgen) { $g.point.set(x, y); } } - } else { - for (y = 0; y < height; y++) { if (params.mirror) { q = y < height / 2 ? y * 2 : height * 2 - y * 2; @@ -56,7 +52,6 @@ module.exports = function (tgen) { $g.point.set(x, y); } } - } return params; diff --git a/src/effects/crosshatch.js b/src/effects/crosshatch.js index e8479ae..0d52db1 100644 --- a/src/effects/crosshatch.js +++ b/src/effects/crosshatch.js @@ -4,14 +4,13 @@ module.exports = function (tgen) { "crosshatch", { seed: null, - blend: tgen.blendSafe, + blend: tgen.blendSafe(), rgba: "randomalpha", level: [1, 100], xadjust: "random", yadjust: "random", }, function ($g, params) { - params.xadjust = $g.randRealByArraySeed(params.xadjust, [0.1, 121]); params.yadjust = $g.randRealByArraySeed(params.yadjust, [0.1, 121]); diff --git a/src/effects/dots.js b/src/effects/dots.js index 7d0be53..1a7a620 100644 --- a/src/effects/dots.js +++ b/src/effects/dots.js @@ -4,7 +4,7 @@ module.exports = function (tgen) { "dots", { seed: null, - blend: tgen.blendSafe, + blend: tgen.blendSafe(), gridX: [2, 64], gridY: [2, 64], size: [1, 250], @@ -15,7 +15,6 @@ module.exports = function (tgen) { ysines: [1, 16], }, function ($g, params) { - params.gridX = $g.randByArraySeed(params.gridX); params.gridY = $g.randByArraySeed(params.gridY); params.xsines = $g.randIntByArraySeed(params.xsines, [1, 16]); @@ -39,15 +38,14 @@ module.exports = function (tgen) { for (gx = 1; gx <= params.gridX; gx++) { for (gy = 1; gy <= params.gridY; gy++) { - m = (percent * (stepX + stepY)) / 2 / 2; size = m - (m / 2) * - Math.sin((gx / params.gridX) * params.xsines * 2 * $g.calc.pi) + + Math.sin((gx / params.gridX) * params.xsines * 2 * $g.calc.pi) + (m / 2) * - Math.sin((gy / params.gridY) * params.ysines * 2 * $g.calc.pi); + Math.sin((gy / params.gridY) * params.ysines * 2 * $g.calc.pi); switch (params.shape) { case "sphere": diff --git a/src/effects/lines.js b/src/effects/lines.js index 1a728f3..604a804 100644 --- a/src/effects/lines.js +++ b/src/effects/lines.js @@ -4,7 +4,7 @@ module.exports = function (tgen) { "lines", { seed: null, - blend: tgen.blendFlat, + blend: tgen.blendFlat(), rgba: "randomalpha", size: [77, 221], count: [21, 512], @@ -14,7 +14,6 @@ module.exports = function (tgen) { freq2c: [4, 221], }, function ($g, params) { - params.freq1s = $g.randByArraySeed(params.freq1s, true); params.freq1c = $g.randByArraySeed(params.freq1c, true); params.freq2s = $g.randByArraySeed(params.freq2s, true); diff --git a/src/effects/lines2.js b/src/effects/lines2.js index fe73bc4..1d47ea5 100644 --- a/src/effects/lines2.js +++ b/src/effects/lines2.js @@ -4,7 +4,7 @@ module.exports = function (tgen) { "lines2", { seed: null, - blend: tgen.blendFlat, + blend: tgen.blendFlat(), rgba: "randomalpha", type: "random", size: [0.1, 21], diff --git a/src/effects/lines3.js b/src/effects/lines3.js index 07bdf6d..546ba8b 100644 --- a/src/effects/lines3.js +++ b/src/effects/lines3.js @@ -77,7 +77,6 @@ module.exports = function (tgen) { } return params; - } ); }; diff --git a/src/effects/noise.js b/src/effects/noise.js index 7584df4..04c6ffe 100644 --- a/src/effects/noise.js +++ b/src/effects/noise.js @@ -4,28 +4,24 @@ module.exports = function (tgen) { "noise", { seed: null, + mode: null, blend: "lighten", - mode: "monochrome", // monochrome or color channels: [255, 255, 255], // max rgb per channels in color mode opacity: 128, }, function ($g, params) { - let r, g, b, rnd; - switch (params.mode) { + if (!params.mode) { + params.mode = $g.randItemSeed(["monochrome", "color"]); + } + switch (params.mode) { case "color": $g.walk(function (color) { - r = params.channels[0] - ? $g.randIntSeed(0, params.channels[0]) - : 0; - g = params.channels[1] - ? $g.randIntSeed(0, params.channels[1]) - : 0; - b = params.channels[2] - ? $g.randIntSeed(0, params.channels[2]) - : 0; + r = params.channels[0] ? $g.randIntSeed(0, params.channels[0]) : 0; + g = params.channels[1] ? $g.randIntSeed(0, params.channels[1]) : 0; + b = params.channels[2] ? $g.randIntSeed(0, params.channels[2]) : 0; color = [r, g, b, params.opacity]; return color; }); diff --git a/src/effects/pyramids.js b/src/effects/pyramids.js index e57dcd3..7ab8e5c 100644 --- a/src/effects/pyramids.js +++ b/src/effects/pyramids.js @@ -1,11 +1,10 @@ module.exports = function (tgen) { - // pyramids tgen.effect( "pyramids", { seed: null, - blend: tgen.blendSafe, + blend: tgen.blendSafe(), rgba: "randomalpha", origin: "random", dynamic: "random", @@ -16,7 +15,6 @@ module.exports = function (tgen) { ], }, function ($g, params) { - params.dynamic = $g.randItemByArraySeed(params.dynamic, [true, false]); params.size[0] = $g.randByArraySeed(params.size[0], false); params.size[1] = $g.randByArraySeed(params.size[1], false); @@ -24,7 +22,6 @@ module.exports = function (tgen) { let i, xys; for (i = 0; i < params.count; i++) { - xys = $g.xysize(i, params); $g.shape.pyramid( $g, @@ -36,7 +33,6 @@ module.exports = function (tgen) { params.rgba, params.dynamic ); - } return params; diff --git a/src/effects/spheres.js b/src/effects/spheres.js index ec72803..748cc01 100644 --- a/src/effects/spheres.js +++ b/src/effects/spheres.js @@ -4,8 +4,8 @@ module.exports = function (tgen) { "spheres", { seed: null, - blend: tgen.blendFlat, - rgba: tgen.randomRGBA, + blend: tgen.blendFlat(), + rgba: "randomalpha", origin: "random", dynamic: true, count: [1, 77], @@ -15,7 +15,6 @@ module.exports = function (tgen) { ], }, function ($g, params) { - params.dynamic = $g.randItemByArraySeed(params.dynamic, [true, false]); params.size[0] = $g.randByArraySeed(params.size[0], false); params.size[1] = $g.randByArraySeed(params.size[1], false); diff --git a/src/effects/squares.js b/src/effects/squares.js index 3edd9c7..0d237de 100644 --- a/src/effects/squares.js +++ b/src/effects/squares.js @@ -4,7 +4,7 @@ module.exports = function (tgen) { "squares", { seed: null, - blend: tgen.blendFlat, + blend: tgen.blendFlat(), rgba: "randomalpha", origin: "random", count: [1, 42], @@ -14,7 +14,6 @@ module.exports = function (tgen) { ], }, function ($g, params) { - params.size[0] = $g.randByArraySeed(params.size[0], false); params.size[1] = $g.randByArraySeed(params.size[1], false); diff --git a/src/effects/subplasma.js b/src/effects/subplasma.js index 0246419..d45d73e 100644 --- a/src/effects/subplasma.js +++ b/src/effects/subplasma.js @@ -1,11 +1,10 @@ module.exports = function (tgen) { - // subplasma - aDDict2 const params = { seed: null, - blend: tgen.blendFlat, - rgba: tgen.randomRGBA, + blend: tgen.blendFlat(), + rgba: "randomalpha", colorize: null, size: [1, 7], opacity: 1, @@ -23,7 +22,6 @@ module.exports = function (tgen) { }; const render = function ($g, params) { - const buffer = []; const rx = $g.texture.width; const ry = rx; diff --git a/src/effects/waves.js b/src/effects/waves.js index d7241b1..06357fc 100644 --- a/src/effects/waves.js +++ b/src/effects/waves.js @@ -4,7 +4,7 @@ module.exports = function (tgen) { "waves", { seed: null, - blend: tgen.blendSafe, + blend: tgen.blendSafe(), rgba: "randomalpha", level: [1, 100], xsines: [1, 14], @@ -18,17 +18,16 @@ module.exports = function (tgen) { for (x = 0; x < $g.texture.width; x++) { for (y = 0; y < $g.texture.height; y++) { - c = 127 + 63.5 * - Math.sin( - (x / $g.texture.width) * params.xsines * 2 * $g.calc.pi - ) + + Math.sin( + (x / $g.texture.width) * params.xsines * 2 * $g.calc.pi + ) + 63.5 * - Math.sin( - (y / $g.texture.height) * params.ysines * 2 * $g.calc.pi - ); + Math.sin( + (y / $g.texture.height) * params.ysines * 2 * $g.calc.pi + ); if (typeof params.channels == "object") { $g.point.rgba = [ params.channels[0] ? c : 0, diff --git a/src/effects/xor.js b/src/effects/xor.js index 7f40876..8791552 100644 --- a/src/effects/xor.js +++ b/src/effects/xor.js @@ -10,10 +10,9 @@ module.exports = function (tgen) { zoom: [0.1, 77], }, function ($g, params) { - const width = $g.texture.width; const height = $g.texture.height; - + let x, y, color; params.zoom = $g.randIntByArraySeed(params.zoom, [1, 10]); diff --git a/src/filters/blur.js b/src/filters/blur.js index 00e02b5..d029366 100644 --- a/src/filters/blur.js +++ b/src/filters/blur.js @@ -1,7 +1,6 @@ module.exports = function (tgen) { // blur tgen.filter("blur", {}, function ($g, params) { - const divisor = 9; $g.do("convolute", { diff --git a/src/filters/colorize.js b/src/filters/colorize.js index c61a8f5..4c1a496 100644 --- a/src/filters/colorize.js +++ b/src/filters/colorize.js @@ -16,7 +16,6 @@ module.exports = function (tgen) { }); $g.walk(function (color) { - let avg, c; if ($g.colormap.data) { diff --git a/src/filters/convolute.js b/src/filters/convolute.js index 3784aba..d51b309 100644 --- a/src/filters/convolute.js +++ b/src/filters/convolute.js @@ -76,10 +76,9 @@ module.exports = function (tgen) { let x, y, r, g, b, a, cx, cy, wt, scy, scx, color; let size = $g.texture.size(); - + for (y = 0; y < $g.texture.height; y++) { for (x = 0; x < $g.texture.width; x++) { - r = 0; g = 0; b = 0; @@ -87,7 +86,6 @@ module.exports = function (tgen) { for (cy = 0; cy < side; cy++) { for (cx = 0; cx < side; cx++) { - wt = params.weights[cy * side + cx]; scy = y + cy - halfSide; scx = x + cx - halfSide; diff --git a/src/filters/vibrance.js b/src/filters/vibrance.js index 7ef3095..7718444 100644 --- a/src/filters/vibrance.js +++ b/src/filters/vibrance.js @@ -12,7 +12,6 @@ module.exports = function (tgen) { const adjust = params.adjust * -1; $g.walk(function (color) { - const avg = (color[0] + color[1] + color[2]) / 3; const max = Math.max(color[0], color[1], color[2]); const amt = (((Math.abs(max - avg) * 2) / 255) * adjust) / 100; diff --git a/src/functions/copy.js b/src/functions/copy.js index 137f9f8..536c2c3 100644 --- a/src/functions/copy.js +++ b/src/functions/copy.js @@ -1,28 +1,26 @@ module.exports = function (tgen) { + // layer copy to the current layer + tgen.function( + "copy", + { + layer: null, + }, + function ($g, params) { + if (typeof params == "number") { + params = { + layer: params, + }; + } - // layer copy to the current layer - tgen.function( - "copy", - { - layer: null, - }, - function ($g, params) { - if (typeof params == "number") { - params = { - layer: params, - }; - } + if (params.layer === null) { + params.layer = $g.layers.length - 1; + } - if (params.layer === null) { - params.layer = $g.layers.length - 1; - } + if ($g.layers[params.layer] != undefined) { + $g.texture.data = $g.layerCopy(params.layer); + } - if ($g.layers[params.layer] != undefined) { - $g.texture.data = $g.layerCopy(params.layer); - } - - return params; - } - ); - -}; \ No newline at end of file + return params; + } + ); +}; diff --git a/src/functions/equirectangular.js b/src/functions/equirectangular.js index 168d965..ecb43ca 100644 --- a/src/functions/equirectangular.js +++ b/src/functions/equirectangular.js @@ -1,58 +1,56 @@ module.exports = function (tgen) { - - // WIP - equirectangular - // https://stackoverflow.com/questions/51869432/converting-360-degree-view-to-equirectangular-in-node-js - - tgen.function( - "equirectangular", - { - layer: null, - }, - function ($g, params) { - if (params.layer === null) { - params.layer = $g.layers.length - 1; - } - - const buffer = new $g.buffer(); - const width = $g.texture.width; - const height = $g.texture.height; - const PI = Math.PI; - const radius = height / 2; - const centerx = width / 2; - const centery = height / 2; - - let size = $g.texture.size(); - let x, y, rgba, offset, theta_deg, phi_deg, r, dx, dy, inputx, inputy; - - for (x = 0; x < width; x++) { - for (y = 0; y < height; y++) { - theta_deg = 360 - (x * 360) / width - 180; - phi_deg = 180 - (y * 180) / height; - r = Math.sin((phi_deg * PI) / 180); - dx = Math.cos((theta_deg * PI) / 180) * r; - dy = Math.sin((theta_deg * PI) / 180) * r; - inputx = Math.round(dx * radius + centerx); - inputy = Math.round(dy * radius + centery); - - rgba = $g.point.get(inputx, inputy); - - // 32 32 180 90 1 1.2246467991473532e-16 -1 32 0 - //console.log(x, y, theta_deg, phi_deg, r, dx, dy, inputx, inputy); - - offset = $g.texture.offset(x, y); - buffer.data[offset] = rgba[0]; - buffer.data[offset + 1] = rgba[1]; - buffer.data[offset + 2] = rgba[2]; - buffer.data[offset + 3] = rgba[3]; - } - } - - while (size--) { - $g.texture.data[size] = buffer.data[size]; - } - - return params; + // WIP - equirectangular + // https://stackoverflow.com/questions/51869432/converting-360-degree-view-to-equirectangular-in-node-js + + tgen.function( + "equirectangular", + { + layer: null, + }, + function ($g, params) { + if (params.layer === null) { + params.layer = $g.layers.length - 1; + } + + const buffer = new $g.buffer(); + const width = $g.texture.width; + const height = $g.texture.height; + const PI = Math.PI; + const radius = height / 2; + const centerx = width / 2; + const centery = height / 2; + + let size = $g.texture.size(); + let x, y, rgba, offset, theta_deg, phi_deg, r, dx, dy, inputx, inputy; + + for (x = 0; x < width; x++) { + for (y = 0; y < height; y++) { + theta_deg = 360 - (x * 360) / width - 180; + phi_deg = 180 - (y * 180) / height; + r = Math.sin((phi_deg * PI) / 180); + dx = Math.cos((theta_deg * PI) / 180) * r; + dy = Math.sin((theta_deg * PI) / 180) * r; + inputx = Math.round(dx * radius + centerx); + inputy = Math.round(dy * radius + centery); + + rgba = $g.point.get(inputx, inputy); + + // 32 32 180 90 1 1.2246467991473532e-16 -1 32 0 + //console.log(x, y, theta_deg, phi_deg, r, dx, dy, inputx, inputy); + + offset = $g.texture.offset(x, y); + buffer.data[offset] = rgba[0]; + buffer.data[offset + 1] = rgba[1]; + buffer.data[offset + 2] = rgba[2]; + buffer.data[offset + 3] = rgba[3]; } - ); + } + + while (size--) { + $g.texture.data[size] = buffer.data[size]; + } -}; \ No newline at end of file + return params; + } + ); +}; diff --git a/src/functions/index.js b/src/functions/index.js index ef5eeeb..c0d713c 100644 --- a/src/functions/index.js +++ b/src/functions/index.js @@ -5,5 +5,5 @@ module.exports = function (tgen) { require("./merge.js")(tgen); require("./mergeall.js")(tgen); require("./rotate.js")(tgen); - require("./rot90.js")(tgen); + require("./rot90.js")(tgen); }; diff --git a/src/functions/map.js b/src/functions/map.js index eafbfcb..47962a4 100644 --- a/src/functions/map.js +++ b/src/functions/map.js @@ -1,72 +1,69 @@ module.exports = function (tgen) { + // map effect - aDDict2 + tgen.function( + "map", + { + seed: null, + xamount: [4, 512], + yamount: [4, 512], + xchannel: [0, 2], // 0=r, 1=g, 2=b, 3=a + ychannel: [0, 2], // 0=r, 1=g, 2=b, 3=a + xlayer: 0, + ylayer: 0, + }, + function ($g, params) { + params.xamount = $g.randByArraySeed(params.xamount); + params.yamount = $g.randByArraySeed(params.yamount); + params.xchannel = $g.randByArraySeed(params.xchannel); + params.ychannel = $g.randByArraySeed(params.ychannel); + params.xlayer = $g.randByArraySeed(params.xlayer); + params.ylayer = $g.randByArraySeed(params.ylayer); - // map effect - aDDict2 - tgen.function( - "map", - { - seed: null, - xamount: [4, 512], - yamount: [4, 512], - xchannel: [0, 2], // 0=r, 1=g, 2=b, 3=a - ychannel: [0, 2], // 0=r, 1=g, 2=b, 3=a - xlayer: 0, - ylayer: 0, - }, - function ($g, params) { - params.xamount = $g.randByArraySeed(params.xamount); - params.yamount = $g.randByArraySeed(params.yamount); - params.xchannel = $g.randByArraySeed(params.xchannel); - params.ychannel = $g.randByArraySeed(params.ychannel); - params.xlayer = $g.randByArraySeed(params.xlayer); - params.ylayer = $g.randByArraySeed(params.ylayer); + const buffer = new $g.buffer(); + const width = $g.texture.width; + const height = $g.texture.height; - const buffer = new $g.buffer(); - const width = $g.texture.width; - const height = $g.texture.height; + let size = $g.texture.size(); + let ximageData = $g.layers[params.xlayer]; + let yimageData = $g.layers[params.ylayer]; + let x, y, ox, oy, rgba, offset, sx, sy; - let size = $g.texture.size(); - let ximageData = $g.layers[params.xlayer]; - let yimageData = $g.layers[params.ylayer]; - let x, y, ox, oy, rgba, offset, sx, sy; + if (!ximageData || !ximageData[0]) { + return; + } - if (!ximageData || !ximageData[0]) { - return; - } + for (x = 0; x < width; x++) { + for (y = 0; y < height; y++) { + offset = $g.texture.offset(x, y); + sx = ximageData[offset + params.xchannel]; + sy = yimageData[offset + params.ychannel]; - for (x = 0; x < width; x++) { - for (y = 0; y < height; y++) { - - offset = $g.texture.offset(x, y); - sx = ximageData[offset + params.xchannel]; - sy = yimageData[offset + params.ychannel]; + if (width % 16 == 0) { + ox = $g.wrapx(x + ((sx * params.xamount * width) >> 16)); + } else { + ox = x + (sx * params.xamount * width) / (width * width); + } - if (width % 16 == 0) { - ox = $g.wrapx(x + ((sx * params.xamount * width) >> 16)); - } else { - ox = x + (sx * params.xamount * width) / (width * width); - } + if (height % 16 == 0) { + oy = $g.wrapy(y + ((sy * params.yamount * height) >> 16)); + } else { + oy = y + (sy * params.yamount * height) / (height * height); + } - if (height % 16 == 0) { - oy = $g.wrapy(y + ((sy * params.yamount * height) >> 16)); - } else { - oy = y + (sy * params.yamount * height) / (height * height); - } + rgba = $g.point.get(ox, oy); - rgba = $g.point.get(ox, oy); - - buffer.data[offset] = rgba[0]; - buffer.data[offset + 1] = rgba[1]; - buffer.data[offset + 2] = rgba[2]; - buffer.data[offset + 3] = rgba[3]; - } - } - - while (size--) { - $g.texture.data[size] = buffer.data[size]; - } - - return params; + buffer.data[offset] = rgba[0]; + buffer.data[offset + 1] = rgba[1]; + buffer.data[offset + 2] = rgba[2]; + buffer.data[offset + 3] = rgba[3]; } - ); + } + + while (size--) { + $g.texture.data[size] = buffer.data[size]; + } -}; \ No newline at end of file + return params; + } + ); +}; diff --git a/src/functions/merge.js b/src/functions/merge.js index f189766..fc91031 100644 --- a/src/functions/merge.js +++ b/src/functions/merge.js @@ -1,38 +1,36 @@ module.exports = function (tgen) { + // merge one or more layer + tgen.function( + "merge", + { + blend: "opacity", + opacity: null, + layer: 0, + }, + function ($g, params) { + if ($g.layers[params.layer] === undefined) { + return params; + } - // merge one or more layer - tgen.function( - "merge", - { - blend: "opacity", - opacity: null, - layer: 0, - }, - function ($g, params) { - if ($g.layers[params.layer] === undefined) { - return params; - } + const imageData = $g.layers[params.layer]; + let x, y, offset; - const imageData = $g.layers[params.layer]; - let x, y, offset; + for (y = 0; y < $g.texture.height; y++) { + for (x = 0; x < $g.texture.width; x++) { + offset = $g.texture.offset(x, y); - for (y = 0; y < $g.texture.height; y++) { - for (x = 0; x < $g.texture.width; x++) { - offset = $g.texture.offset(x, y); + $g.point.rgba = [ + imageData[offset], + imageData[offset + 1], + imageData[offset + 2], + params.opacity ? params.opacity : imageData[offset + 3], + ]; - $g.point.rgba = [ - imageData[offset], - imageData[offset + 1], - imageData[offset + 2], - params.opacity ? params.opacity : imageData[offset + 3], - ]; - - $g.point.set(x, y); - } - } - - return params; + $g.point.set(x, y); } - ); + } -}; \ No newline at end of file + return params; + } + ); +}; diff --git a/src/functions/mergeall.js b/src/functions/mergeall.js index 20af8a6..f457a5c 100644 --- a/src/functions/mergeall.js +++ b/src/functions/mergeall.js @@ -1,34 +1,30 @@ module.exports = function (tgen) { + // merge all layers + tgen.function( + "mergeall", + { + blend: "opacity", + firstcopy: true, + opacity: null, + }, + function ($g, params) { + const length = $g.layers.length; - // merge all layers - tgen.function( - "mergeall", - { - blend: "opacity", - firstcopy: true, - opacity: null, - }, - function ($g, params) { - - const length = $g.layers.length; - - for (let i = 0; i <= length; i++) { - - if (i === 0 && params.firstcopy === true) { - $g.do("copy", { - layer: 0, - }); - } else { - $g.do("merge", { - blend: params.blend, - layer: i, - opacity: params.opacity, - }); - } - } - - return params; + for (let i = 0; i <= length; i++) { + if (i === 0 && params.firstcopy === true) { + $g.do("copy", { + layer: 0, + }); + } else { + $g.do("merge", { + blend: params.blend, + layer: i, + opacity: params.opacity, + }); } - ); + } -}; \ No newline at end of file + return params; + } + ); +}; diff --git a/src/functions/rot90.js b/src/functions/rot90.js index 7ed16fb..bca85be 100644 --- a/src/functions/rot90.js +++ b/src/functions/rot90.js @@ -1,20 +1,18 @@ module.exports = function (tgen) { + tgen.function( + "rot90", + { + seed: null, + times: [1, 3], + blend: tgen.blendSafe(), + }, + function ($g, params) { + params.type = 1; + params.angle = 90; - tgen.function( - "rot90", - { - seed: null, - times: [1, 3], - blend: tgen.blendSafe, - }, - function ($g, params) { - params.type = 1; - params.angle = 90; + tgen.effects["rotate"]($g, params); - tgen.effects["rotate"]($g, params); - - return params; - } - ); - -}; \ No newline at end of file + return params; + } + ); +}; diff --git a/src/functions/rotate.js b/src/functions/rotate.js index 6feeaf8..833c5c6 100644 --- a/src/functions/rotate.js +++ b/src/functions/rotate.js @@ -1,93 +1,90 @@ module.exports = function (tgen) { + tgen.function( + "rotate", + { + seed: null, + angle: 90, + times: [1, 3], + type: 1, + blend: tgen.blendSafe(), + }, + function ($g, params) { + params.type = $g.randByArraySeed(params.type); + + if (params.angle === null) { + params.angle = $g.randItemByArraySeed(params.angle, [90, 180, 270]); + } else { + params.angle = $g.randByArraySeed(params.angle); + } + + params.times = $g.randByArraySeed(params.times); + + const buffer = new $g.buffer(); + const width = $g.texture.width; + const height = $g.texture.height; + + let rad = params.angle * (Math.PI / 180); + let size = $g.texture.size(); + let i, x, y, rgba, rgba1, rgba2, offset, newX, newY; + + const rotateType1 = function () { + for (x = 0; x < width; x++) { + for (y = 0; y < height; y++) { + newX = Math.ceil(Math.cos(rad) * x - Math.sin(rad) * y); + newY = Math.ceil(Math.sin(rad) * x + Math.cos(rad) * y); + + rgba1 = $g.point.get(x, y); + rgba2 = $g.point.get(newX, newY); + rgba = $g.blend(params.blend, rgba2, rgba1); + + offset = $g.texture.offset(x, y); + buffer.data[offset] = rgba[0]; + buffer.data[offset + 1] = rgba[1]; + buffer.data[offset + 2] = rgba[2]; + buffer.data[offset + 3] = rgba[3]; + } + } - tgen.function( - "rotate", - { - seed: null, - angle: 90, - times: [1, 3], - type: 1, - blend: tgen.blendSafe, - }, - function ($g, params) { - - params.type = $g.randByArraySeed(params.type); - - if (params.angle === null) { - params.angle = $g.randItemByArraySeed(params.angle, [90, 180, 270]); - } else { - params.angle = $g.randByArraySeed(params.angle); - } - - params.times = $g.randByArraySeed(params.times); - - const buffer = new $g.buffer(); - const width = $g.texture.width; - const height = $g.texture.height; - - let rad = params.angle * (Math.PI / 180); - let size = $g.texture.size(); - let i, x, y, rgba, rgba1, rgba2, offset, newX, newY; - - const rotateType1 = function () { - for (x = 0; x < width; x++) { - for (y = 0; y < height; y++) { - newX = Math.ceil(Math.cos(rad) * x - Math.sin(rad) * y); - newY = Math.ceil(Math.sin(rad) * x + Math.cos(rad) * y); - - rgba1 = $g.point.get(x, y); - rgba2 = $g.point.get(newX, newY); - rgba = $g.blend(params.blend, rgba2, rgba1); - - offset = $g.texture.offset(x, y); - buffer.data[offset] = rgba[0]; - buffer.data[offset + 1] = rgba[1]; - buffer.data[offset + 2] = rgba[2]; - buffer.data[offset + 3] = rgba[3]; - } - } - - while (size--) { - $g.texture.data[size] = buffer.data[size]; - } - }; - - const rotateType2 = function () { - for (x = 0; x < width; x++) { - for (y = 0; y < height; y++) { - newX = Math.ceil(Math.cos(rad) * x - Math.sin(rad) * y); - newY = Math.ceil(Math.sin(rad) * x + Math.cos(rad) * y); + while (size--) { + $g.texture.data[size] = buffer.data[size]; + } + }; - rgba1 = $g.point.get(x, y); - rgba2 = $g.point.get(newX, newY); - rgba = $g.blend(params.blend, rgba2, rgba1); + const rotateType2 = function () { + for (x = 0; x < width; x++) { + for (y = 0; y < height; y++) { + newX = Math.ceil(Math.cos(rad) * x - Math.sin(rad) * y); + newY = Math.ceil(Math.sin(rad) * x + Math.cos(rad) * y); - offset = $g.texture.offset(newX, newY); + rgba1 = $g.point.get(x, y); + rgba2 = $g.point.get(newX, newY); + rgba = $g.blend(params.blend, rgba2, rgba1); - buffer.data[offset] = rgba[0]; - buffer.data[offset + 1] = rgba[1]; - buffer.data[offset + 2] = rgba[2]; - buffer.data[offset + 3] = rgba[3]; - } - } - while (size--) { - $g.texture.data[size] = buffer.data[size]; - } - }; + offset = $g.texture.offset(newX, newY); - for (i = 1; i <= params.times; i++) { - size = $g.texture.size(); - rad = i * params.angle * (Math.PI / 180); + buffer.data[offset] = rgba[0]; + buffer.data[offset + 1] = rgba[1]; + buffer.data[offset + 2] = rgba[2]; + buffer.data[offset + 3] = rgba[3]; + } + } + while (size--) { + $g.texture.data[size] = buffer.data[size]; + } + }; - if (params.type === 1) { - rotateType1(); - } else { - rotateType2(); - } - } + for (i = 1; i <= params.times; i++) { + size = $g.texture.size(); + rad = i * params.angle * (Math.PI / 180); - return params; + if (params.type === 1) { + rotateType1(); + } else { + rotateType2(); } - ); + } -}; \ No newline at end of file + return params; + } + ); +}; diff --git a/src/shapes/circle.js b/src/shapes/circle.js index 9a8cef9..947173a 100644 --- a/src/shapes/circle.js +++ b/src/shapes/circle.js @@ -1,24 +1,19 @@ module.exports = function (tgen) { + // circle + tgen.shape("circle", function ($g, x1, y1, radius, centered) { + if (centered == undefined) { + x1 = x1 + radius; + y1 = y1 + radius; + } - // circle - tgen.shape("circle", function ($g, x1, y1, radius, centered) { - - if (centered == undefined) { - x1 = x1 + radius; - y1 = y1 + radius; - } + let x, y, h; - let x, y, h; + for (x = -radius; x < radius; x++) { + h = Math.round(Math.sqrt(radius * radius - x * x)); - for (x = -radius; x < radius; x++) { - - h = Math.round(Math.sqrt(radius * radius - x * x)); - - for (y = -h; y < h; y++) { - $g.point.set(x1 + x, y1 + y); - } - - } - }); - -}; \ No newline at end of file + for (y = -h; y < h; y++) { + $g.point.set(x1 + x, y1 + y); + } + } + }); +}; diff --git a/src/shapes/colorline.js b/src/shapes/colorline.js index 88ed970..a8cf9d4 100644 --- a/src/shapes/colorline.js +++ b/src/shapes/colorline.js @@ -1,41 +1,37 @@ module.exports = function (tgen) { + // colorLine + tgen.shape( + "colorLine", + function ($g, x1, y1, x2, y2, colorMap, weight, fadeinout) { + const colorMapSize = colorMap.length; + const d = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); + const dx = (x2 - x1) / d; + const dy = (y2 - y1) / d; - // colorLine - tgen.shape( - "colorLine", - function ($g, x1, y1, x2, y2, colorMap, weight, fadeinout) { + let percent, index, w, i, alpha; + let x = 0; + let y = 0; - const colorMapSize = colorMap.length; - const d = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); - const dx = (x2 - x1) / d; - const dy = (y2 - y1) / d; + weight = weight ? weight : 1; - let percent, index, w, i, alpha; - let x = 0; - let y = 0; + for (i = 0; i < d; i++) { + x = x1 + dx * i; + y = y1 + dy * i; - weight = weight ? weight : 1; + percent = i / d; - for (i = 0; i < d; i++) { + index = parseInt(colorMapSize * percent); + $g.point.rgba = colorMap[index]; - x = x1 + dx * i; - y = y1 + dy * i; - - percent = i / d; - - index = parseInt(colorMapSize * percent); - $g.point.rgba = colorMap[index]; - - if (fadeinout) { - alpha = 255 * Math.sin(percent * $g.calc.pi); - $g.point.rgba[3] = alpha; // * $g.easing['InOutQuad'](percent); - } - - for (w = 1; w <= weight; w++) { - $g.point.set(x, y + w); - } - } + if (fadeinout) { + alpha = 255 * Math.sin(percent * $g.calc.pi); + $g.point.rgba[3] = alpha; // * $g.easing['InOutQuad'](percent); } - ); -}; \ No newline at end of file + for (w = 1; w <= weight; w++) { + $g.point.set(x, y + w); + } + } + } + ); +}; diff --git a/src/shapes/line.js b/src/shapes/line.js index 25244e3..a2f079f 100644 --- a/src/shapes/line.js +++ b/src/shapes/line.js @@ -1,21 +1,18 @@ module.exports = function (tgen) { + // line + tgen.shape("line", function ($g, x1, y1, x2, y2) { + const d = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); + const dx = (x2 - x1) / d; + const dy = (y2 - y1) / d; - // line - tgen.shape("line", function ($g, x1, y1, x2, y2) { + let x = 0; + let y = 0; + let i; - const d = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); - const dx = (x2 - x1) / d; - const dy = (y2 - y1) / d; - - let x = 0; - let y = 0; - let i; - - for (i = 0; i < d; i++) { - x = x1 + dx * i; - y = y1 + dy * i; - $g.point.set(x, y); - } - }); - -}; \ No newline at end of file + for (i = 0; i < d; i++) { + x = x1 + dx * i; + y = y1 + dy * i; + $g.point.set(x, y); + } + }); +}; diff --git a/src/shapes/pyramid.js b/src/shapes/pyramid.js index dd61184..b56ed58 100644 --- a/src/shapes/pyramid.js +++ b/src/shapes/pyramid.js @@ -1,44 +1,41 @@ module.exports = function (tgen) { - - // pyramid - tgen.shape( - "pyramid", - function ($g, x, y, sizeX, sizeY, centered, rgba, dynamicopacity) { - - const halfX = parseInt(sizeX / 2, 10); - const halfY = parseInt(sizeY / 2, 10); - - let c, o, cx, cy, ix, iy; - - if (centered != true) { - x = x + halfX; - y = y + halfY; + // pyramid + tgen.shape( + "pyramid", + function ($g, x, y, sizeX, sizeY, centered, rgba, dynamicopacity) { + const halfX = parseInt(sizeX / 2, 10); + const halfY = parseInt(sizeY / 2, 10); + + let c, o, cx, cy, ix, iy; + + if (centered != true) { + x = x + halfX; + y = y + halfY; + } + + for (ix = -halfX; ix < halfX; ix++) { + for (iy = -halfY; iy < halfY; iy++) { + cx = (0.25 - Math.abs(ix / sizeX)) * 255; + cy = (0.25 - Math.abs(iy / sizeY)) * 255; + c = cx + cy; + + if (c > 1) { + if (dynamicopacity) { + o = c; + } else { + o = rgba[3]; } - for (ix = -halfX; ix < halfX; ix++) { - for (iy = -halfY; iy < halfY; iy++) { - cx = (0.25 - Math.abs(ix / sizeX)) * 255; - cy = (0.25 - Math.abs(iy / sizeY)) * 255; - c = cx + cy; - - if (c > 1) { - if (dynamicopacity) { - o = c; - } else { - o = rgba[3]; - } - - $g.point.rgba = [ - (rgba[0] / 255) * c, - (rgba[1] / 255) * c, - (rgba[2] / 255) * c, - o, - ]; - $g.point.set(x + ix, y + iy); - } - } - } + $g.point.rgba = [ + (rgba[0] / 255) * c, + (rgba[1] / 255) * c, + (rgba[2] / 255) * c, + o, + ]; + $g.point.set(x + ix, y + iy); + } } - ); - -}; \ No newline at end of file + } + } + ); +}; diff --git a/src/shapes/rect.js b/src/shapes/rect.js index ead3509..d44aadd 100644 --- a/src/shapes/rect.js +++ b/src/shapes/rect.js @@ -1,21 +1,17 @@ module.exports = function (tgen) { + // rect + tgen.shape("rect", function ($g, x, y, sizeX, sizeY, centered) { + if (centered !== undefined) { + x = x - parseInt(sizeX / 2, 10); + y = y - parseInt(sizeY / 2, 10); + } - // rect - tgen.shape("rect", function ($g, x, y, sizeX, sizeY, centered) { - - if (centered !== undefined) { - x = x - parseInt(sizeX / 2, 10); - y = y - parseInt(sizeY / 2, 10); - } + let ix, iy; - let ix, iy; - - for (ix = 0; ix < sizeX; ix++) { - for (iy = 0; iy < sizeY; iy++) { - $g.point.set(x + ix, y + iy); - } - } - - }); - -}; \ No newline at end of file + for (ix = 0; ix < sizeX; ix++) { + for (iy = 0; iy < sizeY; iy++) { + $g.point.set(x + ix, y + iy); + } + } + }); +}; diff --git a/src/shapes/sphere.js b/src/shapes/sphere.js index bd86ed3..088d628 100644 --- a/src/shapes/sphere.js +++ b/src/shapes/sphere.js @@ -1,37 +1,32 @@ module.exports = function (tgen) { - - // sphere - tgen.shape( - "sphere", - function ($g, x1, y1, radius, centered, rgba, dynamicopacity) { - - let c, o, h, x, y; - - if (centered == undefined) { - x1 = x1 + radius; - y1 = y1 + radius; - } - - for (x = -radius; x < radius; x++) { - - h = parseInt(Math.sqrt(radius * radius - x * x), 10); - - for (y = -h; y < h; y++) { - c = - Math.min( - 255, - Math.max(0, 255 - (255 * Math.sqrt(y * y + x * x)) / (radius / 2)) - ) / 255; - - if (c > 0) { - o = dynamicopacity ? c * 255 : rgba[3]; - $g.point.rgba = [rgba[0] * c, rgba[1] * c, rgba[2] * c, o]; - $g.point.set(x1 + x, y1 + y); - } - - } - } + // sphere + tgen.shape( + "sphere", + function ($g, x1, y1, radius, centered, rgba, dynamicopacity) { + let c, o, h, x, y; + + if (centered == undefined) { + x1 = x1 + radius; + y1 = y1 + radius; + } + + for (x = -radius; x < radius; x++) { + h = parseInt(Math.sqrt(radius * radius - x * x), 10); + + for (y = -h; y < h; y++) { + c = + Math.min( + 255, + Math.max(0, 255 - (255 * Math.sqrt(y * y + x * x)) / (radius / 2)) + ) / 255; + + if (c > 0) { + o = dynamicopacity ? c * 255 : rgba[3]; + $g.point.rgba = [rgba[0] * c, rgba[1] * c, rgba[2] * c, o]; + $g.point.set(x1 + x, y1 + y); + } } - ); - -}; \ No newline at end of file + } + } + ); +}; diff --git a/src/tgen-base-common.js b/src/tgen-base-common.js index 14bbdae..20e2bcb 100644 --- a/src/tgen-base-common.js +++ b/src/tgen-base-common.js @@ -5,7 +5,7 @@ * https://texture-generator.com/ * * @copyright 2015-2022 Tamas Schalk - * @version 1.4.15 + * @version 1.4.16 * @license MIT * */ @@ -23,28 +23,34 @@ const SeamlessTextureGenerator = { colormaps: {}, config: {}, - blendFlat: ["lighten", "screen", "opacity"], - - blendSafe: [ - "average", - "lighten", - "linearburn", - "linearlight", - "difference", - "difference-invert", - "screen", - "lineardodge", - "lineardodge-invert", - "opacity", - "exclusion", - ], - - randomRGBA: [ - [0, 255], - [0, 255], - [0, 255], - [64, 255], - ], + blendFlat: function () { + return ["lighten", "screen", "opacity"]; + }, + + blendSafe: function () { + return [ + "average", + "lighten", + "linearburn", + "linearlight", + "difference", + "difference-invert", + "screen", + "lineardodge", + "lineardodge-invert", + "opacity", + "exclusion", + ]; + }, + + randomRGBA: function () { + return [ + [0, 255], + [0, 255], + [0, 255], + [64, 255], + ]; + }, effect: function (name, defaults, func, prepare) { this.defaults[name] = defaults; diff --git a/src/tgen-base-with-presets.js b/src/tgen-base-with-presets.js index 8d6b8a6..c52ada2 100644 --- a/src/tgen-base-with-presets.js +++ b/src/tgen-base-with-presets.js @@ -5,7 +5,7 @@ * https://texture-generator.com/ * * @copyright 2015-2022 Tamas Schalk - * @version 1.4.15 + * @version 1.4.16 * @license MIT * */ diff --git a/src/tgen-base.js b/src/tgen-base.js index 8e1728d..d43de5e 100644 --- a/src/tgen-base.js +++ b/src/tgen-base.js @@ -5,7 +5,7 @@ * https://texture-generator.com/ * * @copyright 2015-2022 Tamas Schalk - * @version 1.4.15 + * @version 1.4.16 * @license MIT * */ diff --git a/src/tgen-generator.js b/src/tgen-generator.js index 8c87a16..2da418f 100644 --- a/src/tgen-generator.js +++ b/src/tgen-generator.js @@ -1,9 +1,8 @@ module.exports = function (tgen) { tgen.getGenerator = function (width, height, normalize) { - const self = this; const time = {}; // time object for stat - let rendered = []; // rendered effects real params + let rendered = []; // rendered effects real params let wha = null; // width and height average // generator object @@ -49,7 +48,6 @@ module.exports = function (tgen) { // log generator.log = function () { if (this.debug && arguments.length > 0) { - const output = []; for (let i = 0; i < arguments.length; i++) { @@ -57,7 +55,6 @@ module.exports = function (tgen) { } console.log(output); - } }; @@ -96,7 +93,6 @@ module.exports = function (tgen) { }; this.export = function (normalize, texture) { - normalize = normalize !== undefined ? normalize : generator.normalize; texture = texture ? texture : this.data; @@ -177,7 +173,6 @@ module.exports = function (tgen) { }; this.pattern = function (val, max) { - let smax, sval; let s = val / max; @@ -216,7 +211,6 @@ module.exports = function (tgen) { }; this.set = function (x, y, values) { - const offset = this.offset(x, y); this.data[offset] = values[0]; @@ -226,7 +220,6 @@ module.exports = function (tgen) { }; this.get = function (x, y) { - const offset = this.offset(x, y); return [ @@ -238,7 +231,6 @@ module.exports = function (tgen) { }; this.alpha = function (type) { - let size; switch (type) { @@ -254,7 +246,6 @@ module.exports = function (tgen) { // copy canvas to texture this.canvas = function (canvas) { - let size = this.size(); const context = canvas.getContext("2d"); @@ -263,7 +254,6 @@ module.exports = function (tgen) { while (size--) { generator.texture.data[size] = image.data[size]; } - }; if (this.data === null) { @@ -275,7 +265,6 @@ module.exports = function (tgen) { generator.texture = new generator.buffer(); generator.layerCopy = function (layerId) { - const layer = this.layers[layerId]; let data = []; @@ -301,7 +290,6 @@ module.exports = function (tgen) { // random int min max generator.randInt = function (min, max, even) { - let mul; const norm = generator.minMaxNormalize(min, max); @@ -321,7 +309,6 @@ module.exports = function (tgen) { // random int min max by seed generator.randIntSeed = function (min, max, even) { - let mul; const norm = generator.minMaxNormalize(min, max); @@ -467,7 +454,6 @@ module.exports = function (tgen) { // get random property from object generator.randProperty = function (current, obj) { - if (current !== undefined && current !== null && current !== "random") { generator.calc.seed++; return current; @@ -667,10 +653,10 @@ module.exports = function (tgen) { return x === 0 ? 0 : x === 1 - ? 1 - : x < 0.5 - ? Math.pow(2, 20 * x - 10) / 2 - : (2 - Math.pow(2, -20 * x + 10)) / 2; + ? 1 + : x < 0.5 + ? Math.pow(2, 20 * x - 10) / 2 + : (2 - Math.pow(2, -20 * x + 10)) / 2; }, InCirc(x) { @@ -699,39 +685,39 @@ module.exports = function (tgen) { return x < 0.5 ? (Math.pow(2 * x, 2) * ((this.c2 + 1) * 2 * x - this.c2)) / 2 : (Math.pow(2 * x - 2, 2) * ((this.c2 + 1) * (x * 2 - 2) + this.c2) + - 2) / - 2; + 2) / + 2; }, InElastic(x) { return x === 0 ? 0 : x === 1 - ? 1 - : -Math.pow(2, 10 * x - 10) * Math.sin((x * 10 - 10.75) * this.c4); + ? 1 + : -Math.pow(2, 10 * x - 10) * Math.sin((x * 10 - 10.75) * this.c4); }, OutElastic(x) { return x === 0 ? 0 : x === 1 - ? 1 - : Math.pow(2, -10 * x) * Math.sin((x * 10 - 0.75) * this.c4) + 1; + ? 1 + : Math.pow(2, -10 * x) * Math.sin((x * 10 - 0.75) * this.c4) + 1; }, InOutElastic(x) { return x === 0 ? 0 : x === 1 - ? 1 - : x < 0.5 - ? -( - Math.pow(2, 20 * x - 10) * Math.sin((20 * x - 11.125) * this.c5) - ) / 2 - : (Math.pow(2, -20 * x + 10) * - Math.sin((20 * x - 11.125) * this.c5)) / + ? 1 + : x < 0.5 + ? -( + Math.pow(2, 20 * x - 10) * Math.sin((20 * x - 11.125) * this.c5) + ) / 2 + : (Math.pow(2, -20 * x + 10) * + Math.sin((20 * x - 11.125) * this.c5)) / 2 + - 1; + 1; }, InBounce(x) { @@ -803,7 +789,6 @@ module.exports = function (tgen) { }, pingpong: function (value, min, max) { - const range = max - min; const range2 = range + range; @@ -819,7 +804,6 @@ module.exports = function (tgen) { }, cosine: function (a, b, x) { - const ft = x * generator.calc.pi; const f = (1 - Math.cos(ft)) * 0.5; @@ -827,7 +811,6 @@ module.exports = function (tgen) { }, catmullrom: function (v0, v1, v2, v3, x, distance) { - const xx = x / distance; const P = v3 - v2 - (v0 - v1); const Q = v0 - v1 - P; @@ -839,7 +822,6 @@ module.exports = function (tgen) { if (t > 1) t = 1; return t; - }, }, }; @@ -851,7 +833,6 @@ module.exports = function (tgen) { size: 255, init: function (colormap, size, callback) { - this.data = null; this.size = size == undefined ? width : size; @@ -883,7 +864,6 @@ module.exports = function (tgen) { } if (typeof colormap == "string") { - if (colormap.charAt(0) == "!") { colormap = colormap.substring(1); this.reverse = true; @@ -906,13 +886,11 @@ module.exports = function (tgen) { }, random: function (count) { - count = count ? count : generator.randIntSeed(2, 7); const map = []; for (let i = 0; i <= count; i++) { - map[i] = { percent: parseInt((i / count) * 100), rgba: [ @@ -922,18 +900,15 @@ module.exports = function (tgen) { 255, ], }; - } return map; }, render: function (items) { - const colormap = []; for (let p = 0; p < items.length - 1; p++) { - const current = items[p]; const next = items[p + 1]; const currentIndex = Math.round(this.size * (current.percent / 100)); @@ -942,22 +917,21 @@ module.exports = function (tgen) { let idx; for (let i = currentIndex; i <= nextIndex; i++) { - idx = this.reverse ? this.size - i : i; colormap[idx] = [ current.rgba[0] + - ((i - currentIndex) / (nextIndex - currentIndex)) * - (next.rgba[0] - current.rgba[0]), + ((i - currentIndex) / (nextIndex - currentIndex)) * + (next.rgba[0] - current.rgba[0]), current.rgba[1] + - ((i - currentIndex) / (nextIndex - currentIndex)) * - (next.rgba[1] - current.rgba[1]), + ((i - currentIndex) / (nextIndex - currentIndex)) * + (next.rgba[1] - current.rgba[1]), current.rgba[2] + - ((i - currentIndex) / (nextIndex - currentIndex)) * - (next.rgba[2] - current.rgba[2]), + ((i - currentIndex) / (nextIndex - currentIndex)) * + (next.rgba[2] - current.rgba[2]), current.rgba[3] + - ((i - currentIndex) / (nextIndex - currentIndex)) * - (next.rgba[3] - current.rgba[3]), + ((i - currentIndex) / (nextIndex - currentIndex)) * + (next.rgba[3] - current.rgba[3]), ]; } } @@ -966,7 +940,6 @@ module.exports = function (tgen) { }, get: function (index, rgba) { - const indexNew = generator.calc.pingpong(parseInt(index), 0, this.size); const color = this.data[indexNew]; @@ -1036,7 +1009,6 @@ module.exports = function (tgen) { // set the pixel set: function (x, y) { - const current = generator.texture.get(x, y); // calculate blend @@ -1067,6 +1039,13 @@ module.exports = function (tgen) { break; } + // // debug only the 0,0 point + // if (x == 1 && y == 1) { + // console.log(this.blend); + // console.log(current); + // console.log(this.mixed, this.rgba); + // } + generator.texture.set(x, y, this.mixed); }, @@ -1078,7 +1057,6 @@ module.exports = function (tgen) { // read and modify all pixel by callback function generator.walk = function (func) { - let color; for (let x = 0; x < width; x++) { @@ -1123,7 +1101,6 @@ module.exports = function (tgen) { }; generator.xysize = function (i, params) { - let x, y, size; if (params.elements != undefined) { @@ -1148,12 +1125,10 @@ module.exports = function (tgen) { y: y, size: size, }; - }; // copy texture to image generator.toContext = function (context, texture) { - const image = context.createImageData(width, height); const data = image.data; const length = texture.length; @@ -1183,7 +1158,6 @@ module.exports = function (tgen) { context.putImageData(imageData, 0, 0); if (w && h) { - const newcanvas = document.createElement("canvas"); const newcontext = newcanvas.getContext("2d"); @@ -1210,7 +1184,6 @@ module.exports = function (tgen) { // get phases (layers) generator.getPhases = function (func) { if (func) { - const phases = []; const length = generator.layers.length; @@ -1237,9 +1210,7 @@ module.exports = function (tgen) { }; generator.params = function (name) { - if (name == undefined) { - const d = new Date(); name = @@ -1294,29 +1265,26 @@ module.exports = function (tgen) { effect = config.items[index][1]; values = config.items[index][2] !== undefined && - config.items[index][2] !== null + config.items[index][2] !== null ? config.items[index][2] : {}; if (self.defaults[effect]) { - for (let key in self.defaults[effect]) { if (values[key] === undefined) { values[key] = self.defaults[effect][key]; if (values[key] === "randomalpha") { - values[key] = tgen.randomRGBA; + values[key] = tgen.randomRGBA(); } } } - } } }; // parse params generator.render = function (configInput, progress) { - const configOriginal = JSON.parse(JSON.stringify(configInput)); this.prepareConfig(configInput); @@ -1358,7 +1326,6 @@ module.exports = function (tgen) { // import preset items if (config.preset && config.preset.name) { - var name = config.preset.name; if (config.preset.name === "random") { @@ -1370,7 +1337,6 @@ module.exports = function (tgen) { } if (name) { - let key; const items = JSON.parse(JSON.stringify(tgen.presets[name].items)); @@ -1419,7 +1385,6 @@ module.exports = function (tgen) { }; generator.renderItem = function (index, currentId, config, name) { - if (!config.items[index]) { return; } @@ -1510,11 +1475,9 @@ module.exports = function (tgen) { generator.progress(eventName, data); } - }; generator.do = function (name, params, layerId) { - params = Object.assign({}, self.defaults[name], params); // setup random seed if undefined @@ -1549,6 +1512,5 @@ module.exports = function (tgen) { }; return generator; - }; }; diff --git a/src/tgen-tests.js b/src/tgen-tests.js index e5b60e7..66cb026 100644 --- a/src/tgen-tests.js +++ b/src/tgen-tests.js @@ -1,10 +1,9 @@ module.exports = function (tgen) { // pattern test tgen.effect("test-pattern", {}, function ($g, params) { - const width = $g.texture.width; const height = $g.texture.height; - + let s; $g.point.blend = "opacity"; @@ -104,7 +103,7 @@ module.exports = function (tgen) { let effectName; let layer = 0; - + const skipped = ["test-all", "test-pattern", "copy", "merge", "mergeall"]; for (let key in $g.effects) {