By Yiler Huang
We had 5 Hydra presentations this semester (6 if including the one we showed to the public), they are:
The ones below are my favorite ones.
modulateKaleid() is a useful function that could apply kaleid() effect to different elements based on the texture you choose. The first argument of the function is the texture, and the second one is the strength of the effect. In the first examples above, I used a voronoi texture on the oscillation.
initCam is a function that activates your web cam and put the things it captured into the Hydra editor. In order to show what you camera captured, you need to use the src() function to source the camera resource.
If you want it to work on Dokuwiki, you need to add allow=“camera;microphone” in your iframe code.
here is the API of Hydra
() ⇒ a.fft[pitch] is a function that transform the volume of the voice your microphone got into numbers. The pitch argument could decide how high the pitch you want the available sound input to be. I learned this function from the API above.
setScale() sets the scale of a.fft, the smaller the number is the bigger the output will be.
modulatePixelate() applies the texture you want onto a pixelate effect, so you can create pixelate effects that doesn't look blocky.