!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 W=e.random(2*Math.PI),j=e.random(.1,1.5)*N/2,H=j*e.random(-.7,.3);c.circle((i+(H+N)*Math.cos(W))/2,(i+(H+N)*Math.sin(W))/2,2*j)}do{var B=e.random(2*Math.PI),T=e.random(2*Math.PI);c.stroke(0),c.strokeWeight(1+N*Math.pow(e.random(.7368),3)),c.line(i*(Math.sin(B)+.5),i*(Math.cos(B)+.5),i*(Math.sin(T)+.5),i*(Math.cos(T)+.5))}while(e.random()<.5+.45*I);var q=e.random(0,2*Math.PI),C=e.random(p),R=n/(g-1)*y+C*Math.cos(q),V=t/(v-1)*L+C*Math.sin(q);e.image(c,R-i/2,V-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,w,M,b;e.preload=function(){w=e.loadShader("../shaders/base.vert","../shaders/blur-two-pass.frag"),M=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),k=Math.max(1,Math.round(t/S))+1,x=Math.max(1,Math.round(n/S))+1,E=e.random(0,1e3*d),y=[],L=0;L.5){m.fill("#000");var W=e.random(2*Math.PI),j=e.random(.1,1.5)*_/2,H=j*e.random(-.7,.3);m.circle((i+(H+_)*Math.cos(W))/2,(i+(H+_)*Math.sin(W))/2,2*j)}for(var B=i/100,T=0;T.3?u:f,0,0,D,V),m.resetMatrix()}while(e.random()<.8);var A=e.random(0,2*Math.PI),O=e.random(S),F=n/(x-1)*N+O*Math.cos(A),Y=t/(k-1)*U+O*Math.sin(A);e.image(m,F-i/2,Y-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,w,M,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),w=e.createGraphics(i,i,e.WEBGL),M=e.createGraphics(i,i,e.WEBGL),b=e.createGraphics(n,t,e.WEBGL),m.noStroke(),w.noStroke(),M.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,w=i/2,M=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-M,w-b,m+M,w+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,k=1000.37,x=[],E=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(k*n+a*t,k*n+o*t)});x.push({row:a,col:o,noise:n})},y=0;y1.75*l-.5)){var f=t/(S-1)*s-v/2,m=i/(g-1)*n-v/2,w=2*Math.PI*a(c)+L,M=(8*u*u+1)*v;e.stroke(.075,.5,h-.2*(o/x.length)+.1),e.strokeWeight(v*(1+2*u*u*u)),e.line(f-M*Math.cos(w),m-M*Math.sin(w),f+M*Math.cos(w),m+M*Math.sin(w))}})}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,w=Math.ceil(Math.SQRT2*m/f),M=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(w/2);S>0;S--)l.buffer.stroke(M,.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 k=Math.min(n,t)/Math.round(e.random(3,10)),x=Math.max(1,Math.round(t/k/Math.sin(Math.PI/3)))+1,E=Math.max(1,Math.round(n/k))+1,y=200*k+Math.SQRT2,L=[],I=function(r){var o=r%E,a=Math.floor(r/E),n=i.map(function(r,n){return e.noise(y*(n+1)+(a-x/2)*r,y*(n+1)+(o-E/2)*r)});L.push({row:a,col:o,noise:n})},N=0;N=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 k=0,x=0===f?1:Math.ceil(.8+e.random(1.2));k1?c*e.map(k,0,x-1,-.5,.5):0);t(r,o,{x:g,y:S},E,.9*i,s,e.map(Math.cos(E-n),0,1,0,d*(1-(m+i)/h)),l,h,c,u,f+1,m+i)}else{var y=s*e.random(.7,1.8);o.circle(g,S,y);for(var L=1;Ll&&(l=e[r][0]),e[r][1]h&&(h=e[r][1]);return o=l-s,a=h-d,n=Math.max(o,a),t=s+.5*o,i=d+.5*a,[[t-20*n,i-n],[t,i+20*n],[t+20*n,i-n]]}function r(e,r,o,a){var n,i,s,d,l,h,c,u,f,m,w=e[r][0],M=e[r][1],b=e[o][0],p=e[o][1],v=e[a][0],g=e[a][1],S=Math.abs(M-p),k=Math.abs(p-g);if(Sk?s*(n-l)+c:d*(n-h)+u),f=b-n,m=p-i,{i:r,j:o,k:a,x:n,y:i,r:f*f+m*m}}function n(e){var r,o,a,n,t,i;for(o=e.length;o;)for(n=e[--o],a=e[--o],r=o;r;)if(i=e[--r],t=e[--r],a===t&&n===i||a===i&&n===t){e.splice(o,2),e.splice(r,2);break}}var t=1/1048576;a={triangulate:function(o,a){var i,s,d,l,h,c,u,f,m,w,M,b,p=o.length;if(p<3)return[];if(o=o.slice(0),a)for(i=p;i--;)o[i]=o[i][a];for(d=new Array(p),i=p;i--;)d[i]=i;for(d.sort(function(e,r){var a=o[r][0]-o[e][0];return 0!==a?a:e-r}),l=e(o),o.push(l[0],l[1],l[2]),h=[r(o,p+0,p+1,p+2)],c=[],u=[],i=d.length;i--;u.length=0){for(b=d[i],s=h.length;s--;)f=o[b][0]-h[s].x,f>0&&f*f>h[s].r?(c.push(h[s]),h.splice(s,1)):(m=o[b][1]-h[s].y,f*f+m*m-h[s].r>t||(u.push(h[s].i,h[s].j,h[s].j,h[s].k,h[s].k,h[s].i),h.splice(s,1)));for(n(u),s=u.length;s;)M=u[--s],w=u[--s],h.push(r(o,w,M,b))}for(i=h.length;i--;)c.push(h[i]);for(h.length=0,i=c.length;i--;)c[i].ie[0][0]&&r[0]>e[1][0]&&r[0]>e[2][0]||r[1]e[0][1]&&r[1]>e[1][1]&&r[1]>e[2][1])return null;var o=e[1][0]-e[0][0],a=e[2][0]-e[0][0],n=e[1][1]-e[0][1],t=e[2][1]-e[0][1],i=o*t-a*n;if(0===i)return null;var s=(t*(r[0]-e[0][0])-a*(r[1]-e[0][1]))/i,d=(o*(r[1]-e[0][1])-n*(r[0]-e[0][0]))/i;return s<0||d<0||s+d>1?null:[s,d]}},"undefined"!=typeof o&&(o.exports=a)}()}),require.register("7/index.js",function(e,r,o){var a=r("./delaunay.js");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)),h.stars.clear(),h.stars.fill(1),h.stars.noStroke(),o(h.stars),e.blendMode(e.BLEND),e.background(0),h.noise.shader(c.whiteNoise),c.whiteNoise.setUniform("u_resolution",[t,i]),c.whiteNoise.setUniform("u_alpha",.05),h.noise.rect(0,0,t,i),e.image(h.stars,Math.round(-t*d/2),Math.round(-i*d/2)),e.blendMode(e.OVERLAY),e.image(h.noise,0,0)}function o(r){for(var o=new Array(Math.round(t*i/2e3)),n=new Array(Math.round(t*i/200)),s=0;s.85&&r.triangle(o[l[h]][0],o[l[h]][1],o[l[h+1]][0],o[l[h+1]][1],o[l[h+2]][0],o[l[h+2]][1]);r.noStroke(),r.fill(1),o.forEach(function(o){r.circle(o[0],o[1],e.random(.75,2))})}e.disableFriendlyErrors=!1;var n,t,i,s,d,l,h={},c={};e.preload=function(){c.whiteNoise=e.loadShader("../shaders/base.vert","../shaders/white-noise.frag")},e.setup=function(){filenamePrefix="seigler-p5-7-estrellas-",d=.1,t=Math.floor(e.windowWidth*(1+d)),i=Math.floor(e.windowHeight*(1+d)),s=[.2,.1,.05,2],l=2,window.onhashchange=function(){n=window.location.hash.substr(1),r()},n=window.location.hash.substr(1),e.colorMode(e.HSL,1),e.createCanvas(e.windowWidth,e.windowHeight),h.stars=e.createGraphics(t,i),h.stars.colorMode(e.HSL,1),h.noise=e.createGraphics(t,i,e.WEBGL),r()},e.draw=function(){},e.keyReleased=function(){" "==e.key?(n=null,r()):"s"==e.key&&e.saveCanvas(filenamePrefix+n+".jpg","jpg")},e.doubleClicked=function(){n=null,r()};var u;e.windowResized=function(){clearTimeout(u),u=setTimeout(function(){window.location.reload()},100)}})}),require.register("7/index.static.hbs",function(e,r,o){}),require.register("index.static.hbs",function(e,r,o){}),require.register("initialize.js",function(e,r,o){document.addEventListener("DOMContentLoaded",function(){var e=document.location.pathname.split("/");e.length>1&&r(e[e.length-2]+"/index")})}),require.register("___globals___",function(e,r,o){})}(),require("___globals___"),require("initialize");