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;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...'.");let cO,ptL,nS,nSF,nSC,DSw,DSh,h,w,M,mono,rainbow,fire,sS,maxLimit,op,wh,sh,shC,eT,bS,inv,chaos,seed,ra,cOs=[["#f60","#222","#ccc","#06f","#f06"],["#134","#18b","#fff","#f94","#510"],["#122","#69c","#aee","#fb0","#561"],["#A26","#E24","#F63","#FD4","#299"],["#edc","#cb8","#066","#034","#013"],["#0ab","#643","#c33","#e64","#ec5"],["#654","#8ba","#cc8","#ea2","#b42"],["#6de","#add","#ddb","#f83","#f60"],["#07d","#0af","#ad3","#fb2","#fc8"],["#80d","#d2b","#f8c","#fc6","#eee"],["#129","#26d","#4dd","#8ee","#ffb"],["#27a","#438","#905","#f32","#fb0"],["#023","#09a","#ddb","#952","#322"],["#5ad","#7df","#c8a","#846","#345"],["#32b","#e4a","#1c9","#f97","#67a"],["#279","#3ac","#b93","#da1","#e43"],["#635","#c50","#fe0","#fff","#257"],["#B32","#ED8","#DDE","#655","#000"],["#555","#9c5","#eff","#3bc","#177"],["#010","#671","#cb5","#6cd","#08a"],["#d27","#dab","#ffe","#643","#332"],["#003","#058","#09d","#eec","#cba"],["#69c","#ecb","#fec","#faa","#eb1"],["#078","#0BC","#F75","#F32","#401"],["#560","#ee5","#56a","#a9a","#657"],["#fc0","#b60","#556","#b68","#dcb"],["#efe","#b75","#c34","#235","#000"],["#644","#c04","#c9b","#eb3","#e51"],["#ddb","#f62","#fff","#666","#222"],["#011","#5cd","#279","#087","#7e8"],["#111","#344","#576","#799","#ced"],["#001","#368","#9db","#8c7","#084"],["#120","#dad","#abb","#684","#798"],["#e71","#375","#29b","#9cf","#dde"],["#f3a","#fe3","#352","#139","#1cd"],["#302","#513","#936","#dac","#995"],["#821","#f82","#b98","#8bd","#269"],["#223","#e00","#8bd","#bde","#fff"],["#6de","#add","#eec","#f83","#f60"],["#567","#4cc","#cf6","#f66","#c45"],["#403","#b15","#e70","#fc0","#890"],["#544","#578","#4aa","#9ea","#efc"],["#9b9","#fca","#f87","#e45","#233"],["#0ac","#4cc","#ffe","#ae3","#8b0"],["#654","#8ba","#ffb","#ea2","#b42"],["#80d","#d2b","#f8c","#fc6","#eee"],["#214","#639","#95c","#daf","#7ee"],["#5ce","#fe4","#9c3","#e53","#f72"],["#e65","#ffb","#9cb","#5aa","#eee"],["#f91","#fb6","#fff","#cff","#2cb"],["#037","#eed","#fd5","#e94","#f53"]],pts=[],DS=750,hiRes=!1,orient=0;function setup(){let e=Helper;e.setPreviewFrame?.(200),dim=min(windowWidth,windowHeight),h=w=dim,DSw=DSh=DS,1==orient&&(h=1.414*dim,DSh=1.414*DS),2==orient&&(w=1.414*dim,DSw=1.414*DS),M=dim/DS,createCanvas(w,h),frameRate(30),hiRes&&pixelDensity(4),ra=random,seed=Number(BigInt(Helper.seed)%BigInt("9007199254740991")),noiseSeed(seed),randomSeed(seed),noStroke(),cO=ra(cOs),console.log(cO[0]);border=ra()<.1?"Grid":ra(["Circle","Square","Square"]),wh=ra()<.05,inv=ra()<.1,bS=ra([1,2,3,4,5]),bS=wh?5:bS,eT=ra([1,1.5,2,2.5,3]),nSC=ra([1,2,3,4,5]),ra(),nSC=20,nSM=ra([1,2,3,4]),nSF=ra([.001,.0025,.005]),sS=floor(ra(10,26))/(10/sqrt(bS)),maxLimit=floor(ra(11,26)*pow(bS,.33)),ptL=100*floor(ra(15,21))/pow(bS,.2),op=ra([70,80,90,100]),chaos=!wh&&ra()<.1,wh&&(nSM=100,maxLimit=30,nSF=0,op=90),sh="None",!wh&&bS>2&&ra()<.5&&(sh=ra(["Dark","Light","Color"]),shC=ra(cO),ptL=round(ptL/2)),mono=ra()<.1,fire=ra()<.05,rainbow=!inv&&ra()<.05;let t="Normal";rainbow?(mono=!1,fire=!1,t="Rainbow"):fire?(mono=!1,t="Fire"):mono&&(t="Monochrome"),e.setMetadata?.("Colors",t),e.setMetadata?.("Inversion",inv?"Yes":"No"),e.setMetadata?.("Border",border),e.setMetadata?.("Density",100*round(ptL/100)),e.setMetadata?.("Size",["Tiny","Small","Medium","Large","Huge"][bS-1]),e.setMetadata?.("Edge Thickness",eT),e.setMetadata?.("Whipped",wh?"Yes":"No"),e.setMetadata?.("Chaos",chaos?"Yes":"No"),e.setMetadata?.("Shadow",sh),nSC*=.0025,nSM*=.001,mono?cO=["#eee","#bbb","#888","#555","#111"]:"
artDescriptionstring="Beautiful blades of grass weave through a flowing field.
Press "o" to switch orientations.
Press "h" to render a higher resolution version"