Week 9 - Hydra and P5Live

THIS WEEK we have been tasked with making unique visuals (2) using either Hydra or P5.live, or both. It’s the first step we need to take in becoming an algorave PRO! I quite prefer hydra at the moment, so I’ll be using it for the first few visuals–I’ll probably make quite a few since they’re simple and quick to do.
NUMBER ONE - Camera and Screen Input Blend
This is pretty simple and the title makes it self explanatory. The only thing of note is that I added rotate and kaleidoscope functions to make everything look a little cooler–at least I think so.
Even though it’s in the screenshot, here’s that code (if you want to run it yourself!):
s0.initCam()
s1.initScreen()
src(s1).invert().blend(s0).rotate(1, 0.05).kaleid(5, 2).out(o0)
Did an experiment where I inverted the colors of both my screen and camera feeds and got this:
Pretty cool, me thinks.
NUMBER TWO - Matrix
I wanted to try to make the classic green scrolling text hacker type of look with Hydra and got the above image using the following code:
noise(100, 1).color(0, 1, 0).mult(osc(1250,0.1,0.01)).out(o0)
Another simple line but quite a cool look. I think I’ll go for something a little more sophisticated next.
NUMBER THREE - Trippy Flower
Since I am still relatively unfamiliar with how the different functions in Hydra interact with one another, I figured it would be a good idea to start from a random shuffled sketch and add my own changes. I found a good starting point (forgot to screenshot it or copy the code after altering it) and created the following:
gradient([0.01, 2, 0.5])
.rotate(5, 3, 5).mask(voronoi(20, 2, 10))
.colorama(0)
.invert()
.modulateScale(o0)
.modulateScale(o0,3)
.blend(o0)
.blend(o0)
.blend(o0)
.blend(o0)
.blend(o0)
.blend(o0)
.out(o0)
I changed everything about the original code, however, kept the modulateScale’s (changed the values) and the blends (added a few more to the stack) to create this piece. I think the final result is super nice to look at, and definitely not as crazy as the stuff I was making earlier in class. That was all an epileptic’s nightmare.
I’D LIKE to make one more piece in Hydra before moving on to P5.live
Spent some time tinkering with this one. Kinda ended up looking like a magic mirror of sorts:
shape(8,1,2).mult(voronoi(10000,1).blend(o0).luma()).mult(osc(6, 5, 30))
.blend(o0)
.mult(noise(2, 3))
.invert()
.blend(o0)
.modulateRepeat(noise(2,3), 5, 5, 1, 1)
.rotate(0.1, 0.2)
.blend(o0)
.modulatePixelate(noise(25,1),200)
.blend(o0)
.out(o0)
I quite like it.
P5 LIVE TIME!!
Get Drawing, Moving and Seeing with Code - Spring 2025
Drawing, Moving and Seeing with Code - Spring 2025
Jack Fleming's work for class
More posts
- Week 7 - Ecosystem Project [CONTINUED]33 days ago
- Week 6 - Ecosystem [DRAFT]40 days ago
- Week 5 - Smart Robot ALFIE47 days ago
- Week 4 - Generative Daily Project54 days ago
- Week 3 - Creature Class61 days ago
- Week 2 - Iceberg Simulation68 days ago
- Week 1 - A LOGO Crazy Quilt75 days ago
Leave a comment
Log in with itch.io to leave a comment.