Piece created with code in Hydra for #HENreunion
/*
Pacman World
by Daniel Oropeza
*/
solid()
.add(osc(100, 0.1)
.thresh()
.rotate()
.kaleid(3)
.modulateScale(gradient()
.g(7)
.diff(
shape(100, 0.29, 0.34)
.scale(1.1, 0.6)
.r()
.scale(1.4)
.kaleid(4)
.rotate(Math.PI, 0.01)
.scrollY(-0.05, 0.1)
)
.color(1, 2)
))
.scrollX(-0.001)
.out(o0);
osc(50, -0.1)
.thresh(0.9)
.kaleid(4)
.repeat()
.rotate(Math.PI / 4)
.scroll(() => Math.cos(time * 0.1), () => Math.round(time * 0.01))
.modulateHue(src(o1)
.scale(1.01)
.rotate(), 8)
.modulate(
gradient()
.pixelate(2, 2)
.brightness(-0.5)
.color(.8, 1)
.mult(noise(8, .1)
.pixelate(2, 2)
.brightness(1)
.posterize(4, 1)
.brightness(-100), -0.15)
.contrast(1.25)
.scale(.3)
.diff(shape(4, 0.3, 1e-6))
.scale(1, .8)
.modulateScale(noise(8, .2)
.pixelate(8, 8)
.brightness(1)
.posterize(3, 1)))
.out(o1);
src(o1)
.contrast()
.mask(shape(4, 0.5, 0)
.scale(1, 0.3)
.modulate(noise(5, 0.1)
.rotate()
.pixelate(150, 50))
.colorama(100))
.modulateScale(osc(11, 0)
.g(8)
.thresh(0.3, 0.9)
.rotate(11), [0.1, 0.9].ease('sin')
.fast(.25))
.out(o2)
src(o2)
.repeat([1.001, 1.01, 0.999], 0.999)
.rotate(0, 0.000001)
.layer(src(o1)
.luma(0.1, 0.1)
.thresh(0.9, 0.1))
.invert(-1)
.color(2, 2, 2)
.colorama(0.000001)
.out(o2);
render(o2);