{"name":"Looping Leaf Box","description":"Interactive piece created with code in Hydra (hydra.ojack.xyz). Move the mouse to change the color palette\n\nHydra is a toolkit for live coding of network visuals created by Olivia Jack (ojack.xyz)\n\n/*\nLooping Leaf Box\nby Daniel Oropeza\nTw: @Ferdoropeza\n*/\n\np5 = new P5({ mode: \"WEBGL\" });\np5.hide();\ns0.init({ src: p5.canvas });\n\n img = p5.loadImage('https://images.pexels.com/photos/3571563/pexels-photo-3571563.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260');\n\n\np5.strokeWeight(5)\np5.draw = () => {\n  p5.background(0,0,0,0);\n  p5.rotateZ(time * 0.3);\n  p5.rotateX(time * 0.3);\n  p5.rotateY(time * 0.3);\n  p5.push();\n  p5.translate(100, 0, 100);\n  p5.stroke(0);\n  p5.push();\n  p5.texture(img);\n  p5.box(innerHeight / 1.7, innerHeight / 1.7);\n  p5.pop();\n};\n\nosc(30, 0.04, 1)\n.saturate(2)\n.hue(()=>mouse.x/100)\n.rotate()\n.pixelate()\n.scrollX(0.1,0.1)\n.luma()\n\t.color(1, 0.7, -1).hue()\n\t.modulate(osc(2), 0)\n\t.modulatePixelate(o0, 1, 10)\n\t.layer(src(s0).color(-1,1,-1).luma(0.3,0.0).hue(()=>mouse.x/1000).saturate(99)\n)\n\t.out(o0);","tags":["generativeart","creativeart","hydra","p5js","webgl","programming","interactive","ferdoropeza"],"symbol":"OBJKT","artifactUri":"ipfs://QmaLkXxVDCNmxxNYxmp5BcwzB9gh5rHCMFkraZPUXL3uZn","displayUri":"ipfs://QmTVGYKaBT2y4FzzvbL7Xs9GutPGqZTYGCja91tCJNDiuW","thumbnailUri":"ipfs://QmNrhZHUaEqxhyLfqoq1mtHSipkWHeT31LNHb1QEbDHgnc","creators":["tz2JyW132finpXHFNCSrHtcBEHRmwp5ffYks"],"formats":[{"uri":"ipfs://QmaLkXxVDCNmxxNYxmp5BcwzB9gh5rHCMFkraZPUXL3uZn","mimeType":"application/x-directory"}],"decimals":0,"isBooleanAmount":false,"shouldPreferSymbol":false}