let chosenWord,colorProfiles,customFont,symbolImage,words=["BITCOIN","DECENTRALIZATION","PREVENT \nDOUBLE-SPENDING","SATOSHI","NAKAMOTO","SATOSHI \nNAKAMOTO","ELECTRONIC \nCASH \nSYSTEM","A PEER-TO-PEER \nELECTRONIC CASH \nSYSTEM","DIGITAL \nSIGNATURES","TIMESTAMP","PROOF-OF-WORK \nIS ESSENTIALLY \nONE-CPU-ONE-VOTE","CRYPTOGRAPHIC \nPROOF","TRANSACTIONS","PUBLIC KEY","SINGLE-HASH","NEXT BLOCK","BLOCK'S HASH","THE MAJORITY \nDECISION \nIS REPRESENTED \nBY THE \nLONGEST CHAIN","DIFFICULTY","KEEPING \nPUBLIC KEYS \nANONYMOUS","TRANSACTIONS \nMUST BE \nPUBLICLY \nANNOUNCED","ELECTRONIC \nTRANSACTIONS \nWITHOUT RELYING \nON TRUST","WITHOUT GOING \nTHROUGH A \nFINANCIAL \nINSTITUTION","A TIMESTAMP \nSERVER","NO \nCENTRAL \nAUTHORITY","INCENTIVE","COMPUTATIONALLY \nIMPRACTICAL \nFOR AN \nATTACKER","THEY VOTE \nWITH THEIR \nCPU POWER","DISTRIBUTED \nTIMESTAMP \nSERVER","CONSENSUS","PRIVACY","HASH-BASED","THE BLOCK CANNOT \nBE CHANGED \nWITHOUT \nREDOING \nTHE WORK","BROADCAST \nTO ALL NODES","NODES \nCAN LEAVE \nAND REJOIN"],numLines=80,minRectSize=100;function preload(){customFont=loadFont("/content/603ccf6f231ef2fecce48777dde37284dbb8edf7b1862fda7c3300b9abe667aei0"),customFont2=loadFont("/content/9ab7b9c5407cf12d29ee012f67a9aa81375c06a55bd768207a76a4767ad8824ei0")}function hashToSeed(t){let e=0;for(let o=0;o3*e&&(l=random(-600,0),d+=n);let c=random(i.textColors);fill(c.r,c.g,c.b,150),noStroke(),text(r,l,d),l+=textWidth(r)}l+=textWidth(" ")}}function profileNewtxt(t){let e=random(1),o=0;for(let r of t)if(o+=r.probability,e<=o)return r;return t[t.length-1]}function randomRectsBackground(){colors=[color("#f5f5f5"),color("#5280bc"),color("#ebcb5e"),color("#b44b45")];let t=color("#2b2b2b");stroke(t),strokeWeight(20);let e=[colors[0],colors[1],colors[3]],o=floor(random(4)),r=o%2==0?0:width-random(width/2,width-minRectSize),i=o<2?0:height-random(height/2,height-minRectSize),n=o%2==0?random(width/2,width-minRectSize):width-r,l=o<2?random(height/2,height-minRectSize):height-i,d=random(e);fill(d),rect(r,i,n,l);let c=textColorForRectColor(d);0==o?(divideArea(n,0,width-n,height),divideArea(0,l,n,height-l)):1==o?(divideArea(0,0,r,height),divideArea(r,l,n,height-l)):2==o?(divideArea(0,0,width,i),divideArea(n,i,width-n,l)):(divideArea(0,0,width,i),divideArea(0,i,r,l)),rectsText(chosenWord,r,i,n,l,c)}function divideArea(t,e,o,r){if(or){let i=random(minRectSize,o-minRectSize);fill(random(colors)),rect(t,e,i,r),divideArea(t+i,e,o-i,r)}else{let i=random(minRectSize,r-minRectSize);fill(random(colors)),rect(t,e,o,i),divideArea(t,e+i,o,r-i)}}function rectsText(t,e,o,r,i,n){fill(n),noStroke(),textFont(customFont);let l=t.split("\n")[0],d=r/12;textSize(d);let c=textWidth(l);c>r-80&&textSize(d*(r-80)/c),textAlign(LEFT,TOP),text(t,e+40,o+40)}function textColorForRectColor(t){return t.toString()===colors[0].toString()?"#2b2b2b":t.toString()===colors[1].toString()?"#f5f5f5":t.toString()===colors[2].toString()?"#2b2b2b":t.toString()===colors[3].toString()?"#f5f5f5":void 0}function randomRecBY(){colors=[color("#1e1e1e"),color("#1e1e1e"),color("#1e1e1e")];let t=color("#ebcb5e");stroke(t),strokeWeight(20);let e=floor(random(4)),o=e%2==0?0:width-random(width/2,width-minRectSize),r=e<2?0:height-random(height/2,height-minRectSize),i=e%2==0?random(width/2,width-minRectSize):width-o,n=e<2?random(height/2,height-minRectSize):height-r,l=random(colors);fill(l),rect(o,r,i,n);0==e?(divideArea(i,0,width-i,height),divideArea(0,n,i,height-n)):1==e?(divideArea(0,0,o,height),divideArea(o,n,i,height-n)):2==e?(divideArea(0,0,width,r),divideArea(i,r,width-i,n)):(divideArea(0,0,width,r),divideArea(0,r,o,n)),rectsText(chosenWord,o,r,i,n,"#f5f5f5")}function textColorForRect2(t){return t.toString()===colors[0].toString()||t.toString()===colors[1].toString()||t.toString()===colors[2].toString()||(t.toString(),colors[3].toString()),"#ebcb5e"}function randomRecBR(){colors=[color("#1e1e1e"),color("#1e1e1e"),color("#1e1e1e")];let t=color("#b44b45");stroke(t),strokeWeight(20);let e=floor(random(4)),o=e%2==0?0:width-random(width/2,width-minRectSize),r=e<2?0:height-random(height/2,height-minRectSize),i=e%2==0?random(width/2,width-minRectSize):width-o,n=e<2?random(height/2,height-minRectSize):height-r,l=random(colors);fill(l),rect(o,r,i,n);0==e?(divideArea(i,0,width-i,height),divideArea(0,n,i,height-n)):1==e?(divideArea(0,0,o,height),divideArea(o,n,i,height-n)):2==e?(divideArea(0,0,width,r),divideArea(i,r,width-i,n)):(divideArea(0,0,width,r),divideArea(0,r,o,n)),rectsText(chosenWord,o,r,i,n,"#ebcb5e")}function randomRec3(){colors=[color("#e4a621"),color("#0c5f80"),color("#204080")];let t=color("#191736");stroke(t),strokeWeight(20);let e=floor(random(4)),o=e%2==0?0:width-random(width/2,width-minRectSize),r=e<2?0:height-random(height/2,height-minRectSize),i=e%2==0?random(width/2,width-minRectSize):width-o,n=e<2?random(height/2,height-minRectSize):height-r,l=random(colors);fill(l),rect(o,r,i,n);let d=textColorForRect3(l);0==e?(divideArea(i,0,width-i,height),divideArea(0,n,i,height-n)):1==e?(divideArea(0,0,o,height),divideArea(o,n,i,height-n)):2==e?(divideArea(0,0,width,r),divideArea(i,r,width-i,n)):(divideArea(0,0,width,r),divideArea(0,r,o,n)),rectsText(chosenWord,o,r,i,n,d)}function textColorForRect3(t){return t.toString()===colors[0].toString()?"#f3e9e9":(t.toString()===colors[1].toString()||t.toString()===colors[2].toString()||(t.toString(),colors[3].toString()),"#fffff3")}function randomRecV(){colors=[color("#67a126"),color("#eecf5a"),color("#9f2307")];let t=color("#fefefe");stroke(t),strokeWeight(20);let e=[colors[0],colors[2]],o=floor(random(4)),r=o%2==0?0:width-random(width/2,width-minRectSize),i=o<2?0:height-random(height/2,height-minRectSize),n=o%2==0?random(width/2,width-minRectSize):width-r,l=o<2?random(height/2,height-minRectSize):height-i,d=random(e);fill(d),rect(r,i,n,l);let c=textColorForRectV(d);0==o?(divideArea(n,0,width-n,height),divideArea(0,l,n,height-l)):1==o?(divideArea(0,0,r,height),divideArea(r,l,n,height-l)):2==o?(divideArea(0,0,width,i),divideArea(n,i,width-n,l)):(divideArea(0,0,width,i),divideArea(0,i,r,l)),rectsText(chosenWord,r,i,n,l,c)}function textColorForRectV(t){return t.toString()===colors[0].toString()?"#fefefe":t.toString()===colors[1].toString()?"#472106":(t.toString()===colors[2].toString()||(t.toString(),colors[3].toString()),"#fefefe")}function randomRecBM(){colors=[color("#00cccc"),color("#0099cc"),color("#000000")];let t=color("#ffffff");stroke(t),strokeWeight(20);let e=floor(random(4)),o=e%2==0?0:width-random(width/2,width-minRectSize),r=e<2?0:height-random(height/2,height-minRectSize),i=e%2==0?random(width/2,width-minRectSize):width-o,n=e<2?random(height/2,height-minRectSize):height-r,l=random(colors);fill(l),rect(o,r,i,n);let d=textColorForRectBM(l);0==e?(divideArea(i,0,width-i,height),divideArea(0,n,i,height-n)):1==e?(divideArea(0,0,o,height),divideArea(o,n,i,height-n)):2==e?(divideArea(0,0,width,r),divideArea(i,r,width-i,n)):(divideArea(0,0,width,r),divideArea(0,r,o,n)),rectsText(chosenWord,o,r,i,n,d)}function textColorForRectBM(t){return t.toString()===colors[0].toString()||t.toString()===colors[1].toString()||t.toString()===colors[2].toString()||(t.toString(),colors[3].toString()),"#ffffff"}function bauhaus(){blendMode(MULTIPLY),noStroke();let t,e=[{colors:[[240,200,200],[180,75,69],[235,203,94],[82,128,188]],chance:30},{colors:[[255,100,43],[202,19,25],[235,163,94],[166,30,8]],chance:15},{colors:[[208,213,155],[162,182,56],[209,207,120],[61,119,29]],chance:5},{colors:[[235,248,243],[255,17,105],[205,144,213],[14,147,253]],chance:30},{colors:[[235,248,243],[255,17,105],[14,147,253],[205,144,213]],chance:10},{colors:[[238,207,90],[159,35,7],[238,187,38],[103,161,38]],chance:10}],o=0,r=random(100);for(let i of e)if(o+=i.chance,r<=o){t=i.colors;break}let i=random([120,140,140,140,180,180,180,220,260]),n=["BITCOIN","SATOSHI","NAKAMOTO","NODES","TIMESTAMP","PUBLIC KEY","HASH","NEXT BLOCK","BLOCK'S HASH","DIFFICULTY","INCENTIVE","CPU POWER","CONSENSUS","PRIVACY","HASH-BASED","VERIFY","CHAIN"];background(t[0]),textFont(customFont),textSize(i),textAlign(LEFT,TOP);let l=height/i;for(let e=0;et.length>e.length?t:e)),C=min(s/E.length*1.5,S/(T.length+.6*(T.length-1))),I=0;switch(random(["top","right","left"])){case"top":b=m+s/4,R=A;break;case"right":b=m+s,R=A+S/4,I=HALF_PI;break;case"left":b=m,R=A+3*S/4,I=-HALF_PI}textAlign(LEFT,CENTER),push(),translate(b,R),rotate(I),textSize(C),text(T[0],0,0);for(let t=1;t