memoscan
← all memos

Memo 0x230a7dd4…89f110 on Ethereum

let collo=[[#D9D9D9"","#FF5C00","#434343"],["#303030","#FF2727","#29E200"],["#303030","#FF2200"],["#303030","#316FF0","#A210C3"],["#303030","#730FB4"],["#303030","#CF9F06","#E24300"],["#303030","#316FF0"],],stats=["DEX","STR","VIT","INT","WIS","CHA"],bgcol=["#DADADA"],palette=0,sd=0,sdOff=404,std=.05,mean=.9999,showText=!1;function setup(){if(createCanvas(800,800),rectMode(CENTER),ellipseMode(CENTER),angleMode(DEGREES),noLoop(),"undefined"!=typeof blockHash){let $=`${tokenId}${blockHash.slice(0,10)}`;randomSeed($)}else randomSeed(sd+sdOff);let _=int(random(bgcol.length));background(bgcol[_]),console.log(_)}function draw(){if("undefined"!=typeof blockHash){let $=`${tokenId}${blockHash.slice(0,10)}`;randomSeed($)}else randomSeed(sd+sdOff);let _=int(random(3,5));for(strokeWeight(width/600),palette=floor(random(collo.length));_--;){let t=collo[palette],e=t[floor(int(random(t.length)))],f=height/2,s=width/2;margin=height/4,sc=.24*width,rounded=width/30,connectorEnd=random(5,10),(txr=random(10))>3&&txr<3.5&&filter(INVERT);let l=random(-margin,margin),o=random(-margin,margin),n=random(-margin,margin),d=random(-margin,margin),a=width/20,c=random(10);c>9&&c<10&&(push(),noFill(),strokeWeight(.3),rect(s+l,f+o,a,a,rounded/2),rect(s+o,f+l,a,a,rounded/2),rect(s+n,f+d,a,a,rounded/2),rect(s+d,f+n,a,a,rounded/2),pop());let i=!1;if(txr>3&&txr<3.5&&(i=!0),drawingContext.shadowOffsetX=.8,drawingContext.shadowOffsetY=.8,drawingContext.shadowBlur=.1,drawingContext.shadowColor="#11111150",beginShape(),noFill(),stroke(e),curveVertex(s+l,f+o),curveVertex(s+o,f+l),i&&quadraticVertex(s+o,f+l,0,0),curveVertex(s+n,f+d),i&&quadraticVertex(s+n,f+d,0,0),curveVertex(s+d,f+n),endShape(),fill(e),ellipse(s+l,f+o,connectorEnd),ellipse(s+o,f+l,connectorEnd),ellipse(s+n,f+d,connectorEnd),ellipse(s+d,f+n,connectorEnd),txr>6&&txr<10){push(),textAlign(LEFT),textSize(10),noStroke();text(stats[int(random(stats.length))]+"+1",s+d+width/60,f+n+width/200),pop()}txr>3&&txr<6&&(push(),textAlign(LEFT),textSize(10),noStroke(),text("+XP",s+d+width/60,f+n+width/200),pop()),noStroke(),fill(e),rect(s+random(-margin,margin),f+random(-margin,margin),random(sc),random(sc),rounded),stroke(e),noFill(),rect(s+random(-margin,margin),f+random(-margin,margin),random(sc),random(sc),rounded),rect(s+random(-margin,margin),f+random(-margin,margin),random(sc),random(sc),rounded),rect(s+random(-margin,margin),f+random(-margin,margin),random(sc),random(sc),rounded),noFill(),stroke(e),push(),ellipse(s+random(-margin,margin),f+random(-margin,margin),random(width/120)),ellipse(s+random(-margin,margin),f+random(-margin,margin),random(width/120)),ellipse(s+random(-margin,margin),f+random(-margin,margin),random(width/60)),fill(e),noStroke(),ellipse(s+random(-margin,margin),f+random(-margin,margin),random(1)),ellipse(s+random(-margin,margin),f+random(-margin,margin),random(width/120)),ellipse(s+random(-margin,margin),f+random(-margin,margin),random(width/120)),pop(),txr>2&&txr<3&&gr(100,100),showText&&(textAlign(CENTER),noStroke(),fill("#888888"),textSize(width/40),text("HUMAN",s,height-width/12)),pat1(s+random(-margin,margin),f+random(-margin,margin),random(3),e),txr>1&&txr<3&&txtsq(s+random(-margin,margin),f+random(-margin,margin),e,.3)}crsr(width/2+random(-margin,margin),height/2+random(-margin,margin),"#303030")}function keyPressed(){"s"===key&&("undefined"!=typeof blockHash?save("human-"+tokenId+".png"):save("human-"+sd+".png"))}function pat1($,_,t,e){fill(e),ellipse($-10,_,t),ellipse($,_+10,t),ellipse($,_,2*t),ellipse($,_-10,t),ellipse($+10,_,t)}function gr($,_){console.log("grid");for(var t=0;t<width;t+=width/$)for(var e=0;e<height;e+=height/_)fill("#ffffff55"),noStroke(),rect(t,e,1)}function txtsq($,_,t,e){push(),stroke(t),strokeWeight(random(1,2)),noFill(),ellipse($-15,_+5,random(10,15)),line($,_,$+random(10),_),line($,_+5,$+random(30),_+5),line($,_+10,$+random(20),_+10),pop()}function crsr($,_,t){push(),beginShape(),stroke(t),noFill(),rotate(random(10)),curveVertex($-8,_-5),curveVertex($-10,_+5),curveVertex($-3,_),curveVertex($+5,_+1),curveVertex($-5,_-10),endShape(CLOSE),pop()}