{"name":"GREED 2.0","description":"/*\nGREED version 2.0\n\npermeating moneyed thoughts\nconsuming basic needs\npolluting every water source\nwith tiny plastic beads\n\nintertwined with instinct\nadapted to survive\nself-created misery\na perpetuated lie\n\nand when you go to wipe the scourge\nfrom any path you choose\nyou find it lurking in the background\na most peculiar ruse\n\n\tby thingticketNFT\n\t@thingticket\n\tcreated with hydra (https://hydra.ojack.xyz/) and p5.js (https://p5js.org/)\n\nnon-generative alternate version of GREED (https://www.fxhash.xyz/generative/5738). free gift.\n\nmove the mouse or tap screen to interact and zoom. press s to take a screenshot.\n\n*/\n\n\ndocument.addEventListener(\"keyup\", (event) => {\n    if (event.key === \"s\" || event.key === \"S\") {\n        event.preventDefault();\n        screencap();\n    }\n})\n\nspeed=0.25\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});\n\ndocument.querySelector(\".placeholder\").appendChild(hydraCanvas)\n\ns0.initImage(\"./greed.jpg\")\n\nsrc(s0)\n\t.invert(1)\n\t.scrollY(0,()=>0.05*Math.sin(2*Math.sin(Math.pow(1.5*Math.cos(time),2))))\n\t.scale(()=>0.0001+0.0005*Math.pow(5*Math.abs(mouse.x-Math.sin(1.2*time)),.9))\n\t.rotate(()=>0.004*mouse.y,-.9)\n.out(o0)\n\n\nsrc(o1)\nosc(4,1,2)\n\t.color(1,0.2,0.15)\n\t.mult(shape(1,0.5,0.001)\n\t.repeat(()=>1000-950*Math.sin(time),()=>1000-950*Math.sin(time)))\n\t.diff(osc(100),1.2,0)\n\t\t.rotate(-.3,-.1)\n\t\t.modulateScale(osc(20)\n\t)\n.out(o1)\n\nsrc(o2)\n\t.diff(src(o1)\n\t\t.scale(()=>1+0.0005*Math.pow(5*Math.abs(mouse.x-Math.sin(1.2*time)),.2))\n\t\t.mult(src(o0))\n\t\t.pixelate(()=>2000-1500*Math.abs(Math.cos(time)),()=>1500-1499*Math.abs(Math.sin(Math.sin(Math.cos(Math.tan(time/4))))))\n\t\t.saturate(4)\n\n\t)\n.out(o2)\n\nrender(o2)","tags":["interactive","hydra","wordart","glitch"],"symbol":"OBJKT","artifactUri":"ipfs://QmSvMoDd6y1tZYA1zYNgMp53iRgyyd2AdEGA12vf9EuS2d","displayUri":"ipfs://Qmez6AEhYfiBZXZEbxNtXoPrQo1tuFcD3inwQFRG25ubd2","thumbnailUri":"ipfs://QmNrhZHUaEqxhyLfqoq1mtHSipkWHeT31LNHb1QEbDHgnc","creators":["tz1dUJunwTwTanpzpUudkbprNGScbAZJawUn"],"formats":[{"uri":"ipfs://QmSvMoDd6y1tZYA1zYNgMp53iRgyyd2AdEGA12vf9EuS2d","mimeType":"application/x-directory"}],"decimals":0,"isBooleanAmount":false,"shouldPreferSymbol":false}