artCodestring="var throwAndStop=e=>{throw console.log(e),new Error(e)};"undefined"==typeof p5&&throwAndStop("You must include p5js v1.4.0; see this contract's 'artCodeDependencies()' method.");const sunflowerIsDefined="undefined"!=typeof Sunflower,tokenDataIsDefined="undefined"!=typeof tokenData;var Helper;function setup(){const e=Number(BigInt(Helper.seed)%BigInt("9007199254740991"));angleMode(DEGREES),noiseSeed(e),randomSeed(e),cnf={seed:e,ss:min(windowWidth,windowHeight),pos:[]},createCanvas(cnf.ss,cnf.ss)}function draw(){randomSeed(cnf.seed);let e=parseInt(random(0,10)),n=parseInt(random(0,10)),a=pal[parseInt(random(0,19))],s=parseInt(random(2,10)),f=parseInt(random(2,10)),t=cnf.ss/s,o=cnf.ss/f,d=random(0,100)>95,r=random(0,100)>95,c=parseInt(random(1,100));c=c<10?"#FFF":c<20?"#F3F6E7":c<40?"#F0E2CE":c<60?"#2A0000":c<80?"#fff":"#000",background(c);translate(cnf.ss/2,cnf.ss/2);let l=[];for(let e=1;e<f+1;e++){l[e]=[];for(let n=1;n<s+1;n++){var p=-cnf.ss/2+(n*t-t)+t*random(),i=-cnf.ss/2+(e*o-o)+o*random();l[e][n]={x:p,y:i,speed:random()*(.001*cnf.ss)}}}push(),rotate(90*random()),l.forEach(((n,s)=>{cnf.pos[s]=cnf.pos[s]?cnf.pos[s]:[],n.forEach(((n,f)=>{0;let t=parseInt(random(0,10)),o=parseInt(random(0,100)),r=parseInt(random(0,8));cnf.pos[s][f]=cnf.pos[s][f]?cnf.pos[s][f]+random()*cnf.ss*.001:.1,cnf.pos[s][f]=t%2?l[s][f].y+cnf.pos[s][f]>.6*cnf.ss?cnf.pos[s][f]-1.2*cnf.ss:cnf.pos[s][f]:l[s][f].y-cnf.pos[s][f]<-.6*cnf.ss?cnf.pos[s][f]+1.2*cnf.ss:cnf.pos[s][f],drawShape({x:n.x,y:t%2?n.y+(1+o)*(8e-4*cnf.ss)+cnf.pos[s][f]:n.y-(1+o)*(8e-4*cnf.ss)-cnf.pos[s][f]},{x:n.x+(1+o)*(8e-4*cnf.ss),y:t%2?n.y+cnf.pos[s][f]:n.y-cnf.pos[s][f]},{x:n.x-(1+o)*(8e-4*cnf.ss),y:t%2?n.y+cnf.pos[s][f]:n.y-cnf.pos[s][f]},null,null,null,d?`#${parseInt(random(0,16777215)).toString(16)}`:a[1],d?`#${parseInt(random(0,16777215)).toString(16)}`:a[2],e<9?e:r,1+.005*cnf.ss,1)}))}));for(let e=0;e<parseInt(random(5,30));e++){0;let e=parseInt(random(0,8));drawShape(null,null,null,-cnf.ss/2+random()*cnf.ss,-cnf.ss/2+random()*cnf.ss,1+2*random(0,10)*(.001*cnf.ss)*3,r?`#${parseInt(random(0,16777215)).toString(16)}`:a[3],r?`#${parseInt(random(0,16777215)).toString(16)}`:a[4],n<9?n:e,.003*cnf.ss,0)}Helper.setMetadata?.("Random Color Triangles",d),Helper.setMetadata?.("Random Color Circles",r),Helper.setMetadata?.("Palette",a.name),Helper.setMetadata?.("Column Saturation",s),Helper.setMetadata?.("Row Saturation",f),Helper.setMetadata?.("Triangle Type",e>8?"multiple":shTy[e]),Helper.setMetadata?.("Circle Type",n>8?"multiple":shTy[n]),Helper.setMetadata?.("Background",c),pop()}function windowResized(){cnf.ss=min(windowWidth,windowHeight),resizeCanvas(cnf.ss,cnf.ss)}sunflowerIsDefined?Helper={...Sunflower}:tokenDataIsDefined&&(Helper={seed:tokenData.hash}),Helper?.seed||throwAndStop("To run, call 'seedForToken(...)' on this contract to get the seed. Then prefix this js code with 'tokenData = {hash: <seed>}', where <seed> is the seed as a string starting with '0x...'.");const shTy={0:"dashed",1:"dashed",2:"filled",3:"filled",4:"filled",5:"stroke",6:"stroke",7:"filled/stroke",8:"filled/stroke"};function drawShape(e,n,a,s,f,t,o,d,r,c,l){switch(noFill(),noStroke(),r){case 0:case 1:noFill(),strokeWeight(c),stroke(`${d}`),drawingContext.setLineDash([.002*cnf.ss,.01*cnf.ss]);break;case 2:case 3:case 4:fill(`${o}`),noStroke();break;case 5:case 6:noFill(),strokeWeight(c),stroke(`${d}`);break;case 7:case 8:stroke(`${d}`),fill(`${o}`),strokeWeight(c)}switch(l){case 0:ellipse(s,f,t);break;case 1:beginShape(),vertex(e.x,e.y),vertex(n.x,n.y),vertex(a.x,a.y),endShape(CLOSE)}drawingContext.setLineDash([])}let cnf={};const pal={0:{1:"#f9f3df",2:"#fdfce5",3:"#d7e9f7",4:"#f4d19b",name:"cake"},1:{1:"#212121",2:"#323232",3:"#0d7377",4:"#14ffec",name:"space"},2:{1:"#f9fd50",2:"#85ef47",3:"#00bd56",4:"#207dff",name:"neon"},3:{1:"#851de0",2:"#aa26da",3:"#c355f5",4:"#f1fa3c",name:"retro"},4:{1:"#ffd5e5",2:"#ffffdd",3:"#a0ffe6",4:"#81f5ff",name:"pastel"},5:{1:"#8c0000",2:"#bd2000",3:"#fa1e0e",4:"#Ffbe0f",name:"raging"},6:{1:"#ffe227",2:"#eb596e",3:"#4d375d",4:"#121013",name:"space"},7:{1:"#f7fd04",2:"#f9b208"
Geometria is a collection of 6,000 unique animations of geometric shapes flying around in a deterministic yet randomly generated manner.
Every design and animation is completely unique and cannot be repeated.