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 keyPressed(){"s"==key?noLoop():"c"==key&&loop()}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...'."),drawSnakes=()=>{Helper.setMetadata?.("speed",rand_speed);for(var e=e=>noise(1e5*e+frameCount/rand_speed),o=0;o<rand_circ;o++)"b_n_w"==colors?fill(random(255)):"rainbow"==colors?fill(random(255),random(255),random(255)):"fire"==colors?fill(255,random(255),random(25),color_alpha):fill(255*noise(1e4+100*o),255*noise(2e4+100*o),255*noise(3e4+100*o)),circle(e(100*o+1)*windowWidth,e(100*o+2)*windowHeight,(e(100*o+3)-.5)*windowWidth/4)},windowResized=()=>{resizeCanvas(windowWidth,windowHeight)},draw=()=>{drawSnakes()},setup=()=>{const e=Number(BigInt(Helper.seed)%BigInt("9007199254740991"));noiseSeed(e),randomSeed(e),createCanvas(windowWidth,windowHeight),speed=random(),speed>.95?(rand_speed=int(random(1,17)),Helper.setMetadata?.("speedtype","ultra_fast")):speed>.75?(rand_speed=int(random(18,99)),Helper.setMetadata?.("speedtype","fast")):(rand_speed=int(random(100,170)),Helper.setMetadata?.("speedtype","normal")),rand_circ=int(random(1,27)),Helper.setMetadata?.("circles",rand_circ),1==rand_circ?worms="solo":rand_circ<7?worms="team":rand_circ<14?worms="big_group":worms="horde",Helper.setMetadata?.("worms",worms),random(1)<.1&&(noStroke(),Helper.setMetadata?.("noStroke","True")),enable_blend=random(),enable_blend<.1?(BLENDS=[HARD_LIGHT,SOFT_LIGHT],BLEND=random(BLENDS),blendMode(BLEND),Helper.setMetadata?.("blendMode",BLEND),noStroke(),Helper.setMetadata?.("noStroke","True")):Helper.setMetadata?.("blendMode","None"),COLOR_CHOSER=random(),COLOR_CHOSER>.94?(colors="rainbow",Helper.setMetadata?.("color","rainbow")):COLOR_CHOSER>.89?(colors="b_n_w",Helper.setMetadata?.("color","black_and_white")):COLOR_CHOSER>.85?(colors="fire",Helper.setMetadata?.("color","fire"),color_alpha=115,blendMode(SOFT_LIGHT),noStroke(),Helper.setMetadata?.("noStroke","True")):(colors="standard",Helper.setMetadata?.("color","standard"))};"
artDescriptionstring="Glitched worms is an animated collection of 512 colored worms, crawling around the canvas. They come with several traits. Some are rarer than others. Watch the colors unfold as you stare at the art in evolution.
Let your imagination fly. What do you see? A brain? A flower? A dead animal? Worms?
Observe the randomness unfold. Each design is unique and cannot be repeated.
Press s to stop animation. Press c to continue animation.
You can even right click and save image, exactly at your favorite moment. And do try it out on a big screen."