home/ atoms/ hydra-source-functions

Hydra's six built-in source functions each generate a distinct base texture type

Hydra provides six signal-generating source functions: osc(frequency, sync, offset) produces smooth black-to-white oscillations; noise(scale, offset) produces 2D Perlin noise (outputting both positive and negative values); voronoi(scale, speed, blending) produces Voronoi cell patterns; shape(sides, radius, smoothing) produces polygon forms; gradient(speed) produces a gradient sequence; solid(r, g, b, a) fills the screen with a flat color. Each accepts numeric parameters corresponding to its generative model. Sources are always the starting point of a chain — they cannot be appended to another function’s output without a blend or modulate operator.

Examples

osc(40, 0.09, 0.5).out()       // oscillator
noise(10, 0.1).out()           // perlin noise
shape(5, 0.3, 0.01).out()     // pentagon
solid(0.2, 0.4, 0.8).out()   // flat blue

Assessment

For each of the six source functions, state what kind of image it produces and its primary numeric parameter. Given a visual description (‘smooth sine-wave stripes’), name the appropriate source.

“the `noise` generator outputs both positive and negative values”