Interactive piece created with code in Hydra (hydra.ojack.xyz). Click the mouse to change the saturacion of the feedback. HTML Format
Hydra is a toolkit for live encoding of network images created by Olivia Jack (ojack.xyz)
/*
Triangle of providence
by Daniel Oropeza
@ferdoropeza
*/
var click = 0;
document.body.addEventListener('mousedown', function(){ click = 1; }, true);
document.body.addEventListener('mouseup', function(){ click = 0 }, true);
src(o0)
.modulateScale(
src(o0).rotate().scale(1.01).hue(),
0.1,
0.95
)
.layer(
osc(29, 0.1, 2)
.modulate(osc(1, 1), 0.5)
.kaleid(4)
.mask(shape(3, [0.1,0.88].smooth().fast(.25), 0.001))
.scale(1, 0.5, 1)
)
.out(o0);
src(o0)
.saturate(()=>1-click/1)
.modulateScale(
src(o0).rotate().scale(1.01).hue(),
0.1,
0.95
)
.layer(
osc(29, 0.1, 2)
.modulate(osc(1, 1), 0.5)
.kaleid(4)
.mask(shape(3, [0.1,0.88].smooth().fast(.25), 0.001))
.scale(1, 0.5, 1)
)
.out(o0);