0x4251…e0d8

All memos sent from and to 0x4251…e0d8.

(()=>{"use strict";class t{constructor(t,e){let r=this;r.rInit(),r.abw=t,r.abh=e,r.abr=r.abw/r.abh,r.pd=i.displayDensity(),r.sD(),r.eM()}sD=function(t=window.innerWidth,e=window.innerHeight){let r=this,l=t/e;r.abr>l?r.absc=t/r.abw:r.absc=e/r.abh,r.abwA=s.round(r.abw*r.absc),r.abhA=s.round(r.abh*r.absc)};eM=function(){s.dist=function(t,e,r,l){let n=t-r,o=e-l;return s.sqrt(n*n+o*o)},s.distSq=function(t,e,r,l){let n=r-t,o=l-e;return n*n+o*o},s.contr=function(t,e){return t=s.max(0,s.min(1,t)),e=s.max(1,e),t<.5?.5*s.pow(2*t,e):.5*(1+s.pow(2*(t-.5),e))}};rInit=function(){let t=this;t.useA=!1;let e=function(t){let e=parseInt(t.substring(0,8),16),r=parseInt(t.substring(8,16),16),l=parseInt(t.substring(16,24),16),n=parseInt(t.substring(24,32),16);return function(){e|=0,r|=0,l|=0,n|=0;let t=(e+r|0)+n|0;return n=n+1|0,e=r^r>>>9,r=l+(l<<3)|0,l=l<<21|l>>>11,l=l+t|0,(t>>>0)/4294967296}};t.prngA=new e(tokenData.hash.substring(2,34)),t.prngB=new e(tokenData.hash.substring(34,66));for(let e=0;e<1e6;e+=2)t.prngA(),t.prngB()};rDec=function(){let t=this;return t.useA=!t.useA,t.useA?t.prngA():t.prngB()};rNum=function(t,e){return t+(e-t)*this.rDec()};rInt=function(t,e){return Math.floor(this.rNum(t,e+1))};rBool=function(t){return this.rDec()<t};rChU=function(t){return t.splice(this.rInt(0,t.length-1),1)[0]};rChW=function(t){let e=this.rDec(),r=0;for(let l=0;l<t.length-1;l++)if(r+=t[l][0],e<=r)return t[l][1];return t[t.length-1][1]}}class e{constructor(t,e){let r=this;r.cols=t,r.rows=e,r.rw=l.abw/t,r.rh=l.abh/e,r.sizeMin=s.min(r.rw,r.rh),r.rects=[];let n=r.rw,o=r.rh;for(let t=0;t<r.cols;t++){let e=[];for(let l=0;l<r.rows;l++){let r=t*n+n/2,s=l*o+o/2,i=r-n/2,a=r+n/2,c=s-o/2,h=s+o/2;e.push({x:r,y:s,l:i,r:a,t:c,b:h,d:0,lines:[]})}r.rects.push(e)}}gRBC(t,e){let r=this,l=s.floor(t/r.rw),n=s.floor(e/r.rh);return l=i.constrain(l,0,r.cols-1),n=i.constrain(n,0,r.rows-1),r.rects[l][n]}gIR(t,e,r,l){let n=this,o=[n.gRBC(t,e)],i=(l-e)/(r-t),a=e-i*t;for(let c=0;c<n.cols;c++)for(let h=0;h<n.rows;h++){let x=!1,u=n.rects[c][h];if(o[0]===u&&(x=!0),!x){let n=i*u.l+a,c=i*u.r+a,h=(u.t-a)/i,y=(u.b-a)/i,b=s.distSq(t,e,u.x,u.y);!x&&n>=u.t&&n<=u.b&&u.l>=s.min(t,r)&&u.l<=s.max(t,r)&&(u.d=b,o.push(u),x=!0),!x&&c>=u.t&&c<=u.b&&u.r>=s.min(t,r)&&u.r<=s.max(t,r)&&(u.d=b,o.push(u),x=!0),!x&&h>=u.l&&h<=u.r&&u.t>=s.min(e,l)&&u.t<=s.max(e,l)&&(u.d=b,o.push(u),x=!0),!x&&y>=u.l&&y<=u.r&&u.b>=s.min(e,l)&&u.b<=s.max(e,l)&&(u.d=b,o.push(u))}}return o.sort(((t,e)=>t.d-e.d)),o}aLAS(t){let e=this,r=s.ceil(s.dist(t.x1,t.y1,t.x2,t.y2)/e.sizeMin),l=e.dL(t.x1,t.y1,t.x2,t.y2,r);for(let r=0;r<l.length;r++){let n=l[r];n.gap=t.gap;let o=e.gRBC(n.x1,n.y1),s=e.gRBC(n.x2,n.y2);o.lines.push(n),o!==s&&s.lines.push(n)}return l}dL(t,e,r,l,n){let o=[],s=(r-t)/n,i=(l-e)/n;for(let r=0;r<n;r++){let l=t+r*s,n=e+r*i,a=t+(r+1)*s,c=e+(r+1)*i;o.push({x1:l,y1:n,x2:a,y2:c})}return o}}class r{constructor(){}*init(){let t=this;t.lC=0,t.dSeg=[];let r=[];t.grid=new e(10,14);let n,a,c,h=[[.5,[0,o.a1]],[.5,[1,o.a2]]];a=o.col1,c=o.col2;let x,u,y,b,g,p=[i.color(o.col1),i.color(a[0],a[1],a[2],0),i.color(i.color(o.col2)),i.color(c[0],c[1],c[2],0)],d=l.rInt(100,300);6==o.cM[0]&&(l.rBool(.5)?(x=0,u=0,y=l.abw,b=l.abh):(x=l.abw,u=0,y=0,b=l.abh),g=(b-u)/(y-x));let f,w=[],I=o.bM[0],m=o.brd,C=[];if(t.gR(m,m,l.abw-2*m,l.abh-2*m,[1,1,1,1],C),w.push(C),0==I||1==I||2==I||5==I||6==I){let e,r,n;C=[],f=2==I||6==I||0==I?o.cV(l.abw/2,l.abh/2):o.cV(l.rInt(0,l.abw),l.rInt(0,l.abh)),e=f.x>l.abw/2?f.x:l.abw-f.x,r=f.y>l.abh/2?f.y:l.abh-f.y,n=s.max(1*e,1*r);let i=120;0==I&&(i=4),t.gCP(f,0,n,i,C),w.push(C)}if(3==I||5==I||6==I){C=[];let e=l.rInt(2,25),r=l.rInt(2,25);t.gG(e,r,C),w.push(C)}4==I&&(C=[],t.gPP(15,700,120,C),w.push(C));let B=w[0][0].verts,D=0;for(let e=0;e<w.length;e++){let l=w[e];for(let n=0;n<l.length;n++){D++;let o=l[n];for(let l=0;l<o.lines.length;l++){let n=o.lines[l];if(n.lP&&(t.wN({x:n.x1,y:n.y1},B)||t.wN({x:n.x2,y:n.y2},B)||0==e)){t.lC++;let e=t.grid.aLAS(n);r=r.concat(e)}}}}t.lMx=12e3;let P=o.brd+15*l.rInt(o.borObj[1][0],o.borObj[1][1]);t.lMx*=i.map(P,15,240,2.2,1),t.lMx*=i.map(D,1,350,.65,2),t.lMx=s.min(24e3,s.round(t.lMx));let S=l.rNum(.85,.99)*t.lMx,M=l.rInt(300,500),A=l.rNum(2,4);for(;t.lC<t.lMx;){let e=!0,a=o.cV(l.rInt(P,l.abw-P),l.rInt(P,l.abh-P)),c=i.noise(a.x/M,a.y/M);c=s.contr(c,A),c<.25+l.rNum(-.15,.1)&&(e=!1);let y=2e3;if(t.lC>S&&(e=!0,i.noise(a.x/150,a.y/150)>.35&&(y=l.rInt(1,3))),e){let e=l.rChW(h),c=e[1],b=e[0],f=p5.Vector.fromAngle(c,y),w=f.copy().mult(-1);f.add(a),w.add(a);let I=t.isC({x1:a.x,y1:a.y,x2:f.x,y2:f.y}),m=t.isC({x1:a.x,y1:a.y,x2:w.x,y2:w.y}),C=t.sL(I.x,I.y,m.x,m.y,I.gap,m.gap);if(C){let e,a={x1:I.x,y1:I.y,x2:m.x,y2:m.y};t.lC++,e=l.rDec(.3)?C:a,e.gap=l.rInt(1,o.gap),r=r.concat(t.grid.aLAS(e));let c=C,h=o.cM[0];if(1==h)n=[p[0],p[1]];else if(0==h)n=l.rBool(.5)?[p[0],p[1]]:[p[2],p[3]];else if(2==h)n=0==b?[p[0],p[1]]:[p[2],p[3]];else if(3==h)n=i.noise(c.x1/d,c.y1/d)<.5?[p[0],p[1]]:[p[2],p[3]];else if(4==h){let t=(c.x1+c.x2)/2;t=i.map(t,0,l.abw,0,1),n=t>.5+l.rNum(-.01,.01)?[p[0],p[1]]:[p[2],p[3]]}else if(5==h){let t=(c.y1+c.y2)/2;t=i.map(t,0,l.abh,0,1),n=t>.5+l.rNum(-.01,.01)?[p[0],p[1]]:[p[2],p[3]]}else if(6==h){let t=(c.x1+c.x2)/2;n=((c.y1+c.y2)/2-u)/(t-x)>g+l.rNum(-.1,.1)?[p[0],p[1]]:[p[2],p[3]]}if(y<2e3){let t=o.colBg;n=[i.color(t[0],t[1],t[2],0),i.color(t[0],t[1],t[2],255)]}let f=o.cV(c.x1,c.y1),w=o.cV(c.x2,c.y2),B=f.copy(),D=w.copy(),P=0,S=s.dist(c.x1,c.y1,c.x2,c.y2);for(;P<S;){P+=y<2e3?1:l.rInt(1,7),P=s.min(P,S);let e=i.map(P,0,S,0,1);e=i.constrain(e,0,1),D=p5.Vector.lerp(f,w,e);let r=i.lerpColor(n[0],n[1],e+l.rNum(-.1,.1));t.dSeg.push([B.x,B.y,D.x,D.y,r]),B=D}}t.lC%250==0&&(yield)}}let k=3e3;t.dSeg.sort((function(t,e){return i.noise(t[0]/k,t[1]/k)-i.noise(e[0]/k,e[1]/k)})),yield}*dp(t,e){null==e&&(e=s.round(this.dSeg.length/300));for(let r=0;r<this.dSeg.length;r++){let l=this.dSeg[r];t.stroke(l[4]),t.line(l[0],l[1],l[2],l[3]),r%e==0&&(yield)}yield}gP(t,e,r,n,o){let i=2*s.PI/r,a=s.PI/4,c=[];for(let l=0;l<r;l++)c.push({x:s.cos(a)*e+t.x,y:s.sin(a)*e+t.y}),a+=i;let h=[];for(let t=0;t<c.length-1;t++)h.push({x1:c[t].x,y1:c[t].y,x2:c[t+1].x,y2:c[t+1].y,gap:0,lP:l.rBool(n)});let x=c[c.length-1];h.push({x1:x.x,y1:x.y,x2:c[0].x,y2:c[0].y,gap:0,lP:l.rBool(n)}),o.push({c:t,verts:c,lines:h})}gCP(t,e,r,n,o){let s=25*l.rInt(1,4),i=e-s;for(;i<r;){i+=i<e?s:s*l.rInt(1,4),(i>r||r-i<s)&&(i=r);let a=l.rNum(.4,.9);i>0&&this.gP(t,i,n,a,o)}}gPP(t,e,r,n){let i=[{c:o.cV(l.rInt(0,l.abw),l.rInt(0,l.abh)),r:l.rInt(20,e)}];for(;i.length<t;){let t=o.cV(l.rInt(0,l.abw),l.rInt(0,l.abh)),r=e;for(let e=0;e<i.length;e++){let l=i[e],n=s.dist(t.x,t.y,l.c.x,l.c.y);r=s.min(r,n-l.r)}r>0&&i.push({c:t,r})}for(let t=0;t<i.length;t++){let e=i[t];this.gP(e.c,e.r,r,.75,n)}}gR(t,e,r,n,o,s){let i=[];i.push({x:t,y:e}),i.push({x:t+r,y:e}),i.push({x:t+r,y:e+n}),i.push({x:t,y:e+n});let a=[];a.push({x1:i[0].x,y1:i[0].y,x2:i[1].x,y2:i[1].y,gap:0,lP:l.rBool(o[0])}),a.push({x1:i[1].x,y1:i[1].y,x2:i[2].x,y2:i[2].y,gap:0,lP:l.rBool(o[1])}),a.push({x1:i[2].x,y1:i[2].y,x2:i[3].x,y2:i[3].y,gap:0,lP:l.rBool(o[2])}),a.push({x1:i[3].x,y1:i[3].y,x2:i[0].x,y2:i[0].y,gap:0,lP:l.rBool(o[3])}),s.push({verts:i,lines:a})}gG(t,e,r){let n=(l.abw-2*o.brd)/t,s=(l.abh-2*o.brd)/e;for(let l=0;l<e;l++)for(let i=0;i<t;i++){let a=i*n+o.brd,c=l*s+o.brd,h=[.65,0,0,.65];i==t-1&&(h[1]=.65),l==e-1&&(h[2]=.65),this.gR(a,c,n,s,h,r)}}isC(t){let e=this.grid.gIR(t.x1,t.y1,t.x2,t.y2),r={x:t.x2,y:t.y2},l=s.distSq(t.x1,t.y1,t.x2,t.y2),n=0;for(let o=0;o<e.length;o++){let i=e[o];for(let e=0;e<i.lines.length;e++){let o=i.lines[e],a=this.is(t,o);if(a){let e=s.distSq(a.x,a.y,t.x1,t.y1);e<l&&(r=a,l=e,n=o.gap)}}}return{x:r.x,y:r.y,gap:n}}is(t,e){let r=t.x1,l=t.y1,n=t.x2,o=t.y2,s=e.x1,i=e.y1,a=n-r,c=o-l,h=e.x2-s,x=e.y2-i,u=-h*c+a*x;if(0==u)return!1;let y=(-c*(r-s)+a*(l-i))/u;if(y<0||y>1)return!1;let b=(h*(l-i)-x*(r-s))/u;return!(b<0||b>1)&&{x:r+b*a,y:l+b*c}}sL(t,e,r,l,n,o){let a=s.dist(t,e,r,l),c=i.lerp;if(a>n+o){let s=n/a,i=1-o/a;return{x1:c(t,r,s),y1:c(e,l,s),x2:c(t,r,i),y2:c(e,l,i)}}return!1}wN(t,e){let r=0;for(let l=0;l<e.length;l++){let n=(l+1)%e.length,o=e[n].x-e[l].x,s=e[n].y-e[l].y;(t.x-e[l].x)*s-(t.y-e[l].y)*o<0&&r++}return r==e.length}}let l,n=tokenData.hash;console.log(n);let o={},s=Math,i=new p5((e=>{let i;function a(t){let e=o.colBg;t.background(e[0],e[1],e[2]),t.fill(o.colDots),t.noStroke();for(let e=0;e<o.dots.length;e++){let r=o.dots[e];for(let e=0;e<r.length;e++){let l=r[e];t.circle(l[0],l[1],l[2])}}}function c(t){let e=o.colBg;t.noStroke(),t.fill(e[0],e[1],e[2]),t.rect(0,0,l.abw,o.brd),t.rect(l.abw-o.brd,0,o.brd,l.abh),t.rect(0,l.abh-o.brd,l.abw,o.brd),t.rect(0,0,o.brd,l.abh)}function h(t,e){if(t.strokeCap(t.PROJECT),t.scale(e),o.dBD||(a(t),o.dBD=!0),t.noFill(),t.strokeWeight(.75),o.xp){let e=i.dp(t,999999999);e.next(),e.next()}else o.dD||(o.dD=o.gD.next().done);c(t)}function x(t){if(o.dS&&!o.xp){o.xp=!0,o.dBD=!1,console.log(`Exporting a hi-res file (${t} pixels wide), please be patient...`);let r=t/l.abw,i=s.ceil(l.abh*r),a=e.createGraphics(t,i);a.pixelDensity(1),h(a,r),e.saveCanvas(a,"LINEA RECTA - "+n,"jpg"),console.log("Export successful"),a&&(a.remove(),a=null),o.xp=!1}}e.setup=()=>{l=new t(1e3,1414),function(){let t=l.rChW([[.3,[0,[[0,0,0,70],[232,231,209],[28,28,26,240],[0,0,0,180]]]],[.25,[1,[[255,255,255,40],[28,28,26],[212,211,189,235],[252,251,229,180]]]],[.15,[2,[[0,0,0,200],[58,58,56],[212,211,189,200],[4,4,2,200]]]],[.05,[3,[[0,0,0,100],[216,162,6],[30,20,20,165],[252,251,240,165]]]],[.05,[4,[[0,0,0,100],[216,162,6],[252,251,240,100],[252,251,240,160]]]],[.05,[5,[[0,0,0,100],[0,78,130],[252,251,240,100],[252,251,240,180]]]],[.05,[6,[[0,0,0,100],[0,78,130],[4,30,53,180],[252,251,240,180]]]],[.05,[7,[[0,0,0,85],[140,6,5],[252,251,240,100],[252,251,240,180]]]],[.05,[8,[[0,0,0,85],[140,6,5],[60,10,5,220],[252,251,240,180]]]]]);o.colDots=t[1].splice(0,1)[0],o.colBg=t[1].splice(0,1)[0],o.col1=l.rChU(t[1]),o.col2=l.rChU(t[1]),o.cM=l.rChW([[.05,[0,0]],[.05,[1,1]],[.25,[2,2]],[.35,[3,3]],[.1,[4,4]],[.1,[5,5]],[.1,[6,6]]]),o.borObj=l.rChW([[.3,[0,[0,5]]],[.3,[1,[6,10]]],[.4,[2,[11,15]]]]);let e=l.rChW([[1/3,[0,0]],[1/3,[1,1]],[1/3,[2,2]]]);o.gap=l.rInt(28*e[1],28*(e[1]+1))+15,o.bM=l.rChW([[.1,[0,0]],[.15,[1,1]],[.15,[2,2]],[.15,[3,3]],[.15,[4,4]],[.15,[5,5]],[.15,[6,6]]]),o.a1=l.rInt(0,10)*(s.PI/12),o.a2=o.a1+l.rInt(2,10)*(s.PI/12),l.rBool(.2)&&(o.a1=0,o.a2=s.PI/2)}(),e.createCanvas(l.abwA,l.abhA),e.noiseSeed(l.rInt(0,20));let n=o.colBg;e.background(n[0],n[1],n[2]),o.brd=15,o.cV=e.createVector,function(){let t=s.round(399.49),r=l.abw/175,n=l.abh/t;o.dots=[];let i=l.rInt(250,500);for(let l=0;l<=t;l++){let t=[];for(let o=0;o<=175;o++){let a=0;l%2==0&&(a=r/2);let c=o*r+a,h=l*n,x=e.noise(c/i,h/i);x=s.contr(x,2),x=s.max(x,.25),x*=6,t.push([c,h,x])}o.dots.push(t)}}(),i=new r,o.gS=i.init(),o.gD=i.dp(e),o.dS=!1,o.dD=!1,o.dBD=!1,o.xp=!1,e.scale(l.absc),a(e),c(e)},e.draw=()=>{o.dS?o.dD?e.noLoop():h(e,l.absc):(o.dS=o.gS.next().done,e.scale(l.absc),e.noStroke(),e.fill(o.colBg),e.rect(l.abw/2-200,l.abh/2-5,400,5),e.fill(o.col1),e.rect(l.abw/2-200,l.abh/2-5,e.map(i.lC,0,i.lMx,0,400),5))},e.keyPressed=()=>{"1"==e.key?x(7016):"2"==e.key?x(4961):"3"==e.key?x(3508):"4"==e.key&&x(2480)}}),window.document.body)})();
This generative algorithm explores the geometric theme of non-intersecting line segments. In short: no two lines in this design are allowed to cross each other. By incorporating various boundaries and shapes, constraining line angles, adjusting line density and applying several other techniques, a wide range of intricate compositions is produced. The inability to truly connect can be interpreted as a metaphor for modern day life where we are flooded with digital means of communication but often struggle or fail to connect on a deeper, interpersonal level. This project thus reflects on the paradoxical nature of our increasingly interconnected yet isolated existence. Using the keys numbered 1 to 4, you can export high-resolution files in sizes from A1 to A4 for printing at 300 dpi. Please be patient while the exports render. The success of the export may depend on your hardware configuration. If larger sizes fail to render, try exporting smaller sizes.