Interactive piece created with code in Hydra (hydra.ojack.xyz). Move the mouse to interact with the visual.
Hydra is a toolkit for live coding of network visuals created by Olivia Jack (ojack.xyz)
/*
Hypnotic Modulated
by Daniel Oropeza
Tw:@Ferdoropeza
*/
osc(50, 0.1)
.thresh()
.kaleid(() => 4 - mouse.x / 5)
.repeat()
.rotate(Math.PI / 4)
.scroll(
() => Math.cos(time * 0.1),
() => Math.round(time * 0.01)
)
.modulateHue(
src(o0)
.scale(1.01)
.rotate(() => mouse.x / 1000, 0),
8
)
.modulate(
gradient()
.pixelate(2, 2)
.brightness(-0.5)
.color(0.8, 1)
.mult(
noise(8, 0.1).pixelate(2, 2).brightness(1).posterize(4, 1).brightness(-1),
-0.15
)
.contrast(1.25)
.scale(0.3)
.diff(shape(4, 0.3, 1e-6).pixelate(10).repeatY(6.0, 0.0))
.scale(() => 2 - mouse.x / 10, 0.8)
.modulateScale(noise(8, 0.2).pixelate(8, 8).brightness(1).posterize(3, 1))
)
.out();
src(o0)
.scrollY(0.9, 0.01)
.modulateScrollY(osc(20, 0.1).pixelate(4).repeatY(9.0, 0.0))
.rotate(() => mouse.x / 1100)
.contrast(1.01)
.out(o1);
render(o1);