Hi all, I’ve just started playing with Hydra.
The first thing I saw was naoto’s p5 demo, where a draw function was used to draw to a canvas object, instead of the whole screen.
Am wondering if similar is possible about different ways to do similar using Hydra & it’s functions, by chaining, maybe with buffers… am guessing the modulateFunctions will be required to achieve.
Also trying to understand alternate approaches, eg .color(1,0,0)
using r()
, if they can be equivalent, as well as what r() does exactly…
osc(60, 0.1, 1.5)
.layer(gradient()
// .r(1) // toggle commenting to "a|b test"
).out(o0)
shape().mult(solid(1,0,0)).out()
appears equivalent to shape().color(1,0,0).out()
but there may differences, depending on the what the transform is acting on.
I started with the solid() method, looking for valid values for alpha, to understand how that affects the output, but am still looking for more info on valid values.
solid( r, g, b, a = 1 )
alpha function not documented
Also I tried playing with bpm
, to see if it’s equivalent to speed, and whether fast() factored in both speed and performance… eg if bpm default is 60 and speed 1, then bpm 30 and speed 0.5 == 25% playback… seems bpm doesn’t affect osc() speed, so still looking for how bpm works.
bpm example isn’t clear how bpm is being used, appears examples just illustrate different osc-speeds from the osc sync value
// change array speed
bpm = 60 //changing this appears to do nothing!?!
osc(60,0.1,[0,1.5]).out(o0)
dump