home/ atoms/ hydra-in-estuary-source-chain

Hydra sources inside Estuary are chained with dot-notation and sent to outputs with .out()

Estuary embeds the Hydra video-synth language (select ‘Hydra’ in a code zone). The syntax is identical to standalone Hydra: start with a source (osc(), noise(), shape(), solid(), gradient(), voronoi()), chain geometry/colour/blend/modulate transforms with dot notation, and route to an output buffer with .out(o0). Multiple buffers (o0o3) can be rendered simultaneously. render() by default shows all four. Import camera/video/image with initCam(), initVideo(), initImage(). In Estuary, the speed global variable controls playback rate of time-dependent functions.

Examples

osc(60,0.1,0.0).color(1,0,0).out(o0)
noise(10,0.1).modulate(osc(4),0.5).out(o1)
render()

Assessment

Explain the difference between .blend(t, 0.5) and .modulate(t, 0.5) in Hydra, and write an example of each applied to an osc() source.

“osc(fequency, sync, rgb-offset) // defaults: 60.0, 0.1, 0.0”
corpus · estuary-collaborative-browser-live-coding-platform-networked · chunk 22