diff --git a/1/index.html b/1/index.html index 0e88580..1ec2199 100644 --- a/1/index.html +++ b/1/index.html @@ -10,7 +10,7 @@ - + diff --git a/2/index.html b/2/index.html index 0e88580..1ec2199 100644 --- a/2/index.html +++ b/2/index.html @@ -10,7 +10,7 @@ - + diff --git a/3/index.html b/3/index.html index 0e88580..1ec2199 100644 --- a/3/index.html +++ b/3/index.html @@ -10,7 +10,7 @@ - + diff --git a/4/index.html b/4/index.html index 0e88580..1ec2199 100644 --- a/4/index.html +++ b/4/index.html @@ -10,7 +10,7 @@ - + diff --git a/app-6597a989.js b/app-6597a989.js deleted file mode 100644 index 0069e6e..0000000 --- a/app-6597a989.js +++ /dev/null @@ -1 +0,0 @@ -!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;i1&&r("./sketches/"+e[e.length-2])})}),require.register("sketches/1.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 h=n*t/s,v=Math.sqrt(h),b=Math.max(1,Math.round(t/v))+1,g=Math.max(1,Math.round(n/v))+1,S=e.random(0,1e3*l),k=[],x=0;x.5){c.fill("#000");var W=e.random(2*Math.PI),I=e.random(.1,1.5)*_/2,C=I*e.random(-.7,.3);c.circle((i+(C+_)*Math.cos(W))/2,(i+(C+_)*Math.sin(W))/2,2*I)}do{var H=e.random(2*Math.PI),R=e.random(2*Math.PI);c.stroke(0),c.strokeWeight(1+_*Math.pow(e.random(.7368),3)),c.line(i*(Math.sin(H)+.5),i*(Math.cos(H)+.5),i*(Math.sin(R)+.5),i*(Math.cos(R)+.5))}while(e.random()<.5+.45*L);var q=e.random(0,2*Math.PI),D=e.random(v),T=n/(g-1)*U+D*Math.cos(q),N=t/(b-1)*y+D*Math.sin(q);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 v;e.windowResized=function(){clearTimeout(v),v=setTimeout(function(){window.location.reload()},100)}})}),require.register("sketches/2.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*l),U=[],y=0;y.5){m.fill("#000");var W=e.random(2*Math.PI),I=e.random(.1,1.5)*B/2,C=I*e.random(-.7,.3);m.circle((i+(C+B)*Math.cos(W))/2,(i+(C+B)*Math.sin(W))/2,2*I)}for(var H=i/100,R=0;R.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/(x-1)*_+O*Math.cos(A),Y=t/(k-1)*G+O*Math.sin(A);e.image(m,Q-i/2,Y-i/2)}w.shader(g),g.setUniform("u_resolution",[n,t]),g.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,v,b,g;e.preload=function(){v=e.loadShader("../shaders/base.vert","../shaders/blur-two-pass.frag"),b=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(){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("sketches/3.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 v=Math.ceil(f/2);v>0;v--)e.stroke(291/360,.3,.2+.1*(v%2)),e.strokeWeight((2*v-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 b=5,g=Math.max(1,Math.round(i/b))+1,S=Math.max(1,Math.round(t/b))+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})},U=0;U1.75*d-.5)){var f=t/(S-1)*s-b/2,m=i/(g-1)*n-b/2,M=2*Math.PI*a(c)+y,p=(8*u*u+1)*b;e.stroke(.075,.5,h-.2*(o/x.length)+.1),e.strokeWeight(b*(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("sketches/4.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,v=t/2,b=Math.cos(u)*m/2,g=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-b,v-g,w+b,v+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,U=200*k+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-x/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("./sketches/"+e[e.length-2])})}),require.register("sketches/1.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 h=n*t/s,v=Math.sqrt(h),b=Math.max(1,Math.round(t/v))+1,g=Math.max(1,Math.round(n/v))+1,S=e.random(0,1e3*l),k=[],x=0;x.5){c.fill("#000");var W=e.random(2*Math.PI),I=e.random(.1,1.5)*_/2,C=I*e.random(-.7,.3);c.circle((i+(C+_)*Math.cos(W))/2,(i+(C+_)*Math.sin(W))/2,2*I)}do{var H=e.random(2*Math.PI),R=e.random(2*Math.PI);c.stroke(0),c.strokeWeight(1+_*Math.pow(e.random(.7368),3)),c.line(i*(Math.sin(H)+.5),i*(Math.cos(H)+.5),i*(Math.sin(R)+.5),i*(Math.cos(R)+.5))}while(e.random()<.5+.45*L);var q=e.random(0,2*Math.PI),D=e.random(v),T=n/(g-1)*U+D*Math.cos(q),N=t/(b-1)*y+D*Math.sin(q);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 v;e.windowResized=function(){clearTimeout(v),v=setTimeout(function(){window.location.reload()},100)}})}),require.register("sketches/2.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*l),U=[],y=0;y.5){m.fill("#000");var W=e.random(2*Math.PI),I=e.random(.1,1.5)*B/2,C=I*e.random(-.7,.3);m.circle((i+(C+B)*Math.cos(W))/2,(i+(C+B)*Math.sin(W))/2,2*I)}for(var H=i/100,R=0;R.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/(x-1)*_+O*Math.cos(A),Y=t/(k-1)*G+O*Math.sin(A);e.image(m,Q-i/2,Y-i/2)}w.shader(g),g.setUniform("u_resolution",[n,t]),g.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,v,b,g;e.preload=function(){v=e.loadShader("../shaders/base.vert","../shaders/blur-two-pass.frag"),b=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(){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("sketches/3.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 v=Math.ceil(f/2);v>0;v--)e.stroke(291/360,.3,.2+.1*(v%2)),e.strokeWeight((2*v-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 b=5,g=Math.max(1,Math.round(i/b))+1,S=Math.max(1,Math.round(t/b))+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})},U=0;U1.75*d-.5)){var f=t/(S-1)*s-b/2,m=i/(g-1)*n-b/2,M=2*Math.PI*a(c)+y,p=(8*u*u+1)*b;e.stroke(.075,.5,h-.2*(o/x.length)+.1),e.strokeWeight(b*(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("sketches/4.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,v=t/2,b=Math.cos(u)*m/2,g=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-b,v-g,w+b,v+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,U=200*k+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-x/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;o