Piece created with code in Hydra. Hydra is a toolkit for live coding of network visuals created by Olivia Jack (ojack.xyz)
/*
Stains
by Daniel Oropeza
Tw: @ferdoropeza
*/
solid(1, 1, 1)
.mask(noise(4)
.thresh()
.rotate()
.pixelate()
.g()
.scale([1, -1, 4, 2, 0.5, 3.5, 1, 0.7])
.scrollY(0.05, 0.1)
.modulate(voronoi(20, 1, 0.5)
.scroll(({
time
}) => Math.atan.sin(time * 0.01) * 0.5, ({
time
}) => Math.radians.sin(time * 0.01) * -0.5)))
.repeat(10, 8)
.scale(() => Math.sin(time) + 2.8)
.color(() => Math.sin(time) * 0.5, () => Math.cos(time) * 0.7, () => Math.cos(time) * -1)
.colorama([0.1, 0.3, 0.5, 0.3, 0.999, 0.002].smooth(0)
.fast(.25))
.rotate(Math.sin(time))
.modulateRotate(osc(7), () => Math.PI / 1000)
.modulateScale(osc(2)
.modulateRotate(o0, .74))
.rotate([-.012, .01, -.002, 0])
.scrollY(0, [-1 / 199800, 0, 1 / 10000].fast(0.7))
.rotate(({
time
}) => time % 360)
.scrollX(0, ({
time
}) => Math.sin(time * 0.01) * 0.1)
.scrollY(0, ({
time
}) => Math.sin(time * 0.01) * 0.05)
.modulateScale(gradient()
.g(3)
.rotate(() => time / 10))
.out(o1);
src(o0)
.blend(o0, 0.011)
.modulate(o0, 0.001)
//.saturate(1.01)
.contrast(1)
.rotate(0.003)
.scale(1.01)
.layer(o1)
//.scrollX(0.0001,0.0001)
.scrollX([0.008, 0, 0.004, 0.001, -0.009])
.scrollY([0, 0.008, 0, 0.004, 0.001, 0.009])
.modulateScale(osc(1), 0.02, 1.009)
.out()
setResolution(1080,1080);