!function(){"use strict";var e="undefined"==typeof global?self:global;if("function"!=typeof e.require){var r={},o={},a={},n={}.hasOwnProperty,t=/^\.\.?(\/|$)/,i=function(e,r){for(var o,a=[],n=(t.test(r)?e+"/"+r:r).split("/"),i=0,s=n.length;i.5){c.fill("#000");var q=e.random(2*Math.PI),W=e.random(.1,1.5)*_/2,I=W*e.random(-.7,.3);c.circle((i+(I+_)*Math.cos(q))/2,(i+(I+_)*Math.sin(q))/2,2*W)}do{var C=e.random(2*Math.PI),H=e.random(2*Math.PI);c.stroke(0),c.strokeWeight(1+_*Math.pow(e.random(.7368),3)),c.line(i*(Math.sin(C)+.5),i*(Math.cos(C)+.5),i*(Math.sin(H)+.5),i*(Math.cos(H)+.5))}while(e.random()<.5+.45*L);var R=e.random(0,2*Math.PI),D=e.random(b),T=n/(v-1)*U+D*Math.cos(R),N=t/(g-1)*y+D*Math.sin(R);e.image(c,T-i/2,N-i/2)}m.shader(w),w.setUniform("u_resolution",[n,t]),w.setUniform("u_alpha",.05),m.rect(0,0,n,t),e.blendMode(e.OVERLAY),e.image(m,0,0)}function o(r){var o=0,a=0,n=null;for(o=r.length-1;o>0;o-=1)a=Math.floor(e.random()*(o+1)),n=r[o],r[o]=r[a],r[a]=n}e.disableFriendlyErrors=!0;var a,n,t,i,s,l,d,h,c,u,f,m,M,p,w;e.preload=function(){M=e.loadShader("../shaders/base.vert","../shaders/blur-two-pass.frag"),p=e.loadShader("../shaders/base.vert","../shaders/blur-two-pass.frag"),w=e.loadShader("../shaders/base.vert","../shaders/white-noise.frag")},e.setup=function(){l=2,d=2,s=70,window.onhashchange=function(){a=window.location.hash.substr(1),r()},a=window.location.hash.substr(1),e.noStroke(),e.colorMode(e.HSB,100),n=e.windowWidth,t=e.windowHeight,h=e.createCanvas(n,t),i=1.75*(n+t)/Math.sqrt(s),c=e.createGraphics(i,i),u=e.createGraphics(i,i,e.WEBGL),f=e.createGraphics(i,i,e.WEBGL),m=e.createGraphics(n,t,e.WEBGL),c.noStroke(),u.noStroke(),f.noStroke(),m.noStroke(),r()},e.draw=function(){},e.keyPressed=function(){" "==e.key?(a=null,r()):"s"==e.key&&e.saveCanvas("seigler-p5-1-gradient_burst-"+a+".jpg","jpg")},e.doubleClicked=function(){a=null,r()};var b;e.windowResized=function(){clearTimeout(b),b=setTimeout(function(){window.location.reload()},100)}})}),require.register("1/index.static.hbs",function(e,r,o){}),require.register("2/index.js",function(e,r,o){new p5(function(e){function r(){if(a)e.randomSeed(a);else{var r=Math.floor(e.random(1e12));window.location.hash=r,e.randomSeed(r)}e.noiseSeed(e.random()),e.blendMode(e.BLEND),e.background("#000"),e.blendMode(e.ADD);for(var c=n*t/s,S=Math.sqrt(c),x=Math.max(1,Math.round(t/S))+1,k=Math.max(1,Math.round(n/S))+1,E=e.random(0,1e3*l),U=[],y=0;y.5){m.fill("#000");var q=e.random(2*Math.PI),W=e.random(.1,1.5)*B/2,I=W*e.random(-.7,.3);m.circle((i+(I+B)*Math.cos(q))/2,(i+(I+B)*Math.sin(q))/2,2*W)}for(var C=i/100,H=0;H.3?u:f,0,0,z,N),m.resetMatrix()}while(e.random()<.8);var A=e.random(0,2*Math.PI),O=e.random(S),Q=n/(k-1)*_+O*Math.cos(A),Y=t/(x-1)*G+O*Math.sin(A);e.image(m,Q-i/2,Y-i/2)}w.shader(v),v.setUniform("u_resolution",[n,t]),v.setUniform("u_alpha",.05),w.rect(0,0,n,t),e.blendMode(e.OVERLAY),e.image(w,0,0)}function o(r){var o=0,a=0,n=null;for(o=r.length-1;o>0;o-=1)a=Math.floor(e.random()*(o+1)),n=r[o],r[o]=r[a],r[a]=n}e.disableFriendlyErrors=!0;var a,n,t,i,s,l,d,h,c,u,f,m,M,p,w,b,g,v;e.preload=function(){b=e.loadShader("../shaders/base.vert","../shaders/blur-two-pass.frag"),g=e.loadShader("../shaders/base.vert","../shaders/blur-two-pass.frag"),v=e.loadShader("../shaders/base.vert","../shaders/white-noise.frag"),u=e.loadImage("palm-leaf-1.jpg"),f=e.loadImage("palm-leaf-2.jpg")},e.setup=function(){l=2,d=6,h=2,s=80,c="seigler-p5-2-gradient_jungle-",window.onhashchange=function(){a=window.location.hash.substr(1),r()},a=window.location.hash.substr(1),e.noStroke(),e.colorMode(e.HSB,100),n=e.windowWidth,t=e.windowHeight,e.createCanvas(n,t),i=2*(n+t)/Math.sqrt(s),m=e.createGraphics(i,i),M=e.createGraphics(i,i,e.WEBGL),p=e.createGraphics(i,i,e.WEBGL),w=e.createGraphics(n,t,e.WEBGL),m.noStroke(),M.noStroke(),p.noStroke(),w.noStroke(),r()},e.draw=function(){},e.keyPressed=function(){" "==e.key?(a=null,r()):"s"==e.key&&e.saveCanvas(c+a+".jpg","jpg")},e.doubleClicked=function(){a=null,r()};var S;e.windowResized=function(){clearTimeout(S),S=setTimeout(function(){window.location.reload()},100)}})}),require.register("2/index.static.hbs",function(e,r,o){}),require.register("3/index.js",function(e,r,o){new p5(function(e){function r(){if(n)e.randomSeed(n);else{var r=Math.floor(e.random(1e12));window.location.hash=r,e.randomSeed(r)}e.noiseSeed(e.random(0,1e9)),e.blendMode(e.BLEND),e.background(291/360,.3,.25);var h=e.random(0,Math.PI),c=Math.min(t,i)/e.random(10,80),u=Math.max(t,i)*Math.SQRT2,f=Math.ceil(Math.SQRT2*u/c),m=t/2,M=i/2,p=Math.cos(h)*u/2,w=Math.sin(h)*u/2;e.strokeCap(e.SQUARE);for(var b=Math.ceil(f/2);b>0;b--)e.stroke(291/360,.3,.2+.1*(b%2)),e.strokeWeight((2*b-1)*c),e.line(m-p,M-w,m+p,M+w);l.shader(d),d.setUniform("u_resolution",[t,i]),d.setUniform("u_alpha",.05),l.rect(0,0,t,i),e.blendMode(e.OVERLAY),e.image(l,0,0),e.blendMode(e.BLEND),e.strokeCap(e.ROUND);for(var g=5,v=Math.max(1,Math.round(i/g))+1,S=Math.max(1,Math.round(t/g))+1,x=1000.37,k=[],E=function(r){var o=r%S,a=Math.floor(r/S),n=s.map(function(r,n){var t=r/Math.min(v,S);return e.noise(x*n+a*t,x*n+o*t)});k.push({row:a,col:o,noise:n})},U=0;U1.75*d-.5)){var f=t/(S-1)*s-g/2,m=i/(v-1)*n-g/2,M=2*Math.PI*a(c)+y,p=(8*u*u+1)*g;e.stroke(.075,.5,h-.2*(o/k.length)+.1),e.strokeWeight(g*(1+2*u*u*u)),e.line(f-p*Math.cos(M),m-p*Math.sin(M),f+p*Math.cos(M),m+p*Math.sin(M))}})}function o(r){var o=0,a=0,n=null;for(o=r.length-1;o>0;o-=1)a=Math.floor(e.random()*(o+1)),n=r[o],r[o]=r[a],r[a]=n}function a(e){return 23.8615*Math.pow(e,5)-59.6041*Math.pow(e,4)+47.2472*Math.pow(e,3)-11.3053*Math.pow(e,2)+.806219*e-.00259101}e.disableFriendlyErrors=!0;var n,t,i,s,l,d;e.preload=function(){d=e.loadShader("../shaders/base.vert","../shaders/white-noise.frag")},e.setup=function(){filenamePrefix="seigler-p5-3-peanut_butter_and_jelly-",t=e.windowWidth,i=e.windowHeight,s=[2,2,2,2],window.onhashchange=function(){n=window.location.hash.substr(1),r()},n=window.location.hash.substr(1),e.noStroke(),e.colorMode(e.HSL,1),e.createCanvas(t,i),l=e.createGraphics(t,i,e.WEBGL),l.noStroke(),r()},e.draw=function(){},e.keyPressed=function(){" "==e.key?(n=null,r()):"s"==e.key&&e.saveCanvas(filenamePrefix+n+".jpg","jpg")},e.doubleClicked=function(){n=null,r()};var h;e.windowResized=function(){clearTimeout(h),h=setTimeout(function(){window.location.reload()},100)}})}),require.register("3/index.static.hbs",function(e,r,o){}),require.register("4/index.js",function(e,r,o){new p5(function(e){function r(){if(a)e.randomSeed(a);else{var r=Math.floor(e.random(1e12));window.location.hash=r,e.randomSeed(r)}e.noiseSeed(e.random(0,1e9)),e.blendMode(e.BLEND);var u=e.random(0,Math.PI),f=Math.min(n,t)/e.random(10,80),m=Math.max(n,t)*Math.SQRT2,M=Math.ceil(Math.SQRT2*m/f),p=e.random(),w=n/2,b=t/2,g=Math.cos(u)*m/2,v=Math.sin(u)*m/2;d.buffer.strokeCap(e.SQUARE);for(var S=Math.ceil(M/2);S>0;S--)d.buffer.stroke(p,.5,.2+.1*(S%2)),d.buffer.strokeWeight((2*S-1)*f),d.buffer.line(w-g,b-v,w+g,b+v);e.blendMode(e.BLEND);for(var x=Math.min(n,t)/Math.round(e.random(3,10)),k=Math.max(1,Math.round(t/x/Math.sin(Math.PI/3)))+1,E=Math.max(1,Math.round(n/x))+1,U=200*x+Math.SQRT2,y=[],L=function(r){var o=r%E,a=Math.floor(r/E),n=i.map(function(r,n){return e.noise(U*(n+1)+(a-k/2)*r,U*(n+1)+(o-E/2)*r)});y.push({row:a,col:o,noise:n})},_=0;_=3){d.cells.fill(r.site.noise[2]),d.cells.beginShape();for(var o=0;o1&&r(e[e.length-2]+"/index")})}),require.register("___globals___",function(e,r,o){})}(),require("___globals___"),require("initialize");