!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 H=e.random(2*Math.PI),I=e.random(.1,1.5)*P/2,N=I*e.random(-.7,.3);c.circle((i+(N+P)*Math.cos(H))/2,(i+(N+P)*Math.sin(H))/2,2*I)}do{var q=e.random(2*Math.PI),j=e.random(2*Math.PI);c.stroke(0),c.strokeWeight(1+P*Math.pow(e.random(.7368),3)),c.line(i*(Math.sin(q)+.5),i*(Math.cos(q)+.5),i*(Math.sin(j)+.5),i*(Math.cos(j)+.5))}while(e.random()<.5+.45*U);var R=e.random(0,2*Math.PI),C=e.random(p),D=n/(g-1)*L+C*Math.cos(R),T=t/(v-1)*E+C*Math.sin(R);e.image(c,D-i/2,T-i/2)}m.shader(b),b.setUniform("u_resolution",[n,t]),b.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,d,l,h,c,u,f,m,M,w,b;e.preload=function(){M=e.loadShader("../shaders/base.vert","../shaders/blur-two-pass.frag"),w=e.loadShader("../shaders/base.vert","../shaders/blur-two-pass.frag"),b=e.loadShader("../shaders/base.vert","../shaders/white-noise.frag")},e.setup=function(){d=2,l=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 p;e.windowResized=function(){clearTimeout(p),p=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,y=e.random(0,1e3*d),L=[],E=0;E.5){m.fill("#000");var H=e.random(2*Math.PI),I=e.random(.1,1.5)*W/2,N=I*e.random(-.7,.3);m.circle((i+(N+W)*Math.cos(H))/2,(i+(N+W)*Math.sin(H))/2,2*I)}for(var q=i/100,j=0;j.3?u:f,0,0,V,T),m.resetMatrix()}while(e.random()<.8);var O=e.random(0,2*Math.PI),A=e.random(S),F=n/(k-1)*P+A*Math.cos(O),Q=t/(x-1)*G+A*Math.sin(O);e.image(m,F-i/2,Q-i/2)}b.shader(g),g.setUniform("u_resolution",[n,t]),g.setUniform("u_alpha",.05),b.rect(0,0,n,t),e.blendMode(e.OVERLAY),e.image(b,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,d,l,h,c,u,f,m,M,w,b,p,v,g;e.preload=function(){p=e.loadShader("../shaders/base.vert","../shaders/blur-two-pass.frag"),v=e.loadShader("../shaders/base.vert","../shaders/blur-two-pass.frag"),g=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(){d=2,l=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),w=e.createGraphics(i,i,e.WEBGL),b=e.createGraphics(n,t,e.WEBGL),m.noStroke(),M.noStroke(),w.noStroke(),b.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,w=Math.cos(h)*u/2,b=Math.sin(h)*u/2;e.strokeCap(e.SQUARE);for(var p=Math.ceil(f/2);p>0;p--)e.stroke(291/360,.3,.2+.1*(p%2)),e.strokeWeight((2*p-1)*c),e.line(m-w,M-b,m+w,M+b);d.shader(l),l.setUniform("u_resolution",[t,i]),l.setUniform("u_alpha",.05),d.rect(0,0,t,i),e.blendMode(e.OVERLAY),e.image(d,0,0),e.blendMode(e.BLEND),e.strokeCap(e.ROUND);for(var v=5,g=Math.max(1,Math.round(i/v))+1,S=Math.max(1,Math.round(t/v))+1,x=1000.37,k=[],y=function(r){var o=r%S,a=Math.floor(r/S),n=s.map(function(r,n){var t=r/Math.min(g,S);return e.noise(x*n+a*t,x*n+o*t)});k.push({row:a,col:o,noise:n})},L=0;L1.75*l-.5)){var f=t/(S-1)*s-v/2,m=i/(g-1)*n-v/2,M=2*Math.PI*a(c)+E,w=(8*u*u+1)*v;e.stroke(.075,.5,h-.2*(o/k.length)+.1),e.strokeWeight(v*(1+2*u*u*u)),e.line(f-w*Math.cos(M),m-w*Math.sin(M),f+w*Math.cos(M),m+w*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,d,l;e.preload=function(){l=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),d=e.createGraphics(t,i,e.WEBGL),d.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),w=e.random(),b=n/2,p=t/2,v=Math.cos(u)*m/2,g=Math.sin(u)*m/2;l.buffer.strokeCap(e.SQUARE);for(var S=Math.ceil(M/2);S>0;S--)l.buffer.stroke(w,.5,.2+.1*(S%2)),l.buffer.strokeWeight((2*S-1)*f),l.buffer.line(b-v,p-g,b+v,p+g);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,y=Math.max(1,Math.round(n/x))+1,L=200*x+Math.SQRT2,E=[],U=function(r){var o=r%y,a=Math.floor(r/y),n=i.map(function(r,n){return e.noise(L*(n+1)+(a-k/2)*r,L*(n+1)+(o-y/2)*r)});E.push({row:a,col:o,noise:n})},P=0;P=3){l.cells.fill(r.site.noise[2]),l.cells.beginShape();for(var o=0;o.5?a.y=e.random()>.5?t*s*.4:t*(1-.4*s):a.x=e.random()>.5?n*s*.4:n*(1-.4*s);var i=e.random(Math.PI/8,Math.PI),d=Math.atan2(t/2-a.y,n/2-a.x);d+=e.random(-.25,.25)*i,r.beginShape(),r.vertex(a.x,a.y);var l=0;do{var h=a.x,u=a.y,f=a.x+c/2*Math.cos(d),m=a.y+c/2*Math.sin(d);d+=e.random(-1,1)*i,r.quadraticVertex(h,u,e.lerp(h,f,.5),e.lerp(u,m,.5)),a={x:f,y:m},l++}while(l<80||a.x>-c/2&&a.x-c/2&&a.y1)for(var x=0,k=0===f?1:Math.ceil(.8+e.random(1.2));x1?c*e.map(x,0,k-1,-.5,.5):0);t(r,o,{x:g,y:S},y,.9*i,s,e.map(Math.cos(y-n),0,1,0,d*(1-(m+i)/h)),l,h,c,u,f+1,m+i)}else{var L=s*e.random(.7,1.8);o.circle(g,S,L);for(var E=1;E1&&r(e[e.length-2]+"/index")})}),require.register("___globals___",function(e,r,o){})}(),require("___globals___"),require("initialize");