0xb025…0c1e

All memos sent from and to 0xb025…0c1e.

ipfs://QmQnpiNAPu9wL42RjeuqqnWHGVQzPfqSYDhv5Vb3stc4LM/1.jsonipfs://QmQnpiNAPu9wL42RjeuqqnWHGVQzPfqSYDhv5Vb3stc4LM/2.jsonipfs://QmQnpiNAPu9wL42RjeuqqnWHGVQzPfqSYDhv5Vb3stc4LM/3.jsonipfs://QmQnpiNAPu9wL42RjeuqqnWHGVQzPfqSYDhv5Vb3stc4LM/4.jsonipfs://QmQnpiNAPu9wL42RjeuqqnWHGVQzPfqSYDhv5Vb3stc4LM/5.jsonipfs://QmQnpiNAPu9wL42RjeuqqnWHGVQzPfqSYDhv5Vb3stc4LM/6.jsonipfs://QmQnpiNAPu9wL42RjeuqqnWHGVQzPfqSYDhv5Vb3stc4LM/7.jsonipfs://QmQnpiNAPu9wL42RjeuqqnWHGVQzPfqSYDhv5Vb3stc4LM/8.jsonipfs://QmQnpiNAPu9wL42RjeuqqnWHGVQzPfqSYDhv5Vb3stc4LM/9.jsonipfs://QmQnpiNAPu9wL42RjeuqqnWHGVQzPfqSYDhv5Vb3stc4LM/10.jsonipfs://QmQnpiNAPu9wL42RjeuqqnWHGVQzPfqSYDhv5Vb3stc4LM/11.jsonipfs://QmQnpiNAPu9wL42RjeuqqnWHGVQzPfqSYDhv5Vb3stc4LM/12.jsonipfs://QmQnpiNAPu9wL42RjeuqqnWHGVQzPfqSYDhv5Vb3stc4LM/13.jsonipfs://QmQnpiNAPu9wL42RjeuqqnWHGVQzPfqSYDhv5Vb3stc4LM/14.jsonipfs://QmQnpiNAPu9wL42RjeuqqnWHGVQzPfqSYDhv5Vb3stc4LM/15.jsonipfs://QmQnpiNAPu9wL42RjeuqqnWHGVQzPfqSYDhv5Vb3stc4LM/16.jsonipfs://QmQnpiNAPu9wL42RjeuqqnWHGVQzPfqSYDhv5Vb3stc4LM/17.jsonipfs://QmQnpiNAPu9wL42RjeuqqnWHGVQzPfqSYDhv5Vb3stc4LM/18.jsonipfs://QmQnpiNAPu9wL42RjeuqqnWHGVQzPfqSYDhv5Vb3stc4LM/19.jsonipfs://QmQnpiNAPu9wL42RjeuqqnWHGVQzPfqSYDhv5Vb3stc4LM/20.jsonipfs://QmQnpiNAPu9wL42RjeuqqnWHGVQzPfqSYDhv5Vb3stc4LM/21.jsonipfs://QmQnpiNAPu9wL42RjeuqqnWHGVQzPfqSYDhv5Vb3stc4LM/22.jsonipfs://QmQnpiNAPu9wL42RjeuqqnWHGVQzPfqSYDhv5Vb3stc4LM/23.json
When I was working in graphic design and immersed in typography, I spent a year and a half designing this “2”. A personal obsession, I drew and redrew it hundreds of times until I felt it reached the perfect form in balance, weight, and drama. This generative series revisits my captivation with this character object, using the algorithm as a tool for continued obsession and exploration. I want people to experience this collection and never see a “2” in the same way again. I also want to remind viewers that exquisiteness can exist in any mundane thing. My background in graphic design and typography is ingrained in how I think. Regardless of medium, I have always been a designer of iteration, exhaustively trialing possibilities within a set of constraints to uncover the best way, or the most ways. Twos takes a “perfected” form and puts it to a further test. Different outputs situate the form in different contexts, look at it askew, or emphasize isolated parts of it for endless results. The texture within the collection is inspired by low resolution effects (pixelation) and textures that arise from analog printmaking techniques and pen lines. It blends the hand-drawn nature of my original “2” with the power of obsessive exploration only possible with computer generative iteration. Layers of tiny squares, under and above the characters, are used to mimic the texture of a pen or a stamp. Found in much of my work, these “visible pixels” represent the physical module upon which digital art is created - and by calling back to pixel art, act as a reminder that code is still a craft, and the generated image isn’t far from the artist’s hand. Beyond the beauty of the form, the number two is a special quantity because it implies possibilities beyond itself. A system containing zero or one elements is inert. Two creates an interaction, a dyad, and implies the possibility of more than two – an expanding system. In computer programming, this is expressed as the "zero, one, infinity" rule. The two represents a potentially endless continuation. Each feature in the collection represents either the analog or the digital journey of this character. Some compositions render each symbol as linework, reminiscent of its earliest hand drawn form. Others render it as the solid numeral, completed after its long journey of iteration. Some compositions are gridded, others are organic and loose. Some are contained by a frame, others are open and unrestrained. Color enters a few outputs: the mark of new technological tools like the first colored ink in printing, or the move from black and white to digital screens. The brightest hues used depend on light emittance of the screen and wouldn’t translate exactly when printed in standard inks. But in a further application of constraint, most outputs are neutral in color, keeping the focus on the formal obsession with this small, beautiful character.
60+f,96+f,600+f,125+f,600+f);bezierVertex(125+f,600+f,0+f,600+f,0+f,500+f);bezierVertex(0+f,500+f,0+f,380+f,180+f,375+f);bezierVertex(180+f,375+f,330+f,375+f,330+f,200+f);bezierVertex(330+f,200+f,335+f,60+f,180+f,60+f);bezierVertex(180+f,60+f,295+f,80+f,295+f,200+f);bezierVertex(295+f,200+f,295+f,340+f,140+f,340+f);bezierVertex(140+f,340+f,-7+f,335+f,0+f,200+f);bezierVertex(0+f,200+f,0+f,0+f,250+f,0+f);endShape();pop()}function download(){if(savesremaining){saveCanvas();savesremaining--}else{noLoop()}}function keyTyped(){if(key==="d"){saveCanvas()}}const sheet=new CSSStyleSheet;const styleStr="html { margin: 0; padding: 0; } body { margin: 0; display: flex; justify-content: center; align-items: center; } canvas { display: block; height: 100vh !important; width: 83.3333vh !important; }";sheet.replace(styleStr);document.adoptedStyleSheets=[sheet];
5,.5);random(horizA)(862.5,.25)}else{if(random(0,100)<33){random(horizA)(0,2);random(horizA)(singley*2,1.5);random(horizA)(singley*3.5,1);random(horizA)(singley*4.5,.75);random(horizA)(singley*5.25,.5);random(horizA)(singley*5.75,.2);random(horizA)(singley*5.95,.05)}else{if(random(0,100)<50){random(horizA)(0,.05);random(horizA)(singley/20,.1);random(horizA)(singley/7,.2);random(horizA)(singley/3,.5);random(horizA)(singley/1.22,.75);random(horizA)(singley*1.55,1);random(horizA)(singley*2.52,1.5);random(horizA)(singley*4,2)}else{if(random(0,100)<50){random(horizA)(0,.25);random(horizA)(singley/4,.5);random(horizA)(singley*.75,1);random(horizA)(singley*1.75,2);random(horizA)(singley*3.75,1);random(horizA)(singley*4.75,.75);random(horizA)(singley*5.5,.5)}else{random(horizA)(0,.05);random(horizA)(singley*.05,.15);random(horizA)(singley*.2,.25);random(horizA)(singley*.45,.5);random(horizA)(singley*.95,.8);random(horizA)(singley*1.75,2.5);random(horizA)(singley*4.25,.8);random(horizA)(singley*5.05,.5);random(horizA)(singley*5.55,.25);random(horizA)(singley*5.8,.15);random(horizA)(singley*5.95,.05)}}}}}}}function three(y,h){TwoA(0,y,1,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(125,y,2,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(375,y,3,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(0,y,1,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(125,y,2,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(375,y,3,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects))}function threeR(y,h){TwoA(0,y,3,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(375,y,2,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(625,y,1,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(0,y,3,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(375,y,2,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(625,y,1,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects))}function five(y,h){TwoA(0,y,.25,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single/4,y,.5,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*.75,y,1,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*1.75,y,1.5,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*3.25,y,2.75,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(0,y,.25,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single/4,y,.5,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*.75,y,1,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*1.75,y,1.5,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*3.25,y,2.75,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects))}function fiveR(y,h){TwoA(0,y,2.75,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*2.75,y,1.5,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*4.25,y,1,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*5.25,y,.5,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*5.75,y,.25,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(0,y,2.75,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*2.75,y,1.5,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*4.25,y,1,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*5.25,y,.5,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*5.75,y,.25,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects))}function eight(y,h){TwoA(0,y,.05,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single/20,y,.1,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single/7,y,.2,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single/3,y,.5,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single/1.22,y,.75,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*1.55,y,1,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*2.52,y,1.5,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*4,y,2,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(0,y,.05,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single/20,y,.1,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single/7,y,.2,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single/3,y,.5,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single/1.22,y,.75,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*1.55,y,1,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*2.52,y,1.5,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*4,y,2,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects))}function eightR(y,h){TwoA(0,y,2,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*2,y,1.5,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*3.5,y,1,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*4.5,y,.75,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*5.25,y,.5,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*5.75,y,.2,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*5.95,y,.05,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(0,y,2,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*2,y,1.5,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*3.5,y,1,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*4.5,y,.75,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*5.25,y,.5,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*5.75,y,.2,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*5.95,y,.05,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects))}function Symm(y,h){TwoA(0,y,.25,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single/4,y,.5,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*.75,y,.75,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*1.5,y,1,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*2.5,y,2,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*4.5,y,1,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*5.5,y,.5,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(0,y,.25,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single/4,y,.5,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*.75,y,.75,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*1.5,y,1,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*2.5,y,2,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*4.5,y,1,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*5.5,y,.5,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects))}function SymmR(y,h){TwoA(0,y,.5,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*.5,y,1,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*1.5,y,2,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*3.5,y,1,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*4.5,y,.75,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*5.25,y,.5,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*5.75,y,.25,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(0,y,.5,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*.5,y,1,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*1.5,y,2,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*3.5,y,1,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*4.5,y,.75,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*5.25,y,.5,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*5.75,y,.25,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects))}function Symm2(y,h){TwoA(0,y,.05,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*.05,y,.15,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*.2,y,.25,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*.45,y,.5,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*.95,y,.8,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*1.75,y,2.5,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*4.25,y,.8,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*5.05,y,.5,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*5.55,y,.25,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*5.8,y,.15,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(single*5.95,y,.05,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(0,y,.05,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*.05,y,.15,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*.2,y,.25,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*.45,y,.5,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*.95,y,.8,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*1.75,y,2.5,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*4.25,y,.8,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*5.05,y,.5,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*5.55,y,.25,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*5.8,y,.15,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects));RectAlign(single*5.95,y,.05,h,strokeornotB,weightB,strokecolorhere,fillyesorno,random(ArchRects))}checksizeAh=[.625,.625,1.25,1.25];if(marginfullornot==0){if(random(0,100)<100){CheckFieldSized(0,0,750,900,random(checksizeAh),random(bkgd1),random(bkgd2),random(5,27));pop()}}if(marginfullornot==1){pop();if(random(0,100)<100){CheckFieldSized(0,0,750,900,random(checksizeAh),random(bkgd1),random(bkgd2),random(5,27))}}push();if(k==1&&bordersize>60&&random(0,100)<16){features.mark="Signed";if(random(0,100)<50){CornerStamp(random(twosc),random(bkgd1))}else{CornerStamp(random(bkgd1),random(twosc))}}else{if(random(0,100)<18){features.mark="Signed";if(random(0,100)<50){CornerStamp(random(twosc),random(bkgd1))}else{CornerStamp(random(bkgd1),random(twosc))}}else{features.mark="Unsigned"}}pop()}function BIGBorderOptions(bordersize,bkgdcolor1,bkgdcolor2,lowend1,highend1,lowend2,highend12){borderSize=bordersize;if(bordersize==0){prob=random(lowend1,highend1);checksizeA=[1.25,1.25,1.25,2.5,2.5,2.5,2.5,2.5,2.5];SHIFTh1=0;SHIFTh2=0;SHIFTh3=0;SHIFTh4=0}else{if(random(0,100)<50){prob=random(lowend1,highend1);checksizeA=[1.25,1.25,2.5,2.5,2.5,2.5,5];SHIFTh1=0;SHIFTh2=0;SHIFTh3=0;SHIFTh4=0}else{if(random(0,50)<20){prob=random(85,110);checksizeA=[2.5,2.5,2.5,2.5,2.5,5];SHIFThA=[-100,-80,-60,-40,40,60,80,100];SHIFTh1=random(SHIFThA);SHIFTh2=SHIFTh1;SHIFTh3=0;SHIFTh4=0}else{prob=random(95,105);checksizeA=[1.25,1.25,2.5,2.5,2.5,2.5,5];SHIFThA=[-80,-60,-40,40,60,80];SHIFTh1=random(SHIFThA);SHIFTh2=random(SHIFThA);SHIFTh3=random(subset(SHIFThA,1,4));SHIFTh4=random(subset(SHIFThA,1,4))}}}cS=random(checksizeA);CheckFieldSized(0,0,width,borderSize*1.2+SHIFTh3,cS,bkgdcolor1,bkgdcolor2,prob);CheckFieldSized(0,borderSize*1.2+SHIFTh3,borderSize+SHIFTh1,height-borderSize*1.2-SHIFTh4,cS,bkgdcolor1,bkgdcolor2,prob);CheckFieldSized(0,height-borderSize*1.2-SHIFTh4,width,height,cS,bkgdcolor1,bkgdcolor2,prob);CheckFieldSized(width-borderSize-SHIFTh2,borderSize*1.2+SHIFTh3,width,height-borderSize*1.2-SHIFTh4,cS,bkgdcolor1,bkgdcolor2,prob)}function BIGBorderOptionsNoShift(bordersize,bkgdcolor1,bkgdcolor2){borderSize=bordersize;checksizeA=[1.25,1.25,1.25,2.5,2.5,2.5,2.5,2.5,2.5];SHIFTh1=0;SHIFTh2=0;SHIFTh3=0;SHIFTh4=0;cS=random(checksizeA);prob=random(95,109);CheckFieldSized(0,0,width,borderSize*1.2+SHIFTh3,cS,bkgdcolor1,bkgdcolor2,prob);CheckFieldSized(0,borderSize*1.2+SHIFTh3,borderSize+SHIFTh1,height-borderSize*1.2-SHIFTh4,cS,bkgdcolor1,bkgdcolor2,prob);CheckFieldSized(0,height-borderSize*1.2-SHIFTh4,width,height,cS,bkgdcolor1,bkgdcolor2,prob);CheckFieldSized(width-borderSize-SHIFTh2,borderSize*1.2+SHIFTh3,width,height-borderSize*1.2-SHIFTh4,cS,bkgdcolor1,bkgdcolor2,prob)}function BIGBorderOptionsSCALE(bordersize){numneeded=width-bordersize*2;percent=numneeded/width;translate(-width*(percent-1)/2,-height*(percent-1)/2);scale(percent,percent)}function BIGMarginOptions(){if(random(0,100)<84){translate(0,0);scale(1,1)}else{if(random(0,12)<9){translate(-width*(.8-1)/random(1.6,2),-height*(.8-1)/random(1.6,2));scale(.8,.8)}else{translate(-width*(.7-1)/random(1.6,2),-height*(.7-1)/random(1.6,2));scale(.7,.7)}}}function MarginWithoutBorder(bordersizeA){if(random(0,100)<20&&bordersize<121){changeamtAa=[-bordersize/.5,-bordersize/.75,-bordersize/1.2,-bordersize/1.5,bordersize/.5,bordersize/.75,bordersize/1.2,bordersize/1.5];changeamtBa=[0,bordersize/1.9,bordersize/1.8]}else{if(random(0,80)<20&&bordersize<121){changeamtBa=[-bordersize/.5,-bordersize/.75,-bordersize/1.2,-bordersize/1.5,bordersize/.5,bordersize/.75,bordersize/1.2,bordersize/1.5];changeamtAa=[0,bordersize/1.9,bordersize/1.8]}else{changeamtAa=[0];changeamtBa=[0]}}changeamtA=random(changeamtAa);changeamtB=random(changeamtBa);numneededx=width-bordersize*2+changeamtA;numneededy=width-bordersize*2+changeamtB;percentx=numneededx/width;percenty=numneededy/width;translate(-width*(percentx-1)/2,-height*(percenty-1)/2);scale(percentx,percenty);if(bordersize>119&&random(0,100)<78){translate(0,-(bordersize*.5))}}function CornerStamp(twocolor,rectcolor){SA1=[.15,.2,.2,.25,.25];S1=random(SA1);S2=random(SA1);S3=random(SA1);S4=random(SA1);S5=random(SA1);S6=random(SA1);S7=random(SA1);S8=random(SA1);distA=[15,20,25,30];dista=random(distA);if(random(0,100)<25){vertaddA=[10,20,30,40];vertadd=random(vertaddA)}else{vertadd=0}if(random(0,100)<0){fill(rectcolor);rect(0+dista,0+dista+vertadd,S1*125,S2*150);fill(twocolor);TwoANoFlip(0+dista,0+dista+vertadd,S1,S2)}else{if(random(0,100)<50){fill(rectcolor);rect(0+dista,900-S3*150-dista-vertadd,S4*125,S3*150);fill(twocolor);TwoANoFlip(0+dista,900-S3*150-dista-vertadd,S4,S3)}else{if(random(0,50)<0){fill(rectcolor);rect(750-S5*125-dista,0+dista+vertadd,S5*125,S6*150);fill(twocolor);TwoANoFlip(750-S5*125-dista,0+dista+vertadd,S5,S6)}else{fill(rectcolor);rect(750-S7*125-dista,900-S8*150-dista-vertadd,S7*125,S8*150);fill(twocolor);TwoANoFlip(750-S7*125-dista,900-S8*150-dista-vertadd,S7,S8)}}}}function TwoSizingConstraints(){function A(){widthA=[31.25,187.5];heightA=[37.5,37.5,150];return 1}function B(){widthA=[31.25,31.25,187.5];heightA=[37.5,150];return 1}function C(){widthA=[31.25,31.25,31.25,62.5,125];heightA=[37.5,37.5,37.5,37.5,75];return 1}function D(){widthA=[31.25,31.25,62.5,125,187.5];heightA=[37.5,37.5,37.5,75,75,150];return 1}function E(){widthA=[62.5,125,187.5];heightA=[75,75,150];return 1}function F(){widthA=[62.5,187.5];heightA=[75,150];return 1}function G(){widthA=[62.5,125,125,187.5];heightA=[75,150,225];return 1}function H(){widthA=[375,437.5,500];heightA=[225,450];return 2}function I(){widthA=[62.5,125,187.5,250];heightA=[225,225,300];return 1}function J(){widthA=[187.5,250];heightA=[75,150,150,225,225,300,450];return 1}function K(){widthA=[125,187.5,250];heightA=[75,150,150,225,225,300,450];return 1}function L(){widthA=[187.5,250];heightA=[75,150,225,300,450];return 2}function M(){widthA=[62.5,125];heightA=[75,150,225];return 1}function N(){widthA=[31.25,62.5,125,187.5];heightA=[75];return 1}function O(){widthA=[62.5];heightA=[37.5,75,150,225,300];return 1}function P(){widthA=[62.5];heightA=[75,150,225];return 1}function Q(){widthA=[62.5,125,187.5];heightA=[37.5,37.5,37.5];return 1}function R(){widthA=[62.5,125,187.5,125,187.5];heightA=[75];return 1}function S(){widthA=[125];heightA=[150];return 1}function T(){widthA=[250];heightA=[150,225,300,450];return 1}function U(){widthA=[375];heightA=[450];return 2}function V(){widthA=[500,250];heightA=[300,300,300,600];return 2}function W(){widthA=[250];heightA=[37.5,75,150,225,300,450];return 2}function X(){widthA=[31.25,62.5,125,250];heightA=[225,300];return 1}function Y(){widthA=[250];heightA=[225,300,450];return 1}function Z(){widthA=[375];heightA=[225,300,450];return 2}function AA(){widthA=[375];heightA=[450];return 2}function BB(){widthA=[31.25,62.5,62.5,125,250];heightA=[225];return 1}function CC(){widthA=[31.25,62.5,125,250];heightA=[300];return 1}function DD(){widthA=[31.25,62.5,125,250,375];heightA=[450];return 1}function EE(){widthA=[375];heightA=[37.5,75,75,150,225,300];return 1}function FF(){widthA=[187.5];heightA=[37.5,75,75,150,225,300];return 1}function GG(){widthA=[250];heightA=[37.5,75,75,150,225,300];return 1}function HH(){widthA=[31.25,62.5,125,250,375];heightA=[37.5,75,150,225,300];return 1}function II(){widthA=[250,500];heightA=[300,450];return 1}function JJ(){widthA=[750];heightA=[187.5,187.5,187.5,300,450];return 2}function KK(){widthA=[750];heightA=[450]}function LL(){widthA=[750];heightA=[300]}function MM(){widthA=[31.25,62.5,62.5,125,125,250,250,375];heightA=[900];return 2}function NN(){widthA=[31.25,62.5,62.5,125,125,150,250];heightA=[18.75,37.5,75,75,125,125,150,150,187.5,225,300,350,450];return 2}function OO(){widthA=random(40,375);heightA=random(40,450);return 2}twosizeA=[A,A,B,B,B,D,D,E,E,F,F,G,G,H,H,I,J,J,J,K,K,L,L,L,M,M,N,O,P,Q,R,S,T,T,U,V,W,W,W,X,X,Y,Z,BB,BB,CC,CC,DD,DD,EE,EE,EE,EE,EE,FF,FF,FF,GG,GG,GG,HH,HH,HH,II,NN,NN,NN,NN,NN,NN,OO,OO];random(twosizeA)()}function BIGheightToScale(margin){if(heighthere==900){return 6-margin}}function BIGwidthToScale(margin){if(widthhere==750){return 6-margin}}function margintoTranslate(margin){if(margin==0){return translate(0,0)}if(margin==.1){return translate(6,8)}if(margin==.2){return translate(13,14)}if(margin==.3){return translate(18,22)}if(margin==.8){return translate(50,60)}}function Recta(Tx,Ty,Sx,Sy,outline,weight,strokecolor){if(outline==1){noFill();stroke(strokecolor);strokeWeight(weight)}translate(Tx,Ty);scale(Sx,Sy);rect(0,0,125,150)}function CheckFieldSized(startx,starty,yextend,xextend,checksize,color1,color2,prob){for(x=startx;x<yextend;x+=checksize*2){for(y=starty;y<xextend;y+=checksize*2){if(random(0,100)<prob){fill(color1);rect(x,y,checksize,checksize)}if(random(0,100)<prob){fill(color1);rect(x+checksize,y+checksize,checksize,checksize)}if(random(0,100)<prob){fill(color2);rect(x+checksize,y,checksize,checksize)}if(random(0,100)<prob){fill(color2);rect(x,y+checksize,checksize,checksize)}}}}function RectAlign(Tx,Ty,xextend,yextend,outline,weight,strokecolor){push();translate(Tx,Ty);if(outline==outline){noFill();stroke(strokecolor);strokeWeight(weight)}rect(0,0,xextend*125,yextend*150);pop()}function TwoA(Tx,Ty,Sx,Sy,outline,weight,strokecolor,fillyesorno,strokewithfill){push();if(outline==1){if(fillyesorno==0){noFill()}else{fill(strokewithfill)}stroke(strokecolor);strokeWeight(weight)}push();translate(Tx,Ty);scale(Sx,Sy);beginShape();scale(.2475,.25);if(random(0,100)<20){if(random(0,100)<random(2,50)){scale(1,-1);translate(0,-600)}if(random(0,100)<random(2,50)){scale(-1,1);translate(-500,0)}}f=0;vertex(250+f,0+f);bezierVertex(250+f,0+f,500+f,0+f,500+f,200+f);bezierVertex(500+f,200+f,515+f,335+f,400+f,350+f);bezierVertex(400+f,350+f,250+f,375+f,225+f,425+f);bezierVertex(225+f,425+f,240+f,400+f,280+f,395+f);bezierVertex(280+f,395+f,308+f,395+f,340+f,410+f);bezierVertex(340+f,410+f,375+f,425+f,410+f,420+f);bezierVertex(400+f,420+f,457+f,420+f,465+f,375+f);bezierVertex(465+f,375+f,520+f,385+f,500+f,500+f);bezierVertex(500+f,500+f,490+f,600+f,340+f,600+f);bezierVertex(340+f,600+f,270+f,600+f,215+f,550+f);bezierVertex(215+f,550+f,120+f,472+f,100+f,560+f);bezierVertex(100+f,560+f,96+f,600+f,125+f,600+f);bezierVertex(125+f,600+f,0+f,600+f,0+f,500+f);bezierVertex(0+f,500+f,0+f,380+f,180+f,375+f);bezierVertex(180+f,375+f,330+f,375+f,330+f,200+f);bezierVertex(330+f,200+f,335+f,60+f,180+f,60+f);bezierVertex(180+f,60+f,295+f,80+f,295+f,200+f);bezierVertex(295+f,200+f,295+f,340+f,140+f,340+f);bezierVertex(140+f,340+f,-7+f,335+f,0+f,200+f);bezierVertex(0+f,200+f,0+f,0+f,250+f,0+f);endShape();pop();pop()}function TwoAGiant(Tx,Ty,Sx,Sy,outline,weight,strokecolor,fillyesorno,strokewithfill){push();if(outline==1){if(fillyesorno==0){noFill()}else{fill(strokewithfill)}stroke(strokecolor);strokeWeight(weight)}push();translate(Tx,Ty);scale(Sx,Sy);beginShape();scale(.2475,.25);f=0;vertex(250+f,0+f);bezierVertex(250+f,0+f,500+f,0+f,500+f,200+f);bezierVertex(500+f,200+f,515+f,335+f,400+f,350+f);bezierVertex(400+f,350+f,250+f,375+f,225+f,425+f);bezierVertex(225+f,425+f,240+f,400+f,280+f,395+f);bezierVertex(280+f,395+f,308+f,395+f,340+f,410+f);bezierVertex(340+f,410+f,375+f,425+f,410+f,420+f);bezierVertex(400+f,420+f,457+f,420+f,465+f,375+f);bezierVertex(465+f,375+f,520+f,385+f,500+f,500+f);bezierVertex(500+f,500+f,490+f,600+f,340+f,600+f);bezierVertex(340+f,600+f,270+f,600+f,215+f,550+f);bezierVertex(215+f,550+f,120+f,472+f,100+f,560+f);bezierVertex(100+f,560+f,96+f,600+f,125+f,600+f);bezierVertex(125+f,600+f,0+f,600+f,0+f,500+f);bezierVertex(0+f,500+f,0+f,380+f,180+f,375+f);bezierVertex(180+f,375+f,330+f,375+f,330+f,200+f);bezierVertex(330+f,200+f,335+f,60+f,180+f,60+f);bezierVertex(180+f,60+f,295+f,80+f,295+f,200+f);bezierVertex(295+f,200+f,295+f,340+f,140+f,340+f);bezierVertex(140+f,340+f,-7+f,335+f,0+f,200+f);bezierVertex(0+f,200+f,0+f,0+f,250+f,0+f);endShape();pop();pop()}function TwoANoFlip(Tx,Ty,Sx,Sy){push();translate(Tx,Ty);scale(Sx,Sy);beginShape();scale(.2475,.25);f=0;vertex(250+f,0+f);bezierVertex(250+f,0+f,500+f,0+f,500+f,200+f);bezierVertex(500+f,200+f,515+f,335+f,400+f,350+f);bezierVertex(400+f,350+f,250+f,375+f,225+f,425+f);bezierVertex(225+f,425+f,240+f,400+f,280+f,395+f);bezierVertex(280+f,395+f,308+f,395+f,340+f,410+f);bezierVertex(340+f,410+f,375+f,425+f,410+f,420+f);bezierVertex(400+f,420+f,457+f,420+f,465+f,375+f);bezierVertex(465+f,375+f,520+f,385+f,500+f,500+f);bezierVertex(500+f,500+f,490+f,600+f,340+f,600+f);bezierVertex(340+f,600+f,270+f,600+f,215+f,550+f);bezierVertex(215+f,550+f,120+f,472+f,100+f,560+f);bezierVertex(100+f,5
nd,highend));ColorSameOrNot();if(layerborderyesno==1){push();noFill();Recta(150,230,3.52,2.93,1,layerborder/7.5,random(strokecolorhereA));pop()}TwoA(150,230,3.52,2.93,strokeornot,weight/3.75,random(strokecolorhereA),fillyesorno,random(ArchRects));translate(-translatex3,-translatey3)}if(random(0,100)<newlayerprob){let translatex33=random(translatehere);let translatey33=random(translateherey);translate(translatex33,translatey33);CheckFieldSized(175-addleft,255-addup,561+addright,645+adddown,random(checksizeA),bkgd1here,bkgd2here,random(lowend,highend));ColorSameOrNot();if(layerborderyesno==1){push();noFill();Recta(175,255,3.12,2.595,1,layerborder/7,random(strokecolorhereA));pop()}TwoA(175,255,3.12,2.595,strokeornot,weight/3.5,random(strokecolorhereA),fillyesorno,random(ArchRects));translate(-translatex33,-translatey33)}let translatex4=random(translatehere);let translatey4=random(translateherey);translate(translatex4,translatey4);CheckFieldSized(200-addleft,280-addup,535+addright,620+adddown,random(checksizeA),bkgd1here,bkgd2here,random(lowend,highend));ColorSameOrNot();if(layerborderyesno==1){push();noFill();Recta(200,280,2.72,2.26,1,layerborder/6,random(strokecolorhereA));pop()}TwoA(200,280,2.72,2.26,strokeornot,weight/3,random(strokecolorhereA),fillyesorno,random(ArchRects));translate(-translatex4,-translatey4);if(random(0,100)<newlayerprob){let translatexf4=random(translatehere);let translateyf4=random(translateherey);translate(translatexf4,translateyf4);CheckFieldSized(225-addleft,305-addup,511+addright,595+adddown,random(checksizeA),bkgd1here,bkgd2here,random(lowend,highend));ColorSameOrNot();if(layerborderyesno==1){push();noFill();Recta(225,305,2.32,1.93,1,layerborder/5.5,random(strokecolorhereA));pop()}TwoA(225,305,2.32,1.93,strokeornot,weight/2.5,random(strokecolorhereA),fillyesorno,random(ArchRects));translate(-translatexf4,-translateyf4)}if(random(0,100)<70){let translatex5=random(translatehere);let translatey5=random(translateherey);translate(translatex5,translatey5);CheckFieldSized(250-addleft,330-addup,487+addright,570+adddown,random(checksizeA),bkgd1here,bkgd2here,random(lowend,highend));ColorSameOrNot();if(layerborderyesno==1){push();noFill();Recta(250,330,1.92,1.6,1,layerborder/5,random(strokecolorhereA));pop()}TwoA(250,330,1.92,1.6,strokeornot,weight/2,random(strokecolorhereA),fillyesorno,random(ArchRects));translate(-translatex5,-translatey5)}if(random(0,100)<newlayerprob){let translatex55=random(translatehere);let translatey55=random(translateherey);translate(translatex55,translatey55);CheckFieldSized(275-addleft,355-addup,487+addright,545+adddown,random(checksizeA),bkgd1here,bkgd2here,random(lowend,highend));ColorSameOrNot();if(layerborderyesno==1){push();noFill();Recta(275,355,1.52,1.26,1,layerborder/4.5,random(strokecolorhereA));pop()}TwoA(275,355,1.52,1.26,strokeornot,weight/1.4,random(strokecolorhereA),fillyesorno,random(ArchRects));translate(-translatex55,-translatey55)}if(random(0,100)<72){let translatex6=random(translatehere);let translatey6=random(translateherey);translate(translatex6,translatey6);CheckFieldSized(300-addleft,380-addup,440+addright,520+adddown,random(checksizeA),bkgd1here,bkgd2here,random(lowend,highend));ColorSameOrNot();if(layerborderyesno==1){push();noFill();Recta(300,380,1.12,.93,1,layerborder/4,random(strokecolorhereA));pop()}TwoA(300,380,1.12,.93,strokeornot,weight*.8,random(strokecolorhereA),fillyesorno,random(ArchRects));translate(-translatex6,-translatey6)}if(random(0,100)<25){CheckFieldSized(0,0,750,900,random(checksizeB),bkgd1here,bkgd2here,random(15,28))}else{if(random(0,75)<25){CheckFieldSized(0,0,750,900,random(checksizeB),bkgd2here,colorhere,random(15,28))}else{if(random(0,50)<25){CheckFieldSized(0,0,750,900,random(checksizeB),bkgd1here,colorhere,random(15,28))}else{}}}pop();push();if(random(0,100)<33){BIGBorderOptionsNoShift(bordersize,colorhere,bkgd1here)}else{BIGBorderOptionsNoShift(bordersize,bkgd1here,bkgd2here)}pop();if(bordersize>=50&&random(0,100)<30){features.mark="Signed";if(random(0,100)<50){CornerStamp(colorhere,random(bkgd1))}else{CornerStamp(random(bkgd1),colorhere)}}else{if(random(0,100)<0){features.mark="Signed";if(random(0,100)<50){CornerStamp(colorhere,random(bkgd1))}else{CornerStamp(random(bkgd1),colorhere)}}else{features.mark="Unsigned"}}}function StructuredUnstructured(){layerborderyesnoA=[0,1,1,1,1,1,1];layerborderyesno=random(layerborderyesnoA);layerborderweightA=[.5,.75,1];StrokeYNA=[0,0,0,0,0,0,1,1,1,1];strokeYN=random(StrokeYNA);weightAa=[5,5,6,7,8,10,10,11,12];weightAb=[5,5,6,7,8];weightAc=[3,4,5,5,6,7];push();if(random(0,100)<83){features.perimeter="Open";bordersize=0}else{features.perimeter="Contained";bordersizeA=[40,50,50,60,60,60,80,80,80,80,90,90,90,100,110,120,130,140,150];bordersize=random(bordersizeA);BIGBorderOptionsSCALE(bordersize)}if(random(0,100)<50){backgroundhere1=random(bkgd1);backgroundhere2=random(bkgd1);bkgdcolor1=backgroundhere1;bkgdcolor2=backgroundhere2}else{backgroundhere1=random(bkgd1);backgroundhere2=random(bkgd1);bkgdcolor1=random(bkgd1);bkgdcolor2=random(bkgd2)}push();sh=ScaleHere();checksizeA=[.625,.625,1.25,1.25,1.25,1.25,2.5];CheckFieldSized(0,0,750,900,random(checksizeA),backgroundhere1,backgroundhere2,random(93,102));if(random(0,100)<70){samountx=[-80,0,0,0];samounty=[0]}else{samountx=[0];samounty=[-60,0,0,60]}alignstyleA=[0,1];alignstyle=random(alignstyleA);if(random(0,100)<60){lamountx=[80,80,80,120,120,160];lamounty=[-80,0,0,0,80,80];if(alignstyle==0){hamountx=[-80,0,80,120,120,160,160,200,200,200];hamounty=[-80,0,0,0,0,80,80];famountx=[200,240,240,280,280,320,320];famounty=[80,120,120]}}else{lamountx=[-80,0,0,0,80,80,80];lamounty=[-80,0,80,80,80,120,120,160];if(alignstyle==0){hamountx=[-80,0,0,0,0,80,80,80,120];hamounty=[-80,0,80,120,120,160,160,200,200,200,240,280];famountx=[80,120,120,120,160];famounty=[200,240,240,280,280,320,320,360,360,360,400]}}if(alignstyle==1){if(random(0,100)<40){hamountx=[-80,0,80,120,120,160,160,200,200,200];hamounty=[-80,0,0,0,0,80,80]}else{hamountx=[-80,0,0,0,0,80,80,80,120];hamounty=[-80,0,80,120,120,160,160,200,200,200,240,280]}if(random(0,100)<40){famountx=[200,240,240,280,280,320,320];famounty=[80,120,120]}else{famountx=[80,120,120,120,160];famounty=[200,240,240,280,280,320,320,360,360,360,400]}}fherex=random([famountx]);fherey=random([famounty]);Layer(samountx,samounty,1,1,1,strokeYN,1,1,weightAa);Layer(lamountx,lamounty,1,1,1,strokeYN,1,1,weightAa);if(random(0,100)<67){Layer(hamountx,hamounty,1,1,1,strokeYN,1,1,weightAa)}if(random(0,100)<30&&bordersize==0){Layer(fherex,fherey,1,1,2,strokeYN,1,1,weightAb)}if(alignstyle==1){if(random(0,100)<40){hamountx=[-80,0,80,120,120,160,160,200,200,200];hamounty=[-80,0,0,0,0,80,80]}else{hamountx=[-80,0,0,0,0,80,80,80,120];hamounty=[-80,0,80,120,120,160,160,200,200,200,240,280]}if(random(0,100)<40){famountx=[200,240,240,280,280,320,320];famounty=[80,120,120]}else{famountx=[80,120,120,120,160];famounty=[200,240,240,280,280,320,320,360,360,360,400]}}function Layer(x,y,yes,prob,scaleup,strokeYN,fillprobH,layerborderyesno,weightA){bkgdcolora=random(bkgd1);bkgdcolorb=random(bkgd2);if(random(0,100)<50){push();translate(375+random(x),450+random(y));TwosInCorners(yes,prob,scaleup,strokeYN,fillprobH,bkgdcolora,bkgdcolorb,layerborderyesno,weightA);pop();push();translate(-375-random(x),-450-random(y));TwosInCorners(yes,prob,scaleup,strokeYN,fillprobH,bkgdcolora,bkgdcolorb,layerborderyesno,weightA);pop();push();translate(375+random(x),-450-random(y));TwosInCorners(yes,prob,scaleup,strokeYN,fillprobH,bkgdcolora,bkgdcolorb,layerborderyesno,weightA);pop();push();translate(-375-random(x),450+random(y));TwosInCorners(yes,prob,scaleup,strokeYN,fillprobH,bkgdcolora,bkgdcolorb,layerborderyesno,weightA);pop()}else{push();translate(375+random(x),450+random(y));TwosInCorners(yes,prob,scaleup,strokeYN,fillprobH,random(bkgd1),random(bkgd2),layerborderyesno,weightA);pop();push();translate(-375-random(x),-450-random(y));TwosInCorners(yes,prob,scaleup,strokeYN,fillprobH,random(bkgd1),random(bkgd2),layerborderyesno,weightA);pop();push();translate(375+random(x),-450-random(y));TwosInCorners(yes,prob,scaleup,strokeYN,fillprobH,random(bkgd1),random(bkgd2),layerborderyesno,weightA);pop();push();translate(-375-random(x),450+random(y));TwosInCorners(yes,prob,scaleup,strokeYN,fillprobH,random(bkgd1),random(bkgd2),layerborderyesno,weightA);pop()}}function ScaleHere(){if(random(0,100)<20){translate(0,0);scale(1,1);checksizeA=[.625,1.25,1.25,2.5]}else{if(random(0,80)<53){translate(random(-250,-75),random(-450,-50));scale(1.5,1.5);checksizeA=[.41666,.83332]}else{if(random(0,27)<19){translate(random(-500,-175),random(-250,-650));scale(2,2);checksizeA=[.3125]}else{if(random(0,8)<6){checksizeA=[.25];translate(random(-375,-700),random(-525,-825));scale(2.5,2.5)}else{translate(-750,-900);scale(3,3);checksizeA=[.2083]}}}}}function TwosInCorners(bkgdyesorno,twprob,scaleup,strokeYN,fillprobH,bkgdcolor1,bkgdcolor2,layerborderyesno,weightA){weightconstornotA=[0,1,1,1,1,1];weightconstornot=random(weightconstornotA);if(weightconstornot==0){weight=random(weightA)}if(strokeYN==1){features.style="Sketched";strokeornot=1;if(weightconstornot==1){weight=random(weightA)}strokecolorhere=strokecolor;if(fillprobH==0){fillyesorno=1}else{if(fillprobH==1){if(random(0,100)<random(30,110)){fillyesorno=0}else{if(random(0,45)<40){if(random(0,100)<random(25,50)){fillyesorno=0}else{fillyesorno=1}}else{fillyesorno=1}}}}if(layerborderyesno==1){layerborder=random(layerborderweightA)}else{layerborder=0}}else{features.style="Solid";strokeornot=0;strokecolorhere=(255,255,255,255);weight=0;fillyesorno=1;layerborder=0}checksizeA=[1.25,2.5];here=bkgdyesorno;if(here>0){CheckFieldSized(0,0,750,900,random(checksizeA),bkgdcolor1,bkgdcolor2,random(93,100))}if(random(0,100)<random(45,105)){push();strokesizeA=[1,1.5];noFill();RectAlign(0,0,width,height,weight,layerborder,strokecolorhere);pop()}if(scaleup==1){SA1=[.75,.75,1.125,1.5]}if(scaleup==2){if(random(0,100)<38){SA1=[.75,.75,1.125,1.5]}else{SA1=[1.5,1.75,2,2.25]}}S1=random(SA1);S2=random(SA1);S3=random(SA1);S4=random(SA1);S5=random(SA1);S6=random(SA1);S7=random(SA1);S8=random(SA1);if(random(0,100)<92){fill(random(twosc))}else{fill(random(twosc2))}if(twprob==1){TwoA(0,0,S1,S2,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(0,900-S3*150,S4,S3,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(750-S5*125,0,S5,S6,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(750-S7*125,900-S8*150,S7,S8,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects))}else{if(random(0,100)<24){TwoA(0,0,S1,S2,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(0,900-S3*150,S4,S3,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(750-S5*125,0,S5,S6,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));TwoA(750-S7*125,900-S8*150,S7,S8,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects))}}}pop();pop();push();if(random(0,100)<35){BIGBorderOptionsNoShift(bordersize,random(bkgd1),random(bkgd2))}else{BIGBorderOptionsNoShift(bordersize,random(bkgd1),random(twosc))}pop();if(bordersize>30&&strokeYN==1&&random(0,100)<55){if(random(0,100)<100){fillyesorno=1}else{fillyesorno=0}layerborder=0;push();fill(random(ArchRects));Layer(fherex,fherey,0,0,2,1,0,0,weightAc);pop()}if(random(0,100)<80){checksizeH=[.3125,.625,.625,.625,1.25];CheckFieldSized(0,0,750,900,random(checksizeH),bkgdcolor1,bkgdcolor2,random(8,27))}if(bordersize>=50&&random(0,100)<65){features.mark="Signed";if(random(0,100)<50){CornerStamp(random(twosc),random(bkgd1))}else{CornerStamp(random(bkgd1),random(twosc))}}else{if(random(0,100)<18){features.mark="Signed";if(random(0,100)<50){CornerStamp(random(twosc),random(bkgd1))}else{CornerStamp(random(bkgd1),random(twosc))}}else{features.mark="Unsigned"}}}function Grids(x,y,w,h){checksizeA=[1.25,2.5,2.5,2.5,2.5,2.5,2.5];CheckFieldSized(0,0,750,900,random(checksizeA),random(bkgd1),random(bkgd2),100);push();TwoSizingConstraints();t=TwoSizingConstraints();layerborderstyleA=[0,0,0,0,1,1,3];layerborderstyle=random(layerborderstyleA);if(t==1){marginA=[0,0,0,.1,.2,.3];margin=random(marginA)}else{marginA=[0,0,0,0,0,0,0,0,.1,.1,.1,.2];margin=random(marginA)}if(random(0,100)<73){bordersizeA=[-75,-40,20,30,40,40,50,60,60,70,80,100,110,120,130,140,160,180,50,60,60,70,80,100,110,120,130,140,160,180,50,60,60,70,80,100,110,120,130,140,160,180]}else{bordersizeA=[0]}bordersize=random(bordersizeA);MarginWithoutBorder(bordersize);if(bordersize<=0){features.perimeter="Open"}else{features.perimeter="Contained"}checksizeAH=[.625,1.25];CSAH=random(checksizeAH);checksizeAH2=[.625,.625,.625];CSAH2=random(checksizeAH2);if(random(0,100)<4&&bordersize>50){widthheredetermineA=0;widthhere=random(widthA)}else{widthheredetermineA=1}if(widthheredetermineA==0&&widthhere<251){agitateA=[.0011]}else{if(random(0,96)<30){agitateA=[.0011]}else{if(random(0,66)<12){agitateA=[.001]}else{agitateA=[0]}}}layerborderyesnoA=[1,0];layerborderyesno=random(layerborderyesnoA);StrokeYNA=[1,1,1,0,0,0,0,0,0];StrokeYN=random(StrokeYNA);if(StrokeYN==1){features.style="Sketched";weightA=[3.5,5,5,5,5,5,5,10,10,10,10];weightconstornotA=[0,0,1];weightconstornot=random(weightconstornotA);if(weightconstornot==0){weight=random(weightA)}}else{features.style="Solid";weightA=[0];weightconstornotA=[0,0,1];weightconstornot=random(weightconstornotA);if(weightconstornot==0){weight=random(weightA)}}let blockproboverallA=[0,0,0,0,0,1,1,1];let blockproboverall=random(blockproboverallA);if(random(0,100)<50){for(y=0;y<height;y+=heighthere){heighthere=random(heightA);if(heighthere>height-y){heighthere=height-y}h=heightToScale(margin);for(x=0;x<width;x+=widthhere){if(widthheredetermineA==1){widthhere=random(widthA)}if(widthhere>width-x){widthhere=width-x}w=widthToScale(margin);RestOfIt(StrokeYN,blockproboverall)}}}else{for(x=0;x<width;x+=widthhere){if(widthheredetermineA==1){widthhere=random(widthA)}if(widthhere>width-x){widthhere=width-x}w=widthToScale(margin);for(y=0;y<height;y+=heighthere){heighthere=random(heightA);if(heighthere>=height-y){heighthere=height-y}h=heightToScale(margin);RestOfIt(StrokeYN,blockproboverall)}}}function RestOfIt(StrokeYN,blockproboverall){if(StrokeYN==1){strokeornot=1;if(weightconstornot==1){weight=random(weightA)}strokecolorhere=strokecolor;if(random(0,100)<random(50,110)){fillyesorno=0}else{if(random(0,45)<40){if(random(0,100)<random(15,60)){fillyesorno=0}else{fillyesorno=1}}else{fillyesorno=1}}if(layerborderyesno==1){layerborderweightA=[.75,1,1.5];layerborder=random(layerborderweightA)}else{layerborder=0}}else{strokeornot=0;strokecolorhere=(255,255,255,0);weight=0;fillyesorno=1;layerborder=0}agitate=random(agitateA);if(agitate==0&&bordersize>=0&&blockproboverall==1&&(widthhere<=250||heighthere<=300)&&strokeornot==0){blockprobA=[1,4,50,90]}else{if(strokeornot==1&&margin==0){blockprobA=[0]}else{blockprobA=[0]}}if(random(0,100)<random(blockprobA)){push();fill(random(twosc));margintoTranslate(margin);Recta(x+agitate,y,w,h,strokeornot,weight/5.1,strokecolorhere);pop()}else{if(agitate>.0014){CheckFieldSized(x+agitate,y,x+widthhere+agitate,y+heighthere,CSAH,random(bkgd1),random(bkgd2),random(90,100))}if(agitate==.0011){CheckFieldSized(x+agitate,y,x+widthhere,y+heighthere,CSAH,random(bkgd1),random(bkgd2),random(90,100))}if(agitate==.001){CheckFieldSized(x+agitate,y,x+widthhere,y+heighthere,CSAH,random(bkgd1),random(bkgd2),random(90,100))}if(agitate==0){}push();if(random(0,100)<80){maintwoshere=random(twosc);fill(maintwoshere)}else{fill(random(twosc2))}push();if(agitate==.0011||agitate==.001||agitate==0){if(layerborderstyle==0){RectAlign(x+agitate-margin,y-margin,w+margin,h+margin,strokeornot,layerborder,strokecolorhere)}if(layerborderstyle==1){margintoTranslate(margin);RectAlign(x+agitate,y,w,h,strokeornot,layerborder,strokecolorhere)}if(layerborderstyle==3){if(random(0,100)<random(65,82)){RectAlign(x+agitate-margin,y-margin,w+margin,h+margin,strokeornot,layerborder,strokecolorhere)}else{margintoTranslate(margin);RectAlign(x+agitate,y,w,h,strokeornot,layerborder,strokecolorhere)}}}pop();margintoTranslate(margin);TwoA(x+agitate,y,w,h,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects));pop();if(agitate>.0014){CheckFieldSized(x+agitate,y,x+widthhere+agitate,y+heighthere,CSAH2,random(bkgd1),random(bkgd2),random(-2,50))}if(agitate==.0011){CheckFieldSized(x+agitate,y,x+widthhere,y+heighthere,CSAH2,random(bkgd1),random(bkgd2),random(-2,50))}if(agitate==.001){}probhereA=[0,0,1,2,2];probhere=random(probhereA);if(agitate==0){if(random(0,100)<70){CheckFieldSized(x+agitate,y,x+widthhere,y+heighthere,CSAH2,random(bkgd1),random(bkgd2),random(-2,45))}}}}if(agitateA==0&&probhere==1||random(blockprobA)>0){CheckFieldSized(0,0,750,900,CSAH2,random(bkgd1),random(bkgd2),random(10,25))}if(agitateA==.001&&random(0,100)<75||random(blockprobA)>0){CheckFieldSized(0,0,750,900,CSAH2,random(bkgd1),random(bkgd2),random(10,25))}function heightToScale(margin){return heighthere/150-margin}function widthToScale(margin){return widthhere/125-margin}pop();if(bordersize>50&&random(0,100)<18){features.mark="Signed";if(random(0,100)<50){CornerStamp(maintwoshere,random(bkgd1))}else{CornerStamp(random(bkgd1),maintwoshere)}}else{features.mark="Unsigned"}}function Floaters(){push();if(random(0,100)<92){fillprob=0}else{fillprob=100}if(random(0,100)<2){features.style="Sketched";strokeornot=1;weightA=[5,6,6,6,7,8,9,10,12];weight=random(weightA);strokecolorhere=strokecolor;fillyesorno=fillprob}else{features.style="Solid";strokeornot=0;strokecolorhere=(255,255,255,255);weight=0;fillyesorno=1;strokeornotB=0}if(random(0,100)<9){bordersize=0;features.perimeter="Open"}else{features.perimeter="Contained";bordersizeA=[40,50,60,60,70,70,80,80,80,90,100,100,100,110,120,120,130,130,150,160,170,180,190,190,200];bordersize=random(bordersizeA);BIGBorderOptionsSCALE(bordersize)}backgroundhere1=random(bkgd1);backgroundhere2=random(bkgd2);bkgdcolor1=backgroundhere1;bkgdcolor2=backgroundhere1;maincolorhereA=random(bkgd1);fill(maincolorhereA);rect(-300,-300,1050,1200);two1here=random(twosc);function A(){features.style="Solid";strokeornot=0;strokecolorhere=(255,255,255,255);weight=0;fillyesorno=1;strokeornotB=0;for(x=0;x<random(3e3);x+=random(2,8)){push();scaleA=[.25,.5,.75,1];scaleB=[.25,.5,.75,1];bigscale=[3,4,5,6];together(random(-300,1050),random(-200,1200),random(twosc2));pop();for(x=0;x<random(900,3e3);x+=random(2,8)){scaleA=[.005,.01,.03,.0625,.125,.25];bigscale=[3,4,5,6];together(random(-200,750),random(-300,1200),random(twosc2));together(random(-200,750),random(-300,1200),random(twosc2))}}}function B(){if(random(0,92)<50){scaleA=[.0625,.125,.25,.3];scaleB=[.0625,.125,.25,.3]}else{scaleA=[.04,.0625,.125,.25,.3,.4];scaleB=[.04,.0625,.125,.25,.3,.4]}if(random(0,92)<100){for(x=0;x<random(900,3e3);x+=4){bigscale=[4,5];together(random(-400,1150),random(-400,1300),random(twosc2))}}}function C(){for(x=0;x<2500;x+=random(4,28)){scaleA=[.75,1,1.2,1.5];scaleB=[.25,.5,.75];bigscale=[2,3,4];together(random(-400,1150),random(-400,1300),random(twosc2))}}function D(){for(x=0;x<2500;x+=random(2,10)){scaleA=[.25,.5,.75];scaleB=[.25,.5,.75];bigscale=[4,5,6,7];together(random(-400,1150),random(-400,1300),random(twosc2))}}function E(){for(x=0;x<3e3;x+=2){scaleA=[.0625,.125,.25,.5,.75,1,1.2];scaleB=[.0625,.125,.25,.5,.75,1,1.2];bigscale=[3,3,3,4,4,4,5];together(random(-400,1150),random(-400,1300),random(twosc2))}}function F(){for(x=0;x<3e3;x+=random(2,5)){scaleA=[.005,.01,.03,.0625,.125,.25,.5,.75,1,1.2];scaleB=[.005,.01,.03,.0625,.125,.25,.5,.75,1,1.2];bigscale=[3,4,5];together(random(-400,1150),random(-400,1300),random(twosc2))}}function G(){features.style="Solid";strokeornot=0;strokecolorhere=(255,255,255,255);weight=0;fillyesorno=1;strokeornotB=0;if(random(0,100)<25){scaleB=[.03]}else{if(random(0,100)<33){scaleB=[.0625]}else{if(random(0,100)<67){scaleB=[.03,.0625]}else{scaleB=[.0625,.125]}}}if(random(0,100)<18){scaleA=[.03,.03,.0625,.0625,.125,.125,.25,.5,.75,1,1,25]}else{if(random(0,100)<60){scaleA=[.125,.125,.25,.5,.75,1,1,25]}else{scaleA=[.03,.03,.0625,.0625,.125,.125,.25]}}for(x=0;x<18e3;x+=random(2,5)){bigscale=[3,4,5,6];together(random(-400,1150),random(-400,1300),random(twosc2))}}function H(){features.style="Solid";strokeornot=0;strokecolorhere=(255,255,255,255);weight=0;fillyesorno=1;strokeornotB=0;if(random(0,100)<25){scaleA=[.03]}else{if(random(0,100)<33){scaleA=[.0625]}else{if(random(0,100)<67){scaleA=[.03,.0625]}else{scaleA=[.0625,.125]}}}if(random(0,100)<18){scaleB=[.03,.03,.0625,.0625,.125,.125,.25,.5,.75,1,1,25]}else{if(random(0,100)<60){scaleB=[.125,.125,.25,.5,.75,1,1,25]}else{scaleB=[.03,.03,.0625,.0625,.125,.125,.25]}}for(x=0;x<15e3;x+=random(2,5)){bigscale=[3,4,5,6];together(random(-400,1150),random(-400,1300),random(twosc2))}}comps=[A,B,B,C,C,C,C,D,D,D,D,E,E,E,F,F,F,G,H];random(comps)();function together(x,y,twoshere){bigscalex=random(bigscale);bigscaley=random(bigscale);scalex=random(scaleA);scaley=random(scaleB);fill(maincolorhereA);rect(x,y,scalex*bigscalex*125,scaley*bigscaley*150);fill(twoshere);TwoA(x,y,scalex*bigscalex,scaley*bigscaley,strokeornot,weight,strokecolorhere,fillyesorno,random(ArchRects))}pop();push();if(strokeornot==0){if(random(0,100)<33){BIGBorderOptions(bordersize,maincolorhereA,two1here,100,100,100,100)}else{BIGBorderOptions(bordersize,two1here,two1here,100,100,100,100)}}else{if(random(0,100)<40){BIGBorderOptions(bordersize,maincolorhereA,two1here,100,100,100,100)}else{BIGBorderOptions(bordersize,strokecolor,strokecolor,100,100,100,100)}}pop();if(random(0,100)<78){CheckFieldSized(0,0,width,height,.625,maincolorhereA,maincolorhereA,40)}if(bordersize>=50&&random(0,100)<40){features.mark="Signed";if(random(0,100)<50){CornerStamp(two1here,random(bkgd1))}else{CornerStamp(random(bkgd1),two1here)}}else{features.mark="Unsigned"}}function ExtremeWarpControl(){single=125;singley=150;TwoSizingConstraints();checksizeA=[1.25,2.5,2.5,2.5,2.5,2.5,2.5];push();if(random(0,100)<40){fillprob=0}else{fillprob=100}if(random(0,100)<67){features.style="Sketched";strokeornot=1;if(random(0,100)<25){strokeornotB=1;weightBA=[.25,.25,.5,.5,.5,.5,.75,.75,.75,1,1,2.5,5];weightB=random(weightBA)}else{strokeornotB=0;weightBA=[0];weightB=random(weightBA)}weightA=[5,5,5,5,5,10,10,15];weight=random(weightA);strokecolorhere=strokecolor;fillyesorno=fillprob;layerborderyesnoA=[0,0,0,1];layerborderyesno=random(layerborderyesnoA);layerborderweightA=[.25,.5,.5,.5,.75,.75];if(layerborderyesno==1){layerborder=random(layerborderweightA)}else{layerborder=0}}else{features.style="Solid";strokeornot=0;strokecolorhere=(255,255,255,255);weight=0;fillyesorno=1;strokeornotB=0;weightB=0}bordersizeA=[20,30,40,50,60,70,80,100,110,120,130,140];bordersize=random(bordersizeA);features.perimeter="Open";let k=0;marginfullornotA=[0,1];marginfullornot=random(marginfullornotA);bkgdhere=random(bkgd1);if(marginfullornot==0){CheckFieldSized(0,0,750,900,random(checksizeA),bkgdhere,random(bkgd2),100);if(random(0,100)<78){MarginWithoutBorder(bordersize);features.perimeter="Contained";k=1}CheckFieldSized(0,0,750,900,random(checksizeA),bkgdhere,random(bkgd2),100)}if(marginfullornot==1){CheckFieldSized(0,0,750,900,random(checksizeA),bkgdhere,random(bkgd2),100);if(random(0,100)<75){MarginWithoutBorder(bordersize);features.perimeter="Contained";k=1}}twohere=random(twosc);fill(twohere);horizA=[three,threeR,five,fiveR,eight,eightR,Symm,SymmR,Symm2];if(random(0,100)<40){horizA=[random(horizA)]}if(random(0,100)<11){random(horizA)(0,1);random(horizA)(150,2);random(horizA)(450,3)}else{if(random(0,100)<14){random(horizA)(0,3);random(horizA)(450,2);random(horizA)(750,1)}else{if(random(0,100)<20){random(horizA)(0,.25);random(horizA)(37.5,.5);random(horizA)(112.5,1);random(horizA)(260,1.75);random(horizA)(522.5,2.5)}else{if(random(0,100)<25){random(horizA)(0,2.5);random(horizA)(375,1.75);random(horizA)(637.5,1);random(horizA)(787.
class Random{constructor(){this.useA=false;let sfc32=function(uint128Hex){let a=parseInt(uint128Hex.substr(0,8),16);let b=parseInt(uint128Hex.substr(8,8),16);let c=parseInt(uint128Hex.substr(16,8),16);let d=parseInt(uint128Hex.substr(24,8),16);return function(){a|=0;b|=0;c|=0;d|=0;let t=(a+b|0)+d|0;d=d+1|0;a=b^b>>>9;b=c+(c<<3)|0;c=c<<21|c>>>11;c=c+t|0;return(t>>>0)/4294967296}};this.prngA=new sfc32(tokenData.hash.substr(2,32));this.prngB=new sfc32(tokenData.hash.substr(34,32));for(let i=0;i<1e6;i+=2){this.prngA();this.prngB()}}random_dec(){this.useA=!this.useA;return this.useA?this.prngA():this.prngB()}random_num(a,b){return a+(b-a)*this.random_dec()}random_int(a,b){return Math.floor(this.random_num(a,b+1))}random_bool(p){return this.random_dec()<p}random_choice(list){return list[this.random_int(0,list.length-1)]}}let R=new Random;p5.prototype.random=function(min,max){const rand=R.random_dec();if(typeof min==="undefined"){return rand}else if(typeof max==="undefined"){if(min instanceof Array){return min[Math.floor(rand*min.length)]}else{return rand*min}}else{if(min>max){var tmp=min;min=max;max=tmp}return rand*(max-min)+min}};let features={};let savesremaining=0;function setup(){pixelDensity(16);createCanvas(750,900);const canvas=document.getElementsByTagName("canvas")[0];const aspectRatio=750/900;let height=Math.floor(window.innerHeight);let width=Math.floor(height*aspectRatio);if(width>window.innerWidth){width=Math.floor(window.innerWidth);height=Math.floor(width/aspectRatio)}canvas.style.width=`${width}px`;canvas.style.height=`${height}px`}function draw(){PALETTES();background(random(bkgd1));noStroke();if(random(0,64)<22){Grids();features.structure="Ordered"}else{if(random(0,38)<11){StructuredUnstructured();features.structure="Organic"}else{if(random(0,27)<8){LooseIncremenetalSizing();features.structure="Organic"}else{if(random(0,19)<6){GiantGrid(0,0,1,1);features.structure="Ordered"}else{if(random(0,13)<2){Giant();features.structure="Ordered"}else{if(random(0,11)<6){ExtremeWarpControl();features.structure="Ordered"}else{Floaters();features.structure="Organic"}}}}}}download()}function PALETTES(){black=0;white1=[254,254,254];white2=[247,247,247];white3=[241,241,241];lightGray1=[225,225,225];lightGray2=[216,216,216];lightGray3=[207,207,207];medGray1=[180,180,177];medGray2=[165,165,162];medGray3=[153,153,149];darkGray1=[20,20,20];darkGray2=[35,35,35];darkGray3=[45,45,45];darkGray4=[50,50,50];lightCream1=[203,202,182];lightCream2=[210,209,190];lightCream3=[217,216,201];darkCream1=[184,183,170];darkCream2=[176,175,161];darkCream3=[170,169,153];paleBlue=[200,210,220];brightBlue=[35,45,125];brightBlue2=[4,21,105];darkBlue=[30,33,79];brightRed=[181,36,48];brightRed2=[159,21,43];marroon=[138,13,28];marroon2=[105,5,20];hotRed=[239,65,73];hotRed2=[237,32,41];features.color="Neutral";function A(){bkgd1=[black];bkgd2=[darkGray1,darkGray2];twosALL=[white1,white2,white3,lightGray2];ArchRects=[black,darkGray1,darkGray2,darkGray3,black,darkGray1,darkGray2,lightGray2];strokecolorA=[white1,white2,lightGray2,lightGray3,lightCream1,lightCream3,darkCream1];strokecolor=random(strokecolorA);colorlog=A}function B(){bkgd1=[darkCream2,darkCream1,medGray1,darkCream3,medGray3];bkgd2=[lightCream1,lightCream3];twosALL=[white2,darkGray2];ArchRects=[lightCream1,lightCream2,white1,white3];strokecolorA=[white1,darkGray2];strokecolor=random(strokecolorA);colorlog=B}function D(){bkgd1=[lightGray1];bkgd2=[darkCream1,lightCream1,paleBlue];twosALL=[white1];ArchRects=[white3,white2,darkCream1,lightCream1,medGray1,paleBlue];strokecolorA=[white1,darkGray2];strokecolor=random(strokecolorA);colorlog=D}function F(){bkgd1=[lightGray2,medGray1];bkgd2=[medGray1,medGray2];twosALL=[black,white3];ArchRects=[lightGray1,lightGray3,lightGray2,medGray1,white1,white2];strokecolorA=[darkGray1,darkGray2,darkGray3,darkGray4,black];strokecolor=random(strokecolorA);colorlog=F}function G(){bkgd1=[lightGray2,lightGray3];bkgd2=[medGray3,medGray1];twosALL=[black,white2,darkGray4,darkGray2];ArchRects=[white1,lightGray1,lightGray3,medGray3,medGray3];strokecolorA=[darkGray1,darkGray2,darkGray3,darkGray4,black];strokecolor=random(strokecolorA);colorlog=G}function H(){bkgd1=[darkGray1,darkGray2];bkgd2=[lightCream1,lightCream3];twosALL=[white2,white2,lightCream3];ArchRects=[lightGray3,lightCream1,lightCream2,medGray1,medGray2,medGray3];strokecolorA=[white2];strokecolor=random(strokecolorA);colorlog=H}function J(){bkgd1=[darkGray1,darkGray2];bkgd2=[white1,white3,white1,white3,paleBlue,medGray2];twosALL=[white2,white2,paleBlue,lightGray2];ArchRects=[lightGray1,medGray2,lightGray3,medGray1,white1,paleBlue];strokecolorA=[white1];strokecolor=random(strokecolorA);colorlog=J}function K(){bkgd1=[white2,white3];bkgd2=[lightGray3];twosALL=[darkCream3,darkGray2];ArchRects=[white1,lightGray2,lightGray3,lightGray1];strokecolorA=[darkGray2,darkCream3,darkGray4];strokecolor=random(strokecolorA);colorlog=K}function L(){bkgd1=[black,darkGray1,darkGray2,darkGray3];bkgd2=[white2,white3,lightGray1,lightGray2,lightGray3];twosALL=[white1,white2,white3,lightGray1,lightGray2];ArchRects=[lightGray1,lightGray2];strokecolorA=[white1];strokecolor=random(strokecolorA);colorlog=L}function N(){bkgd1=[lightGray1,lightGray2,lightGray3,medGray1];bkgd2=[medGray2,medGray3];twosALL=[white1,white3];ArchRects=[lightGray1,lightGray2,lightGray3,white2];strokecolorA=[black,darkGray2,white1];strokecolor=random(strokecolorA);colorlog=N}function P(){bkgd1=[paleBlue];bkgd2=[medGray3,darkCream1,darkCream3,lightCream1,lightCream3];twosALL=[darkGray3,darkGray3,white1,white1];ArchRects=[lightGray1,lightGray2,lightGray3];strokecolorA=[white1,darkGray1];strokecolor=random(strokecolorA);colorlog=P}function R(){bkgd1=[lightCream1,lightCream3,darkCream3,darkCream2,darkCream1];bkgd2=[lightGray3,lightGray1,white3,white2,medGray3];twosALL=[white1];ArchRects=[medGray2,medGray1,lightCream1,lightCream2,darkCream1,darkCream2,darkCream3];strokecolorA=[white1,darkGray4,darkGray2,black];strokecolor=random(strokecolorA);colorlog=R}function SS(){bkgd1=[darkCream1,darkCream2,darkCream3];bkgd2=[lightCream1,lightCream2,lightCream3];twosALL=[white3];ArchRects=[darkCream1,darkCream2,darkCream3,lightCream1,lightCream2,lightCream3];strokecolorA=[darkGray2,darkGray4,black,white1,white2];strokecolor=random(strokecolorA);colorlog=SS}function SSS(){bkgd1=[darkGray1];bkgd2=[darkGray4];twosALL=[lightCream1,lightCream2,lightCream3];ArchRects=[darkGray1,darkGray2,darkGray3,darkGray4];strokecolorA=[lightCream1,lightCream2,lightCream3,darkCream1];strokecolor=random(strokecolorA);colorlog=SSS}function T(){features.color="Tinted";bkgd1=[darkCream1,lightCream3];bkgd2=[darkCream3,lightCream1];twosALL=[brightBlue,darkBlue];ArchRects=[lightGray1,darkCream1,lightCream1,darkCream1,lightCream1];strokecolorA=[brightBlue,darkBlue];strokecolor=random(strokecolorA);colorlog=T}function TT(){features.color="Tinted";bkgd1=[lightCream3,lightCream1,white3,white3];bkgd2=[darkCream1,darkCream3,lightGray3];twosALL=[hotRed,hotRed,brightRed];ArchRects=[white2,hotRed,lightGray1];strokecolorA=[hotRed,hotRed,brightRed,marroon,marroon];strokecolor=random(strokecolorA);colorlog=TT}function U(){features.color="Tinted";bkgd1=[hotRed];bkgd2=[white1];twosALL=[darkGray2,white1,white1,white1,white1,white1,marroon];ArchRects=[white3,white3,hotRed];strokecolorA=[darkGray2,marroon,white1];strokecolor=random(strokecolorA);colorlog=U}function V(){features.color="Tinted";bkgd1=[marroon2];bkgd2=[brightRed2];twosALL=[hotRed];ArchRects=[marroon];strokecolorA=[hotRed];strokecolor=random(strokecolorA);colorlog=V}function X(){features.color="Tinted";bkgd1=[lightCream1,lightCream3,white1];bkgd2=[darkCream1,darkCream3];twosALL=[brightRed,brightBlue];ArchRects=[lightCream1,darkCream1,lightCream3,lightCream2];strokecolorA=[brightBlue,brightRed];strokecolor=random(strokecolorA);colorlog=X}function CC(){features.color="Tinted";bkgd1=[darkBlue];bkgd2=[brightBlue,brightBlue,brightBlue2];twosALL=[lightCream1,lightCream2,darkCream1,white2];ArchRects=[darkBlue,brightBlue,brightBlue2];strokecolorA=[lightCream1,lightCream2,darkCream1,white2];strokecolor=random(strokecolorA);colorlog=CC}function DD(){features.color="Tinted";bkgd1=[white1,lightGray1,lightGray2];bkgd2=[medGray3,medGray1,lightGray3];twosALL=[brightBlue,darkBlue];ArchRects=[white1,lightGray1,lightGray2];strokecolorA=[brightBlue,darkBlue];strokecolor=random(strokecolorA);colorlog=DD}palettes=[A,A,A,A,B,B,B,B,D,F,F,G,G,H,H,H,J,K,K,K,K,L,L,L,L,L,N,N,P,P,R,R,R,SS,SSS,SSS,SSS,SSS,SSS,SSS,SSS,T,TT,U,U,U,V,X,X,CC,DD,DD];random(palettes)();ColorRules();function ColorRules(){if(random(0,100)<0){ArchRects=[random(ArchRects)]}if(random(0,100)<77){if(random(0,100)<30){twosc=[random(twosALL)];twosc2=twosc}else{twosc=[random(twosALL)];twosc2=[random(twosALL)]}}else{if(random(0,23)<14){if(random(0,100)<80){twosc=[random(twosALL),random(twosALL)];twosc2=twosc}else{twosc=[random(twosALL),random(twosALL)];twosc2=[random(twosALL)]}}else{twosc=[random(twosALL),random(twosALL),random(twosALL),random(twosALL),random(twosALL),random(twosALL),random(twosALL)];twosc2=twosc}}}}function Giant(){push();if(random(0,100)<50){backgroundhere1=random(bkgd1);backgroundhere2=random(bkgd2);bkgdcolor1=backgroundhere1;bkgdcolor2=backgroundhere2}else{backgroundhere1=random(bkgd1);backgroundhere2=random(bkgd2);bkgdcolor1=random(bkgd1);bkgdcolor2=random(bkgd2)}if(random(0,100)<80){features.style="Sketched";strokeornot=1;weightA=[.5,2,5,7,9,12];weight=random(weightA);strokecolorhere=strokecolor;if(random(0,100)<18){fillyesorno=0}else{fillyesorno=1}}else{features.style="Solid";strokeornot=0;strokecolorhere=(255,255,255,255);weight=0;fillyesorno=1;weightA=[0]}checksizeA=[2.5,5];CheckFieldSized(0,0,width,height,random(checksizeA),backgroundhere1,backgroundhere2,100);if(random(0,100)<17){features.perimeter="Open";bordersize=0}else{features.perimeter="Contained";bordersizeA=[40,50,60,80,80,80,90,100,100,100,110,120,120,130,130,150,160,170,170,180,190,190,190,200,200,220,230];bordersize=random(bordersizeA);BIGBorderOptionsSCALE(bordersize)}push();if(random(0,100)<15){addx=random(-200,200);addy=0}else{if(random(0,85)<40){addx=0;addy=random(-280,220)}else{if(random(0,35)<10){addx=random(-135,135);addy=random(-135,100)}else{addx=0;addy=0}}}numA=[1.2,1.5,1.7,1.9,2,2.2,2.4,2.6,2.8,3,3.2,3.4,3.5,3.8,4,4.2,4.4,4.6,4.8,5,5.2];num=random(numA);translate(-width*(num-1)/2+addx,-height*(num-1)/1.6+addy);scale(num,num);fill(random(twosc));push();TwoAGiant(0,0,6,6,strokeornot,random(weightA),strokecolorhere,fillyesorno,random(ArchRects));pop();pop();pop();if(random(0,100)<85){checksizeA2=[.625,1.25];CheckFieldSized(0,0,width,height,random(checksizeA2),backgroundhere1,backgroundhere2,random(5,40))}BIGBorderOptions(bordersize,bkgdcolor1,bkgdcolor2,85,140,70,97);if(random(0,100)<100){features.mark="Signed";if(random(0,100)<50){CornerStamp(random(twosc),random(bkgd1))}else{CornerStamp(random(bkgd1),random(twosc))}}else{features.mark="Unsigned"}}function GiantGrid(x,y,w,h){push();if(random(0,100)<50){backgroundhere1=random(bkgd1);backgroundhere2=random(bkgd2);bkgdcolor1=backgroundhere1;bkgdcolor2=backgroundhere2}else{backgroundhere1=random(bkgd1);backgroundhere2=random(bkgd2);bkgdcolor1=random(bkgd1);bkgdcolor2=random(bkgd2)}checksizeA=[1.25,1.25,1.25,2.5,2.5,5];CheckFieldSized(0,0,750,900,random(checksizeA),backgroundhere1,backgroundhere2,random(90,110));if(random(0,100)<15){weightB=[.75,1]}else{weightB=[0]}if(random(0,100)<59){features.style="Sketched";strokeornot=1;weightconstornotA=[0,1];weightconstornot=random(weightconstornotA);if(weightconstornot==0){weightA=[2,2,3,3,4,6,7,9,10,12]}else{weightAh=[2,2,2,3,3,4,4,4,6,7,9,10,12];weightA=[random(weightAh)]}strokecolorhere=strokecolor;if(random(0,100)<36){fillyesorno=0}else{fillyesorno=1}}else{features.style="Solid";strokeornot=0;strokecolorhere=(255,255,255,255);weightA=[0];fillyesorno=1}let marginA=[0,0,0,0,0,0,0,0,.3];let margin=random(marginA);widthA=[750];heightA=[900];if(random(0,100)<36){features.perimeter="Open";gridexpand=1;bordersize=0;BIGMarginOptions();BIGBorderOptionsSCALE(bordersize)}else{features.perimeter="Contained";gridexpand=2;bordersizeA=[40,50,60,70,80,80,80,90,100,100,100,110,120,120,130,130,150,160,170,170,180,190,190,190,200,200,210];bordersize=random(bordersizeA);BIGBorderOptionsSCALE(bordersize)}translateA=[0,80,100,160,160,220,220,310,310,375,375,475,475,550,650,670];TA=random(translateA);TA2=random(translateA);add=random(-5,5);if(random(0,100)<45){translate(TA+add,0);shiftxA=[0];shiftyA=[0,0,0,0,0,0,40,80,120,160,200]}else{if(random(0,55)<45){translate(0,TA+add);shiftxA=[0,0,0,0,0,40,80,120,160];shiftyA=[0]}else{translate(TA+add,TA2+add);shiftxA=[0,0,0,0,0,40,80,120,160,200];shiftyA=[0,0,0,0,0,40,80,120,160,200]}}for(y=-height;y<height+2;y+=height){heighthere=random(heightA);h=BIGheightToScale(margin);for(x=-width;x<width+2;x+=width){widthhere=random(widthA);w=BIGwidthToScale(margin);if(gridexpand==1&&random(0,100)<85){CheckFieldSized(x,y,x+width+gridexpand,y+height+gridexpand,1.25,backgroundhere1,backgroundhere2,random(85,100));RectAlign(x,y,x+width+gridexpand,y+height+gridexpand,strokeornot,random(weightB),strokecolorhere)}if(gridexpand==2&&random(0,100)<10){CheckFieldSized(x,y,x+width+gridexpand,y+height+gridexpand,1.25,backgroundhere1,backgroundhere2,random(85,100));RectAlign(x,y,x+width+gridexpand,y+height+gridexpand,strokeornot,random(weightB),strokecolorhere)}push();fill(random(twosc));margintoTranslate(margin);TwoA(x+random(shiftxA),y+random(shiftyA),w,h,strokeornot,random(weightA),strokecolorhere,fillyesorno,random(ArchRects));pop();if(gridexpand==1&&random(0,100)<100){CheckFieldSized(x,y,x+widthhere+2,y+heighthere+2,1.25,random(bkgd1),random(bkgd1),random(0,70));RectAlign(x,y,x+widthhere+2,y+heighthere+2,strokeornot,random(weightB),strokecolorhere)}if(gridexpand==2&&random(0,100)<100){CheckFieldSized(x,y,x+widthhere+2,y+heighthere+2,1.25,bkgdcolor1,bkgdcolor2,random(0,70));RectAlign(x,y,x+widthhere+2,y+heighthere+2,strokeornot,random(weightB),strokecolorhere)}}}pop();BIGBorderOptions(bordersize,bkgdcolor1,bkgdcolor2,85,140,70,97);if(random(0,100)<68){features.mark="Signed";if(random(0,100)<50){CornerStamp(random(twosc),random(bkgd1))}else{CornerStamp(random(bkgd1),random(twosc))}}else{features.mark="Unsigned"}}function LooseIncremenetalSizing(){push();weightA=[5,5,6,6,6,7,7,7,8,8,8,8,10,10,10,11,13,14,15];weightconstornotA=[0,0,0,0,0,1];weightconstornot=random(weightconstornotA);if(weightconstornot==0){weight=random(weightA)}if(random(0,100)<43){features.style="Sketched";strokeornot=1;if(weightconstornot==1){weight=random(weightA)}if(random(0,100)<100){fillyesorno=0}else{fillyesorno=1}layerborderyesnoA=[0,0,0,1];layerborderyesno=random(layerborderyesnoA);layerborderweightA=[.25,.5,.75,1,1.25];if(layerborderyesno==1){layerborder=random(layerborderweightA)}else{layerborderweightA=[0]}if(random(0,100)<20&&layerborderweightA==0&&fillyesorno==0){strokecolorhereA=strokecolor}else{strokecolorhereA=[random(strokecolorA)]}if(random(0,100)<88){features.perimeter="Open";bordersize=0}else{features.perimeter="Contained";bordersizeA=[50,60,60,70,80,80,80,90,90,100,110,120,130,150];bordersize=random(bordersizeA)}}else{features.style="Solid";strokeornot=0;strokecolorhereA=(255,255,255,255);weight=0;fillyesorno=1;layerborderyesno=0;if(random(0,100)<80){bordersize=0;features.perimeter="Open"}else{features.perimeter="Contained";bordersizeA=[60,60,80,80,80,90,90,100,110,120,130];bordersize=random(bordersizeA)}}BIGBorderOptionsSCALE(bordersize);colorhere=random(twosc);colorhere2=random(twosc);bkgd1here=random(bkgd1);bkgd2here=random(bkgd2);checksizeA=[.625,.625,1.25,2.5,2.5];checksizeB=[.3125,.625,.625,.625,1.25];colorsameornotA=[0,1];colorsameornot=random(colorsameornotA);function ColorSameOrNot(){if(colorsameornot==0){fill(colorhere)}else{if(random(0,100)<50){fill(colorhere)}else{fill(colorhere2)}}}fill(colorhere);rect(0,0,160,320);CheckFieldSized(0,0,750,900,random(checksizeA),bkgd1here,bkgd2here,95);let translatehere;let translateherey;if(random(0,100)<95){addup=0;adddown=0;addleft=0;addright=0;addamt=1e3;addamt2=0}else{frameamt=random(6,58);addup=frameamt;adddown=frameamt;addleft=frameamt;addright=frameamt;addamt=frameamt;addamt2=frameamt}if(random(0,100)<20){translatehere=[-300,-280,-240,-160,-120,-100,-80,-60,-40,-20,0,0,0,20,40,60,80,100,120,160,240,280,300];translateherey=[-280,-240,-160,-120,-100,-80,-60,-40,-20,0,0,0,20,40,60,80,100,120,160,240,280,300];overallTx=[0];overallTy=[0];addup=addamt2;adddown=addamt2;addleft=addamt2;addright=addamt2;layerborderyesno=0}else{if(random(0,80)<35){overallTx=[-160,-120-90,90,120,160];overallTy=[0];translatehere=[0];translateherey=[-240,-160,-120,-100,-80,-60,-40,-20,0,0,0,20,40,60,80,100,120,160,240];if(random(0,100)<66){addup=addamt;adddown=addamt}else{if(random(0,60)<25){addleft=addamt;addright=addamt}else{addup=addamt2;adddown=addamt2}}}else{if(random(0,45)<35){translatehere=[-240,-200,-160,-120,-100,-80,-60,-40,-20,0,0,0,20,40,60,80,100,120,160,200,240];translateherey=[0];if(random(0,100)<100){overallTx=[0];overallTy=[0];adddown=addamt;addup=addamt}else{overallTx=[0];overallTy=[0];if(random(0,100)<50){if(random(0,100)<85){addleft=addamt}if(random(0,100)<85){addright=addamt}}else{overallTx=[0];overallTy=[-280,-240,-160,-120,120,160,240,280];addup=addamt2;adddown=addamt2}}}else{overallTx=[0];overallTy=[0];if(random(0,100)<0){translatehere=[0];translateherey=[0];if(random(0,100)<20){if(random(0,100)<90){addup=addamt}if(random(0,100)<90){adddown=addamt}}else{if(random(0,40)<0){if(random(0,100)<88){addleft=addamt}if(random(0,100)<88){addright=addamt}}else{addup=addamt2;adddown=addamt2}}}else{translatehere=[0];translateherey=[0];if(random(0,100)<30){overallTx=[0,0,0,120,160,240];overallTy=[0,0,0,120,160,240,280];addleft=addamt;addup=addamt}else{overallTx=[0,0,0,-120,-160,-240];overallTy=[0,0,0,120,160,240,280];if(random(0,100)<80){addright=addamt;addup=addamt}else{overallTx=[0,0,0,-120,-160,-240];overallTy=[0,0,0,-120,-160,-240];addright=addamt;adddown=addamt}}}}}}if(random(0,100)<7){translate(random(overallTx),random(overallTy))}if(random(0,100)<32){lowend=65;highend=90}else{if(random(0,68)<18){lowend=40;highend=65}else{if(random(0,50)<35){lowend=80;highend=95}else{if(addup==0&&adddown==0&&addleft==0&&addright==0){lowend=20;highend=35}else{lowend=75;highend=95}}}}if(random(0,100)<60){newlayerprob=0}else{if(random(0,40)<34){newlayerprob=random(15,25)}else{newlayerprob=random(70,85)}}ellipseMode(CORNER);if(random(0,100)<60){let translatex000=random(translatehere);let translatey000=random(translateherey);translate(translatex000,translatey000);ColorSameOrNot();if(layerborderyesno==1){push();noFill();Recta(-100,-20,7.52,6.26,1,layerborder/12,random(strokecolorhereA));pop()}TwoA(-100,-20,7.52,6.26,strokeornot,weight/6,random(strokecolorhereA),fillyesorno,random(ArchRects));translate(-translatex000,-translatey000)}if(random(0,100)<15){let translatex0000=random(translatehere);let translatey0000=random(translateherey);translate(translatex0000,translatey0000);CheckFieldSized(-75-addleft,5-addup,810+addright,890+adddown,random(checksizeA),bkgd1here,bkgd2here,random(lowend,highend));ColorSameOrNot();if(layerborderyesno==1){push();noFill();Recta(-75,5,7.12,5.9,1,layerborder/11.75,random(strokecolorhereA));pop()}TwoA(-75,5,7.12,5.9,strokeornot,weight/6,random(strokecolorhereA),fillyesorno,random(ArchRects));translate(-translatex0000,-translatey0000)}if(random(0,100)<50){let translatex00=random(translatehere);let translatey00=random(translateherey);translate(translatex00,translatey00);CheckFieldSized(-50-addleft,30-addup,784+addright,870+adddown,random(checksizeA),bkgd1here,bkgd2here,random(lowend,highend));ColorSameOrNot();if(layerborderyesno==1){push();noFill();Recta(-50,30,6.72,5.6,1,layerborder/11.5,random(strokecolorhereA));pop()}TwoA(-50,30,6.72,5.6,strokeornot,weight/6,random(strokecolorhereA),fillyesorno,random(ArchRects));translate(-translatex00,-translatey00)}if(random(0,100)<15){let translatex0r0=random(translatehere);let translatey0r0=random(translateherey);translate(translatex0r0,translatey0r0);CheckFieldSized(-25-addleft,55-addup,761+addright,845+adddown,random(checksizeA),bkgd1here,bkgd2here,random(lowend,highend));ColorSameOrNot();if(layerborderyesno==1){push();noFill();Recta(-25,55,6.32,5.265,1,layerborder/11,random(strokecolorhereA));pop()}TwoA(-25,55,6.32,5.265,strokeornot,weight/5.75,random(strokecolorhereA),fillyesorno,random(ArchRects));translate(-translatex0r0,-translatey0r0)}if(random(0,100)<77){let translatex0=random(translatehere);let translatey0=random(translateherey);translate(translatex0,translatey0);CheckFieldSized(0-addleft,80-addup,734+addright,820+adddown,random(checksizeA),bkgd1here,bkgd2here,random(lowend,highend));ColorSameOrNot();if(layerborderyesno==1){push();noFill();Recta(0,80,5.92,4.93,1,layerborder/10.5,random(strokecolorhereA));pop()}TwoA(0,80,5.92,4.93,strokeornot,weight/5.5,random(strokecolorhereA),fillyesorno,random(ArchRects));translate(-translatex0,-translatey0)}if(random(0,100)<newlayerprob){let translatex0n=random(translatehere);let translatey0n=random(translateherey);translate(translatex0n,translatey0n);CheckFieldSized(25-addleft,105-addup,760+addright,795+adddown,random(checksizeA),bkgd1here,bkgd2here,random(lowend,highend));ColorSameOrNot();if(layerborderyesno==1){push();noFill();Recta(25,105,5.52,4.6,1,layerborder/10,random(strokecolorhereA));pop()}TwoA(25,105,5.52,4.6,strokeornot,weight/5.25,random(strokecolorhereA),fillyesorno,random(ArchRects));translate(-translatex0n,-translatey0n)}let translatex1=random(translatehere);let translatey1=random(translateherey);translate(translatex1,translatey1);CheckFieldSized(50-addleft,130-addup,685+addright,770+adddown,random(checksizeA),bkgd1here,bkgd2here,random(lowend,highend));ColorSameOrNot();if(layerborderyesno==1){push();noFill();Recta(50,130,5.12,4.26,1,layerborder/9.5,random(strokecolorhereA));pop()}TwoA(50,130,5.12,4.26,strokeornot,weight/5,random(strokecolorhereA),fillyesorno,random(ArchRects));translate(-translatex1,-translatey1);if(random(0,100)<newlayerprob){let translatexn1=random(translatehere);let translateyn1=random(translateherey);translate(translatexn1,translateyn1);CheckFieldSized(75-addleft,155-addup,660+addright,745+adddown,random(checksizeA),bkgd1here,bkgd2here,random(lowend,highend));ColorSameOrNot();if(layerborderyesno==1){push();noFill();Recta(75,155,4.72,3.93,1,layerborder/9,random(strokecolorhereA));pop()}TwoA(75,155,4.72,3.93,strokeornot,weight/4.5,random(strokecolorhereA),fillyesorno,random(ArchRects));translate(-translatexn1,-translateyn1)}if(random(0,100)<80){let translatex2=random(translatehere);let translatey2=random(translateherey);translate(translatex2,translatey2);CheckFieldSized(100-addleft,180-addup,635+addright,720+adddown,random(checksizeA),bkgd1here,bkgd2here,random(lowend,highend));ColorSameOrNot();if(layerborderyesno==1){push();noFill();Recta(100,180,4.32,3.6,1,layerborder/8.5,random(strokecolorhereA));pop()}TwoA(100,180,4.32,3.6,strokeornot,weight/4,random(strokecolorhereA),fillyesorno,random(ArchRects));translate(-translatex2,-translatey2)}if(random(0,100)<newlayerprob){let translatex2e=random(translatehere);let translatey2e=random(translateherey);translate(translatex2e,translatey2e);CheckFieldSized(125-addleft,205-addup,611+addright,695+adddown,random(checksizeA),bkgd1here,bkgd2here,random(lowend,highend));ColorSameOrNot();if(layerborderyesno==1){push();noFill();Recta(125,205,3.92,3.265,1,layerborder/8,random(strokecolorhereA));pop()}TwoA(125,205,3.92,3.265,strokeornot,weight/4,random(strokecolorhereA),fillyesorno,random(ArchRects));translate(-translatex2e,-translatey2e)}if(random(0,100)<80){let translatex3=random(translatehere);let translatey3=random(translateherey);translate(translatex3,translatey3);CheckFieldSized(150-addleft,230-addup,587+addright,670+adddown,random(checksizeA),bkgd1here,bkgd2here,random(lowe
function CP143(){lcA1=[O8,O8,Y9];lcA2=[Y7,YG3,E1];ccAA=[[YG3,O8,SB3]];p=1}function CP114(){lcA1=[O7,Y3,Gr6,B9,G18,Y8];lcA2=[O6,O8,Gr5,Gr7,B10,Y4];ccAA=[[G18,Y3,Gr6]];p=0}function CP134(){lcA1=[G17,Gr6];lcA2=[R4,R5,Y3,Y4];ccAA=[[R4,R5,Gr6,Y3,Y4]];p=0}function CP146(){lcA1=[Y7,YG7,Gr7,BG7,GB7,R5];lcA2=[Y5,YG5,Gr5,BG5,GB5,R4];ccAA=[[Y5,YG5,Gr5,BG5,BG5,R4,Y7,YG7,Gr7,BG7,BG7,R5]];p=1}function CP6(){lcA1=[P2,R1,R3];lcA2=[YG8,YG10,P1,P3,R4];ccAA=[[YG7,YG8,YG9,YG10,P1,P2,P3,R1,R2,R3,R4]];p=1}function CP138(){lcA1=[Y6,M1,B10];lcA2=[Y5];ccAA=[[Y6,M1,B10]];p=1}function CP4(){lcA1=[P7,BG9,Y2];lcA2=[P8,BG10,Y1];ccAA=[[P7,P8,BG9,BG10,Y1,Y2]];p=1}function CP106(){lcA1=[G17,G18];lcA2=[GB10,R1];ccAA=[[GB10,R1,R2]];p=1}function CP115(){lcA1=[Y3,Gr7];lcA2=[G17,O7];ccAA=[[G17,Y3]];p=0}function CP103(){lcA1=[G17,G18,Y3];lcA2=[GB10,BG9,Y1];ccAA=[[GB10,BG9,Y3,Y1]];p=1}function CP117(){lcA1=[C3,Y3,Y3,Y7];lcA2=[Y4,R7];ccAA=[[C3,Y3,Y3,B10]];p=0}function CP52(){lcA1=[O3,O4,O5];lcA2=[Y5,Y6,Y7];ccAA=[[B6,C2,C2,C13]];p=0}function CP83(){lcA1=[Y1,Y2,Y3];lcA2=[G13,G14,G16];ccAA=[[Y3,Y4,Y5,C14,[202,210,219],R4]];p=0}function CP57(){lcA1=[Y2,Y1,Y3,R1];lcA2=[GB9,GB10];ccAA=[[GB9,GB10,Y2,Y2,Y1]];p=0}function CP92(){lcA1=[G17];lcA2=[R1,Gr1,GB1,BG1,M8,Y1,YG1];ccAA=[[R1,Gr1,GB1,BG1,M8,Y1,YG1]];p=0}function CP15(){lcA1=[G10,G13];lcA2=[C1,C3,C5,C7,BG1,GB1,Gr1,YG2,BG2,Gr2];ccAA=[[C1,C3,C5,C7,BG1,GB1,Gr1,YG2,BG2,Gr2]];p=0}function CP7(){lcA1=[Y1,YG1,Gr1,BG1,BG1,R1];lcA2=[Y3,YG3,Gr3,BG3,BG3,R2];ccAA=[[Y1,YG1,Gr1,BG1,BG1,R1,Y3,YG3,Gr3,BG3,BG3,R2]];p=0}function CP120(){lcA1=[YG1,YG2,YG3];lcA2=[P1,P2];ccAA=[[YG1,YG2,YG3,P1,P2]];p=0}function CP110(){lcA1=[Gr1,Gr2,Gr3];lcA2=[P1,P2];ccAA=[[Gr1,Gr2,Gr3,P1,P2]];p=0}function CP35(){lcA1=[Gr2,Gr3,Gr4,Gr5];lcA2=[YG3,YG4,YG5,YG6,YG7];ccAA=[[O2,O3,B9,O6]];p=1}function CP89(){lcA1=[Gr4,Gr5,Gr6,Gr7,Y4,Y5,Y6,Y7];lcA2=[YG4,YG5,YG6];ccAA=[[Gr4,Gr5,Gr6,Gr7,Y4,Y5,Y6,Y7,YG4,YG5,YG6]];p=0}function CP8(){lcA1=[Y3,YG3,Gr3,BG3,GB3];lcA2=[Y5,YG5,Gr5,BG5,GB5];ccAA=[[Y5,YG5,Y3,YG3]];p=1}function CP38(){lcA1=[Y6,Y7,Y8,Y9];lcA2=[C2,C3,C3,C4];ccAA=[[GB10,GB10,GB10,E2,GB9,Y7,C3]];p=1}function CP64(){lcA1=[Y1,Y2,Y3,Y4,Y5,Y6];lcA2=[YG5,YG6,YG7,YG8,YG9,YG10];ccAA=[[Y1,Y2,Y3,Y4,Y5,Y6,YG5,YG6,YG7,YG8,YG9,YG10]];p=0}function CP104(){lcA1=[G17,G18,YG8,YG9];lcA2=[GB10,YG10];ccAA=[[GB10,YG8,YG9,YG10]];p=1}function CP105(){lcA1=[G17,G18];lcA2=[Gr4,YG10];ccAA=[[Gr3,Gr4,YG10]];p=1}function CP65(){lcA1=[YG7];lcA2=[SB4,SB5,YG7];ccAA=[[M7,SB5,M7,SB5,G2]];p=0}function CP36(){lcA1=[C9,C10,C11];lcA2=[Gr2,Gr3,Gr4,B3];ccAA=[[Gr7,Gr8,Gr9,C2,C2]];p=1}function CP126(){lcA1=[G17,G16];lcA2=[Gr3,Gr4,Gr5,Gr6,Gr7,Gr8];ccAA=[[Gr3,Gr4,Gr5,Gr6,Gr7,Gr8]];p=1}function CP88(){lcA1=[[62,139,85],[73,172,100]];lcA2=[[53,122,70]];ccAA=[[[73,172,100],[53,122,70],[175,203,178],[24,63,34],[24,63,34]]];p=0}function CP96(){lcA1=[M7];lcA2=[G17,C14,G14];ccAA=[[M7]];p=0}function CP30(){lcA1=[Y1,Y2,Y3,Y4];lcA2=[Y7,Y8,Y9,Y10,R1,R1];ccAA=[[Y1,Y2,Y5,Y6,Y8,R1,R1]];p=0}function CP100(){lcA1=[Y4,Y4,Y5,Y6];lcA2=[G17,C14,G14];ccAA=[[Y4,Y4,Y5,Y6]];p=0}function CP59(){lcA1=[G18,G17];lcA2=[G15,G14];ccAA=[[Y3,Y2,Y4,Y5,Y6]];p=0}function CP82(){lcA1=[[202,210,219],C1,G2,Y2];lcA2=[G4,C4,G14];ccAA=[[[202,210,219],[202,210,219],Y8,Y8,Y8,G2,G13]];p=0}function CP60(){lcA1=[O1,O2,O3,O4];lcA2=[Y1,R1,BG1,SB1,M8];ccAA=[[Y1,BG1,BG1,M8,C1,M8,SB1,O1]];p=0}function CP144(){lcA1=[O3,O4];lcA2=[E1,E2,C14];ccAA=[[E1,E2,O3,O4]];p=1}function CP77(){lcA1=[O5,O6,O7,O8];lcA2=[R4,R5,R6];ccAA=[[O5,O6,O7,O8,R4,R5,R6,R4,O2,O4]];p=0}function CP11(){lcA1=[O1,O2,O3,O4,O5];lcA2=[O6,O7,O8,O9,O10];ccAA=[[O1,O2,O3,O4,O5,O6,O7,O8,O9,O10]];p=0}function CP22(){lcA1=[BG10,BG9];lcA2=[R9,R10];ccAA=[[R4,R4,R4,BG10]];p=1}function CP62(){lcA1=[GB10,[13,45,86],GB10,[8,38,74],O8];lcA2=[[5,37,69],O10];ccAA=[[GB10,[8,38,74],O10]];p=0}function CP73(){lcA1=[[53,119,94],[220,80,80]];lcA2=[[16,37,29],[35,13,15],[30,35,78]];ccAA=[[R4,R4,R4,G18]];p=0}function CP121(){lcA1=[G17,G16];lcA2=[P10,P8,Gr10,Gr9,R4];ccAA=[[P10,P8,Gr10,Gr9,R4]];p=0}function CP29(){lcA1=[P10];lcA2=[P9,R5,R6,R9];ccAA=[[O8,O7,P10,P9,P9,R5]];p=0}function CP50(){lcA1=[R4,R5,R6];lcA2=[G17,G18];ccAA=[[R4,R4,R5,R6,G18]];p=1}function CP1(){lcA1=[R10,R8];lcA2=[R4,R4,R5,R5,R6];ccAA=[[R10,R4,R4,R4,R5,R5,R6,R7]];p=0}function CP81(){lcA1=[R4,R5,R6];lcA2=[Y3,Y4,Y5];ccAA=[[R4,R5,R6,Y3,Y4,Y5]];p=0}function CP32(){lcA1=[R7,R8];lcA2=[Y2,Y3];ccAA=[[G16,G16,G16,G16,R7,R8,Y2,Y3]];p=1}function CP152(){lcA1=[[195,195,180],[95,24,39],[120,42,46],YG2,YG3,R4,R6];lcA2=[[114,122,113]];ccAA=[[[195,195,180],[95,24,39],[120,42,46],YG2,YG3,R4,R6,[114,122,113]]];p=0}function CP116(){lcA1=[C3,R8];lcA2=[G17,R5];ccAA=[[R8,R4,R4]];p=0}function CP112(){lcA1=[C13,C14,R4];lcA2=[E1,E2,R5];ccAA=[[E1,E2,R4,R5]];p=0}function CP113(){lcA1=[R4,R5,R6,O7];lcA2=[E1,E2];ccAA=[[E1,E2,R6,R4,R5,O7]];p=0}function CP147(){lcA1=[G15,G16];lcA2=[G2,G3,G4,G8,B1,C3,C5,C6];ccAA=[[G2,R4]];p=0}function CP75(){lcA1=[B10];lcA2=[Y3,Y3,Y3,Y3,Y5];ccAA=[[R5]];p=0}function CP19(){lcA1=[C2,C3,C4];lcA2=[C7,C8,C9];ccAA=[[R4,R4,R4,R5,R6],[R4],[C3,C5,R4,R4]];p=0}function CP48(){lcA1=[C3,C2];lcA2=[R4,R4,R5,M3,C4];ccAA=[[C3,R4,C3,R4,C2,M3]];p=1}function CP9(){lcA1=[M1,M2,M3,M4];lcA2=[Y1,YG1,Gr1,BG1,GB1,R1,B1];ccAA=[[M1,M2,M3,M4,Y1,YG1,Gr1,BG1,GB1,R1,B1]];p=0}function CP37(){lcA1=[M6,M6,B6,R2,B8];lcA2=[M2,M3,R3];ccAA=[[R4,R4,R4,B3]];p=1}function CP41(){lcA1=[Y2];lcA2=[R4,R5,R6,R7,P2,P3,C13,C14];ccAA=[[R4,R6,P2,C14,Y2]];p=1}function CP108(){lcA1=[P7,P8,P9,P10];lcA2=[Y1,Y2,Y3,Y4];ccAA=[[P7,P8,P9,P10,Y1,Y2,Y3,Y4]];p=0}function CP20(){lcA1=[C2,C4];lcA2=[C7,C9,B10,B8];ccAA=[[C3,C5,R4,R4,B8,B10]];p=0}function CP28(){lcA1=[E2,E1,B1];lcA2=[B1,C2];ccAA=[[R4,R5,R6,B8,B8,B7,E2,E1,B1,R1]];p=0}function CP43(){lcA1=[C6,C8,C10,C7];lcA2=[C4,C7,R4,M5,BG4];ccAA=[[R4,M5]];p=0}function CP31(){lcA1=[BG6,Gr7];lcA2=[BG7,R4,B8];ccAA=[[R4]];p=1}function CP42(){lcA1=[G2,G3,C1,C2,Gr2,[126,197,184],[255,167,148]];lcA2=[G11,C8,[0,140,110]];ccAA=[[[126,197,184],[255,167,148],C2]];p=0}function CP68(){lcA1=[O6];lcA2=[M5,M9,M10];ccAA=[[O6,M5,M9,M10]];p=0}function CP128(){lcA1=[R4,Gr6,G16,G1];lcA2=[R3,Gr5];ccAA=[[R4,Gr6,G1,R3,Gr5]];p=1}function CP5(){lcA1=[R9,M10];lcA2=[R8,R10,M9];ccAA=[[M9,M10,R8]];p=1}function CP63(){lcA1=[BG7,M9,M10];lcA2=[R4,R7];ccAA=[[BG7,M9,M10,R4,R7]];p=0}function CP2(){lcA1=[GB8,GB9,GB10];lcA2=[Gr9,Gr8,Gr10,Gr10,BG8,BG9,BG10];ccAA=[[R4,R4,B8,M9,M10],[R4,M9],[R4,M9],[R4,M9],[R4,B8]];p=0}function CP17(){lcA1=[BG10,O9];lcA2=[BG8,BG9,O7,O8];ccAA=[[BG8,BG9,BG10,O7,O8,O9,BG10]];p=0}function CP71(){lcA1=[R4];lcA2=[Gr7,Gr8,Gr9,Gr10,GB10];ccAA=[[Gr7,Gr8,Gr9,Gr10,R4]];p=1}function CP45(){lcA1=[GB8,GB8,B8,Y6];lcA2=[GB10,GB10,B10,Y10];ccAA=[[GB8,GB8,B8,Y6,GB10,GB10,B10,Y10]];p=1}function CP56(){lcA1=[Y2,Y1,Y3];lcA2=[SB3,SB2,SB5,SB4];ccAA=[[SB5,SB2,SB2,C2,Y2,Y2,Y1]];p=0}function CP79(){lcA1=[[211,210,219],G2,C2];lcA2=[C3,B8];ccAA=[[[211,210,219],G2,C2,B8,B8]];p=0}function CP129(){lcA1=[SB1,B1,G3,C3,C6,G2];lcA2=[G1,SB2,B2,B3,C4];ccAA=[[SB1,B1,G3,C3,C6,G2,SB2]];p=0}function CP84(){lcA1=[[202,210,219],C1,G2,Y2,Y1,Gr1];lcA2=[G4,C4,G14];ccAA=[[Gr2,BG4,M8,Gr2,BG4,M8,Gr2,BG4,M8,Gr6]];p=0}function CP97(){lcA1=[M9,M10];lcA2=[G17,C14,G14];ccAA=[[M9,M10]];p=0}function CP55(){lcA1=[SB5,SB4];lcA2=[SB6,SB7];ccAA=[[SB4,SB6,C3,C5]];p=0}function CP16(){lcA1=[B1,B2,B3,B4,B5];lcA2=[B6,B7,B8,B9,B10];ccAA=[[B1,B2,B3,B4,B5,B6,B7,B8,B9,B10]];p=0}function CP46(){lcA1=[G17];lcA2=[GB10,GB10,B10,R10,Gr10,BG10];ccAA=[[GB8,GB8,B8,R8,GB10,GB10,B10,R10]];p=1}function CP102(){lcA1=[G17,G18];lcA2=[GB10,BG9];ccAA=[[GB10,BG9,GB10,BG9,G17]];p=1}function CP72(){lcA1=[G1,G2,G3];lcA2=[G4,G5,G6,G17,G15];ccAA=[[G1,G2,G3,G15,G17,G17]];p=0}function CP26(){lcA1=[C1,C2,C3,C3,C4];lcA2=[C7,C8,C9,C10,C11,C12];ccAA=[[C1,C2,C3,C3,C4,C8,C9,C10,C11,C12,C13,C14]];p=0}function CP133(){lcA1=[G18,G17];lcA2=[G1,G2];ccAA=[[G17,G2]];p=0}function CP151(){lcA1=[G15,G16];lcA2=[G2,G3,G4,G8,B1,C3,C5,C6];ccAA=[[C14]];p=0}function CP23(){lcA1=[G18,G16];lcA2=[G2,G7,C3,C5,C6];ccAA=[[G2,G2,G7,C3,C5,C6,G18,G16]];p=1}function CP154(){lcA1=[G1,E1,C1];lcA2=[G3,E2,C3];ccAA=[[G2,E2,C1]];p=0}function CP10(){lcA1=[GB1,GB2,GB3,GB4,GB5];lcA2=[GB6,GB7,GB8,GB9,GB10];ccAA=[[GB1,GB2,GB3,GB4,GB5,GB6,GB7,GB8,GB9,GB10]];p=0}function Palettes(){Colors();let palettes=[CP41,CP74,CP45,CP147,CP46,CP71,CP121,CP38,CP16,CP148,CP105,CP134,CP35,CP129,CP152,CP31,CP146,CP64,CP65,CP26,CP114,CP32,CP96,CP10,CP17,CP42,CP100,CP57,CP135,CP113,CP77,CP140,CP109,CP19,CP154,CP79,CP144,CP28,CP50,CP23,CP126,CP84,CP4,CP62,CP138,CP56,CP102,CP43,CP124,CP128,CP83,CP117,CP6,CP88,CP75,CP89,CP139,CP52,CP103,CP30,CP11,CP136,CP2,CP151,CP73,CP116,CP60,CP112,CP7,CP59,CP5,CP20,CP37,CP63,CP8,CP39,CP48,CP68,CP36,CP29,CP104,CP55,CP15,CP133,CP22,CP143,CP106,CP72,CP9,CP141,CP110,CP115,CP1,CP81,CP120,CP97,CP82,CP92,CP108,CP27];let mintNum=tokenData.tokenId%100;let palette=palettes[mintNum];palette();ccA=random(ccAA)}function Compositions(){push();if(random(0,100)<37){translate(0,1280);scale(1,-1)}if(random(0,100)<50){translate(640,0);scale(-1,1)}if(random(0,100)<50){appearL=100;appearH=100}else{appearL=96;appearH=99}if(random(0,100)<74){lowa=1;hia=4;lowb=1;hib=4;lowc=1;hic=5}else{if(random(0,26)<22){lowa=1;hia=4;lowb=1;hib=5;lowc=1;hic=7}else{sizesA=[1,1,1,1,1,1,2,2,2,2,2,2,2,6,6,6,6];sizesh=[random(sizesA),random(sizesA),random(sizesA)];probh=100;prob=probh;lowa=random(sizesh);hia=random(sizesh);lowb=random(sizesh);hib=random(sizesh);lowc=random(sizesh);hic=random(sizesh)}}if(random(0,100)<7){xaL=1;xaH=7;yaL=1;yaH=15;xbL=1;xbH=7;ybL=1;ybH=15;xcL=1;xcH=7;ycL=1;ycH=15;proba=100;probb=100;probc=100;probd=100}else{if(random(0,93)<14){xaL=2;xaH=6;yaL=6;yaH=9;xbL=3;xbH=6;ybL=7;ybH=11;xcL=3;xcH=7;ycL=11;ycH=15}else{if(random(0,79)<74){xaL=3;xaH=4;yaL=7;yaH=9;xbL=5;xbH=6;ybL=9;ybH=11;xcL=2;xcH=6;ycL=12;ycH=14}else{if(random(0,5)<3){xaL=2;xaH=6;yaL=7;yaH=9;xbL=2;xbH=6;ybL=9;ybH=12;xcL=2;xcH=6;ycL=12;ycH=15}else{xaL=4;xaH=5;yaL=7;yaH=11;xbL=5;xbH=6;ybL=7;ybH=11;xcL=6;xcH=7;ycL=7;ycH=11}}}}LayerR(random([1.25,2.5,5]),100,0,0,random(lcA1),random(lcA2),straight);if(random(0,100)<16){features["Complexity Level"]="Level 2";if(random(0,100)<75){SZhA=[2.5,2.5,5];prob=100;if(random(0,100)<50){translate(-width/4,-height/4);scale(1.5,1.5);SZhA=[1.875,3.75]}}else{prob=60;SZhA=[2.5,2.5,5]}if(p==1){lcA1=[random(lcA1)];lcA2=[random(lcA2)]}else{lcA1=[random(lcA1),random(lcA1),random(lcA1),random(lcA1),random(lcA1),random(lcA1)];lcA2=[random(lcA2),random(lcA2),random(lcA2),random(lcA2),random(lcA2),random(lcA2)]}AllTheLayers();function AllTheLayers(){LayerR(random(SZhA),random(appearL,appearH),round(random(xaL,xaH)),round(random(yaL,yaH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowa,hia);LayerR(random(SZhA),random(appearL,appearH),round(random(-xaL,-xaH)),round(random(-yaL,-yaH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowa,hia);LayerR(random(SZhA),random(appearL,appearH),round(random(-xaL,-xaH)),round(random(yaL,yaH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowa,hia);LayerR(random(SZhA),random(appearL,appearH),round(random(xaL,xaH)),round(random(-yaL,-yaH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowa,hia);LayerR(random(SZhA),random(appearL,appearH),round(random(xbL,xbH)),round(random(ybL,ybH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowb,hib);LayerR(random(SZhA),random(appearL,appearH),round(random(-xbL,-xbH)),round(random(-ybL,-ybH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowb,hib);LayerR(random(SZhA),random(appearL,appearH),round(random(-xbL,-xbH)),round(random(ybL,ybH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowb,hib);LayerR(random(SZhA),random(appearL,appearH),round(random(xbL,xbH)),round(random(-ybL,-ybH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowb,hib);LayerR(random(SZhA),random(appearL,appearH),round(random(xcL,xcH)),round(random(ycL,ycH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowc,hic);LayerR(random(SZhA),random(appearL,appearH),round(random(-xcL,-xcH)),round(random(-ycL,-ycH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowc,hic);LayerR(random(SZhA),random(appearL,appearH),round(random(-xcL,-xcH)),round(random(ycL,ycH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowc,hic);LayerR(random(SZhA),random(appearL,appearH),round(random(xcL,xcH)),round(random(-ycL,-ycH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowc,hic)}pop();blendMode(DODGE);LayerR(1.25,24,0,0,random(lcA1),random(lcA2),straight)}else{if(random(0,84)<73){if(random(0,100)<66){SZhA=[2.5,2.5,5];prob=100}else{prob=60;SZhA=[2.5,2.5,5]}if(random(0,100)<18){ccA=[random(ccA)]}if(random(0,100)<20){lcA1=[random(lcA1)];lcA2=[random(lcA2)]}prob=100;lowa=1;hia=6;lowb=1;hib=7;lowc=1;hic=8;pL=50;pH=80;if(random(0,73)<17){features["Complexity Level"]="Level 3";SZhA=[.625,1.25,1.25]}else{if(random(0,59)<9){features["Complexity Level"]="Level 4";pL=65;pH=92;SZhA=[1.25,1.25,2.5,2.5,5,5,10,10,20]}else{if(random(0,47)<22){features["Complexity Level"]="Level 4";SZhA=[.625,1.25,1.25,40,80]}else{if(random(0,25)<5){features["Complexity Level"]="Level 5";SZhA=[5,20,40,40,80,80]}else{if(random(0,20)<15){features["Complexity Level"]="Level 5";SZhA=[10,20,40,80]}else{if(random(0,5)<=5){features["Complexity Level"]="Level 5";SZhA=[10,20,40,80,160]}}}}}}AllTheLayers2();function AllTheLayers2(){LayerR(random(SZhA),random(pL,pH),round(random(xaL,xaH)),round(random(yaL,yaH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowa,hia);LayerR(random(SZhA),random(pL,pH),round(random(-xaL,-xaH)),round(random(-yaL,-yaH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowa,hia);LayerR(random(SZhA),random(pL,pH),round(random(-xaL,-xaH)),round(random(yaL,yaH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowa,hia);LayerR(random(SZhA),random(pL,pH),round(random(xaL,xaH)),round(random(-yaL,-yaH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowa,hia);LayerR(random(SZhA),random(pL,pH),round(random(xaL,xaH)),round(random(yaL,yaH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowa,hia);LayerR(random(SZhA),random(pL,pH),round(random(-xaL,-xaH)),round(random(-yaL,-yaH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowa,hia);LayerR(random(SZhA),random(pL,pH),round(random(-xaL,-xaH)),round(random(yaL,yaH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowa,hia);LayerR(random(SZhA),random(pL,pH),round(random(xaL,xaH)),round(random(-yaL,-yaH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowa,hia);LayerR(random(SZhA),random(pL,pH),round(random(xbL,xbH)),round(random(ybL,ybH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowb,hib);LayerR(random(SZhA),random(pL,pH),round(random(-xbL,-xbH)),round(random(-ybL,-ybH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowb,hib);LayerR(random(SZhA),random(pL,pH),round(random(-xbL,-xbH)),round(random(ybL,ybH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowb,hib);LayerR(random(SZhA),random(pL,pH),round(random(xbL,xbH)),round(random(-ybL,-ybH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowb,hib);LayerR(random(SZhA),random(pL,pH),round(random(xbL,xbH)),round(random(ybL,ybH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowb,hib);LayerR(random(SZhA),random(pL,pH),round(random(-xbL,-xbH)),round(random(-ybL,-ybH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowb,hib);LayerR(random(SZhA),random(pL,pH),round(random(-xbL,-xbH)),round(random(ybL,ybH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowb,hib);LayerR(random(SZhA),random(pL,pH),round(random(xbL,xbH)),round(random(-ybL,-ybH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowb,hib);LayerR(random(SZhA),random(pL,pH),round(random(xcL,xcH)),round(random(ycL,ycH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowc,hic);LayerR(random(SZhA),random(pL,pH),round(random(-xcL,-xcH)),round(random(-ycL,-ycH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowc,hic);LayerR(random(SZhA),random(pL,pH),round(random(-xcL,-xcH)),round(random(ycL,ycH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowc,hic);LayerR(random(SZhA),random(pL,pH),round(random(xcL,xcH)),round(random(-ycL,-ycH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowc,hic);LayerR(random(SZhA),random(pL,pH),round(random(xcL,xcH)),round(random(ycL,ycH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowc,hic);LayerR(random(SZhA),random(pL,pH),round(random(-xcL,-xcH)),round(random(-ycL,-ycH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowc,hic);LayerR(random(SZhA),random(pL,pH),round(random(-xcL,-xcH)),round(random(ycL,ycH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowc,hic);LayerR(random(SZhA),random(pL,pH),round(random(xcL,xcH)),round(random(-ycL,-ycH)),random(lcA1),random(lcA2),straight,random(ccA),prob,lowc,hic)}pop();blendMode(DODGE);LayerR(1.25,24,0,0,random(lcA1),random(lcA2),straight)}else{features["Complexity Level"]="Level 1";txA=[-260,-200,-200,-160,-160,-140,-120,-80,0,0,0,0,80,120,140,160,160,200,200,260];tyA=[-280,-240,-200,-140,-120,-120,-80,-80,-40,0,0,0,0,0,40,80,80,120,120,140,200,240,280];translate(random(txA),random(tyA));SZhA=[2.5,2.5,5];prob=100;if(random(0,100)<30){translate(-width/2,-height/2);scale(2,2);SZhA=[1.25,2.5]}else{if(random(0,70)<60){translate(-width,-height);scale(3,3);SZhA=[.8333333334,1.666666667]}else{translate(-width/4,-height/4);SZhA=[1.25,2.5];scale(1.5,1.5)}}if(random(0,100)<0||p==1){lcA1=[random(lcA1)];lcA2=[random(lcA2)]}else{if(random(0,50)<0){lcA1=[random(lcA1)];lcA2=[random(lcA2),random(lcA2),random(lcA2)]}else{lcA1=[random(lcA1),random(lcA1),random(lcA1),random(lcA1),random(lcA1),random(lcA1)];lcA2=[random(lcA2),random(lcA2),random(lcA2),random(lcA2),random(lcA2),random(lcA2)]}}TwoGiantCircs();function TwoGiantCircs(){prob=random(87,105);circSZAa=[640,640,480,480];circSZa=random(circSZAa);circSZb=random(circSZAa);addxA=[-160,-120,-80,-80,-40,-40,0,0,40,40,40,80,80,80,120,120,160,160];ellipseMode(CENTER);fill(random(ccA));ellipse(320+random(addxA),640-circSZa/2,circSZa);fill(random(ccA));ellipse(320-random(addxA),640+circSZb/2,circSZb);if(random(0,100)<50){Ax=4;Ay=8;Bx=4;By=round(random(8,12));Cx=4;Cy=round(random(10,13));Dx=4;Dy=round(random(12,16))}else{if(random(0,100)<50){Ax=round(random(3,4));Ay=8}else{Ax=4;Ay=round(random(7,8))}Bx=round(random(3,5));By=round(random(9,13));Cx=round(random(3,6));Cy=round(random(8,13));Dx=round(random(3,6));Dy=round(random(8,16))}if(random(0,100)<74){lowa=4;hia=6;lowb=3;hib=6;lowc=4;hic=7}else{lowa=1;hia=6;lowb=2;hib=6;lowc=1;hic=7}LayerR(random(SZhA),random(appearL,appearH),Ax,Ay,random(lcA1),random(lcA2),straight,random(ccA),prob,lowa,hia);LayerR(random(SZhA),random(appearL,appearH),-Ax,-Ay,random(lcA1),random(lcA2),straight,random(ccA),prob,lowa,hia);LayerR(random(SZhA),random(appearL,appearH),Bx,By,random(lcA1),random(lcA2),straight,random(ccA),prob,lowb,hib);LayerR(random(SZhA),random(appearL,appearH),-Bx,-By,random(lcA1),random(lcA2),straight,random(ccA),prob,lowb,hib);LayerR(random(SZhA),random(appearL,appearH),Cx,Cy,random(lcA1),random(lcA2),straight,random(ccA),prob,lowc,hic);LayerR(random(SZhA),random(appearL,appearH),-Cx,-Cy,random(lcA1),random(lcA2),straight,random(ccA),prob,lowc,hic)}pop();if(p==1){blendMode(DODGE);LayerR(1.25,24,0,0,random(lcA1),random(lcA2),straight)}else{if(random(0,100)<100){blendMode(DODGE);LayerR(1.25,24,0,0,random(lcA1),random(lcA2),straight)}}}}}function LayerR(sz,prob,Tx,Ty,color1,color2,align,cornc,cornerProb,cSZlow,cSZhi){push();translate(Tx*80,Ty*80);if(align==horiz){startx=sz/2;starty=0;stopx=sz/2;stopy=0}if(align==vert){startx=0;starty=sz/2;stopx=0;stopy=sz/2}if(align==handv){startx=sz/2;starty=sz/2;stopx=sz/2;stopy=sz/2}if(align==straight){startx=0;starty=0;stopx=0;stopy=0}for(var x=0-startx;x<640+stopx;x+=sz*2){for(var y=0-starty;y<1280+stopy;y+=sz*2){fill(color1);if(random(0,100)<prob){rect(x,y,sz,sz)}if(random(0,100)<prob){rect(x+sz,y+sz,sz,sz)}fill(color2);if(random(0,100)<prob){rect(x+sz,y,sz,sz)}if(random(0,100)<prob){rect(x,y+sz,sz,sz)}}}ellipseMode(CORNER);if(random(0,100)<cornerProb){fill(cornc);circSz=round(random(cSZlow,cSZhi));ellipse(0,0,circSz*40,circSz*40)}if(random(0,100)<cornerProb){fill(cornc);circSz=round(random(cSZlow,cSZhi));ellipse(640-circSz*40,0,circSz*40,circSz*40)}if(random(0,100)<cornerProb){fill(cornc);circSz=round(random(cSZlow,cSZhi));ellipse(0,1280-circSz*40,circSz*40,circSz*40)}if(random(0,100)<cornerProb){fill(cornc);circSz=round(random(cSZlow,cSZhi));ellipse(640-circSz*40,1280-circSz*40,circSz*40,circSz*40)}pop()}function Colors(){G1=[255,255,255];G2=[244,244,242];G3=[233,233,230];G4=[220,220,218];G5=[205,205,203];G6=[190,190,188];G7=[175,175,173];G8=[160,160,158];G9=[145,145,143];G10=[130,130,128];G11=[105,105,103];G12=[90,90,88];G13=[75,75,73];G14=[60,60,58];G15=[45,45,43];G16=[30,30,28];G17=[15,15,13];G18=[0,0,0];C1=[226,225,214];C2=[214,213,197];C3=[203,202,182];C4=[190,188,171];C5=[179,177,162];C6=[168,166,153];C7=[158,156,145];C8=[149,146,137];C9=[140,137,130];C10=[132,129,122];C11=[122,119,112];C12=[112,108,101];C13=[85,83,78];C14=[60,59,55];E1=[262,243,233];E2=[243,230,220];R1=[255,207,212];R2=[249,160,166];R3=[244,112,120];R4=[239,65,73];R5=[206,50,55];R6=[180,37,41];R7=[158,31,35];R8=[137,24,29];R9=[110,14,16];R10=[87,0,2];O1=[255,156,0];O2=[252,141,5];O3=[249,125,9];O4=[245,110,15];O5=[242,94,30];O6=[239,79,40];O7=[235,59,35];O8=[230,42,30];O9=[228,23,30];O10=[255,0,30];Y1=[251,243,208];Y2=[250,238,189];Y3=[249,232,167];Y4=[248,232,128];Y5=[250,226,96];Y6=[252,220,64];Y7=[253,214,32];Y8=[255,208,0];Y9=[255,198,0];Y10=[255,190,0];YG1=[232,242,220];YG2=[214,234,200];YG3=[196,225,179];YG4=[178,219,149];YG5=[161,210,123];YG6=[144,201,97];YG7=[127,184,73];YG8=[134,169,51];YG9=[128,157,47];YG10=[128,143,40];Gr1=[213,241,231];Gr2=[178,229,211];Gr3=[143,218,191];Gr4=[107,206,170];Gr5=[72,194,150];Gr6=[36,182,129];Gr7=[0,154,114];Gr8=[12,130,102];Gr9=[0,115,94];Gr10=[0,96,80];BG1=[212,236,230];BG2=[189,226,216];BG3=[165,216,203];BG4=[142,206,189];BG5=[118,196,175];BG6=[94,188,162];BG7=[30,147,129];BG8=[28,119,114];BG9=[9,98,102];BG10=[9,82,86];GB1=[214,230,230];GB2=[192,217,217];GB3=[171,204,205];GB4=[149,191,192];GB5=[127,178,179];GB6=[74,138,151];GB7=[52,103,132];GB8=[22,71,114];GB9=[21,61,94];GB10=[0,44,73];B1=[183,191,211];B2=[159,169,196];B3=[138,148,184];B4=[118,128,173];B5=[97,107,161];B6=[76,86,149];B7=[56,66,137];B8=[35,45,125];B9=[33,39,102];B10=[30,33,79];P1=[255,156,192];P2=[255,129,175];P3=[255,103,158];P4=[255,76,141];P5=[255,51,125];P6=[255,25,108];P7=[255,0,92];P8=[229,0,92];P9=[202,0,92];P10=[176,0,92];M1=[255,51,255];M2=[255,143,255];M3=[255,166,255];M4=[148,0,255];M5=[148,241,255];M6=[20,200,255];M7=[148,241,0];M8=[175,241,244];M9=[101,219,206];M10=[20,200,180];SB1=[216,226,244];SB2=[177,196,233];SB3=[138,167,222];SB4=[99,137,211];SB5=[60,108,200];SB6=[48,89,180];SB7=[36,69,159];SB8=[24,50,139];SB9=[12,30,118];SB10=[0,11,98];allcolorsA=[G1,G2,G3,G4,G5,G6,G7,G8,G9,G10,G11,G12,G13,G14,G15,G16,G17,G18,C1,C2,C3,C4,C5,C6,C7,C8,C9,C10,C11,C12,C13,C14,E1,E2,R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,O1,O2,O3,O4,O5,O6,O7,O8,O9,O10,Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8,Y9,Y10,YG1,YG2,YG3,YG4,YG5,YG6,YG7,YG8,YG9,YG10,Gr1,Gr2,Gr3,Gr4,Gr5,Gr6,Gr7,Gr8,Gr9,Gr10,BG1,BG2,BG3,BG4,BG5,BG6,BG7,BG8,BG9,BG10,GB1,GB2,GB3,GB4,GB5,GB6,GB7,GB8,GB9,GB10,B1,B2,B3,B4,B5,B6,B7,B8,B9,B10,P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,M1,M2,M3,M4,M5,M6,M7,M8,M9,M10];allgraysA=[G1,G2,G3,G4,G5,G6,G7,G8,G9,G10,G11,G12,G13,G14,G15,G16,G17,G18,C1,C2,C3,C4,C5,C6,C7,C8,C9,C10,C11,C12,C13,C14,E1,E2]}function download(){if(savesremaining){saveCanvas();savesremaining--}else{noLoop()}}function keyTyped(){if(key==="d"){saveCanvas()}}const sheet=new CSSStyleSheet;const styleStr="html { margin: 0; padding: 0; } body { margin: 0; display: flex; justify-content: center; align-items: center; } canvas { display: block; height: 100vh !important; width: 50vh !important; }";sheet.replace(styleStr);document.adoptedStyleSheets=[sheet];
let features={};features.Palette="To Be Named";class Random{constructor(initialSeed){this.useA=false;let sfc32=function(uint128Hex){let a=parseInt(uint128Hex.substring(0,8),16);let b=parseInt(uint128Hex.substring(8,16),16);let c=parseInt(uint128Hex.substring(16,24),16);let d=parseInt(uint128Hex.substring(24,32),16);return function(){a|=0;b|=0;c|=0;d|=0;let t=(a+b|0)+d|0;d=d+1|0;a=b^b>>>9;b=c+(c<<3)|0;c=c<<21|c>>>11;c=c+t|0;return(t>>>0)/4294967296}};this.prngA=new sfc32(initialSeed.substring(2,34));this.prngB=new sfc32(initialSeed.substring(34,66));for(let i=0;i<1e6;i+=2){this.prngA();this.prngB()}}random_dec(){this.useA=!this.useA;return this.useA?this.prngA():this.prngB()}random_num(a,b){return a+(b-a)*this.random_dec()}random_int(a,b){return Math.floor(this.random_num(a,b+1))}random_bool(p){return this.random_dec()<p}random_choice(list){return list[this.random_int(0,list.length-1)]}}let R=new Random(tokenData.hash);p5.prototype.random=function(min,max){const rand=R.random_dec();if(typeof min==="undefined"){return rand}else if(typeof max==="undefined"){if(min instanceof Array){return min[Math.floor(rand*min.length)]}else{return rand*min}}else{if(min>max){var tmp=min;min=max;max=tmp}return rand*(max-min)+min}};let cornON;let cornOFF;let horiz=0;let vert=1;let handv=2;let alignh=3;let straight=4;let alignA=[straight,vert,horiz,handv];let savesremaining=0;function setup(){createCanvas(640,1280);pixelDensity(16)}function draw(){background(30,30,28);noLoop();noStroke();Palettes();Compositions();download()}function CP109(){lcA1=[R9,R10];lcA2=[P8,P9,P10];ccAA=[[R9,R10,P8,P9,P10]];p=0}function CP27(){lcA1=[C6,C5,C7];lcA2=[C4,C5,C7,Gr5,Gr5,Gr7,Gr8];ccAA=[[Gr6,Gr5,Gr4,Gr3,Gr2,Gr1,Gr8]];p=0}function CP148(){lcA1=[G15,G16];lcA2=[G2,G3,G4,G8,B1,C3,C5,C6];ccAA=[[Y6,M10,R4]];p=1}function CP136(){lcA1=[G16,G15,B10];lcA2=[G18];ccAA=[[R5,Y6,Gr4,BG3,O9]];p=0}function CP124(){lcA1=[G17,G16];lcA2=[B8,O9,Y10];ccAA=[[B8,O9,Y10]];p=1}function CP140(){lcA1=[E1,E2];lcA2=[O8,Y7,Y9,R1,YG3,SB3,SB4];ccAA=[[G17]];p=0}function CP39(){lcA1=[R5,R4,R4,YG4,YG5];lcA2=[G3,G4,Gr2];ccAA=[[Gr2,G11,Y5]];p=1}function CP141(){lcA1=[E1,E2];lcA2=[O8,Y7,Y9,R1,YG3,SB3,SB4];ccAA=[[O8,Y7,Y9,R1,YG3,SB3,SB4]];p=1}function CP74(){lcA1=[Gr6,Y3,Gr1];lcA2=[R4,B10];ccAA=[[R4,Y3,Y3,[202,210,219]]];p=0}function CP135(){lcA1=[O6,O7,Y2,Y3,Y4];lcA2=[O8,B8,B10,R6,R7,R8];ccAA=[[R6,R7,R8,O6,O7,O8,B8,B10,Y2,Y3,Y4]];p=1}function CP139(){lcA1=[R4,O5,Gr5,SB4];lcA2=[R5,O6,SB5];ccAA=[[R4,O5,Gr5,SB4,R5,O6,SB5]];p=1}
Agar is a generative art project inspired by abstract expressionism, pixel art, and the grid rules studied in graphic design. Color, the essential element of pixel art, gives life to simple shapes and defines a composition. Playing against the rigidity of a pixel grid, Agar exuberantly uses 100 different color palettes—each one appearing exactly once in the 100 outputs. The series embraces the aesthetics of pixel art while reimagining its formal constraints. Instead of using only squares, Agar introduces circles as another basic shape. The squares and circles are arranged on a regular grid, but they vary in size—within a fixed set of eight dramatically varying scales—to create dynamic compositions. The title comes from a gelatinous substance, derived from seaweed, that is used to grow bacteria and other microorganisms in petri dishes. It relates to the idea of cellular life forms growing on the matrix of a pixel grid, and the diversity of shapes and colors that can be found in nature. Agar asks: what if squares and circles are the building blocks of digital life? What forms might evolve to live on the screen? Agar is a celebration of the beauty possible within constraints. Through color, it invites us to imagine new forms of life and art on the digital canvas.