{"name":"600k","description":"look to the sky\nlook to each other\nand look inward\n\nwe all have different experiences and perception but mine do not invalidate yours. i hope you feel the same way.\n\ni love you fam.\nhappy solstice 600k 2021!\n🖤🖤🖤🖤🖤\n\n/*\n600k\n\n\tby thingticketNFT\n\t@thingticket\n\tcreated with hydra (https://hydra.ojack.xyz/) and p5.js (https://p5js.org/)\n\t\nthe following code is contained in the index.js file of this objkt. the code is not able to be run on the hydra website but i am including it here. the folder structure for this objkt is:\n\n600k.zip\n-index.html\n-index.js\n-hydra-synth.js\n-p5.js\n-style.css\n\nhydra-synth.js and p5.js are open-source libraries available at the websites listed above. use developer tools (F12) to see what the index.html and style.css files look like if you are interested.\n\n*/\n\n\nspeed=.65\n\nlet hydra, hydraCanvas;\nhydraCanvas = document.createElement(\"canvas\");\nhydraCanvas.width = window.innerWidth\nhydraCanvas.height = window.innerHeight\nhydraCanvas.id = \"hydraCanvas\";\nhydraCanvas.style.position = \"absolute\";\nhydraCanvas.style.zIndex = 2;\nhydraCanvas.style.top = 0;\nhydraCanvas.style.left = 0;\nhydraCanvas.getContext(\"webgl\", { preserveDrawingBuffer: false });\nhydra = new Hydra({\n  canvas: hydraCanvas,\n  detectAudio: false,\n  enableStreamCapture: false,\n\n});\ndocument.querySelector(\".placeholder\").appendChild(hydraCanvas)\n\n\n\n\n\nvar elt;\n\nconst sa = ( p ) => {\n\nlet x = 400;\nlet y = 400;\n  \n\tp.setup = () => {\n\tlet canvas = p.createCanvas(hydraCanvas.width, hydraCanvas.height);\n\n\t\telt = canvas.elt;\n\t\ts0.init({src: elt})\n\t\tcanvas.hide();\n\t\ttextArray = [\"ILY\",\"ILY\",\"ILY\"]\n\t\ttextArray2 = [\"\",\"600k\",\"600k\",\"600k\",\"600k\"]\n\t\ttextArray3 = [\"\",\"solstice\",\"solstice\",\"solstice\"]\n\t\ttextArray4 = [\"\",\"2021\",\"2021\",\"2021\",\"2021\",\"2021\"]\n\t\tp.textSize(letterSize)\n\t\n\t\tp.draw = () => {\n\t\t\tp.clear()\n\t\t\tindex = Math.floor(time*.5%textArray.length)\n\t\t\tindex2 = Math.floor(time*.5%textArray2.length)\n\t\t\tindex3 = Math.floor(time*.5%textArray3.length)\n\t\t\tindex4 = Math.floor(time*.5%textArray4.length)\n\t\t\tp.fill(1,1,1)\n\t\t\tp.text( textArray2[index2], 0.43*hydraCanvas.width, 0.42*hydraCanvas.height)\n\t\t\tp.text( textArray[index], 0.49*hydraCanvas.width, 0.5*hydraCanvas.height)\n\t\t\tp.text( textArray3[index3], 0.53*hydraCanvas.width, 0.58*hydraCanvas.height)\n\t\t\tp.text( textArray4[index4], 0.48*hydraCanvas.width, 0.66*hydraCanvas.height)\n\n\t\t}\n\t};\n};\n\n\nnew p5(sa);\n\n\n\nlet letterSize \nif (hydraCanvas.width <= hydraCanvas.height) {\nletterSize = .05*hydraCanvas.width;\n} else if (hydraCanvas.width > hydraCanvas.height) {\nletterSize = .05*hydraCanvas.height;\n} else {\nletterSize = \"not a valid option\"\n}\n\n\n\nsrc(o0)\n\t.layer(shape(300,0.005,0.0001)\n\t\t.color(1,1,1)\n\t\t.scrollX(-0.14,0)\n\t\t.scrollY(0.08,0)\n\t\t)\n\t.add(shape(300,0.005,0.0001)\n\t\t.color(1,1,1)\n\t\t.scrollX(-0.125,0)\n\t\t.scrollY(0.02,0)\n\t\t)\n\t.add(shape(300,0.005,0.0001)\n\t\t.color(1,1,1)\n\t\t.scrollX(-0.1,0)\n\t\t.scrollY(-0.05,0)\n\t\t)\n\t.add(shape(300,0.005,0.0001)\n\t\t.color(1,1,1)\n\t\t.rotate(()=>time/40)\n\t\t.scrollY(-0.19,0)\n\t\t.scrollY(()=>.3*Math.sin((time/20)-.2),0)\n\t\t.scrollX(()=>.2*Math.cos((time/20)-.2),0)\n\t\t)\n\t.scale(2.4)\t\n.out(o0)\n\nsrc(o1)\n\t.diff(src(o0))\n\t.add(src(s0)) \n\t.scale(()=>.999+time/15000)\n\t.rotate(0,()=>.001*Math.pow(.03*time,1.5))\n\t.pixelate(500,500)\n.out(o1)\nrender(o1)","tags":["600k","hydra","p5js"],"symbol":"OBJKT","artifactUri":"ipfs://QmPw3Ykw8f5gx935CDtL5eguQdsycrjD3ze77GfVxeQe4D","displayUri":"ipfs://QmXXRysXbv2fcLZ1CK9ca3dikUC4Qy1q25oHZevMJVb3Ha","thumbnailUri":"ipfs://QmNrhZHUaEqxhyLfqoq1mtHSipkWHeT31LNHb1QEbDHgnc","creators":["tz1dUJunwTwTanpzpUudkbprNGScbAZJawUn"],"formats":[{"uri":"ipfs://QmPw3Ykw8f5gx935CDtL5eguQdsycrjD3ze77GfVxeQe4D","mimeType":"application/x-directory"}],"decimals":0,"isBooleanAmount":false,"shouldPreferSymbol":false}