Description
JAN. 29 (credit: Melissa Wiederrecht & Camille Roux)
PROMPT: Signed Distance Functions (if we keep trying once per year, eventually we will be good at it!).
Made with code in Hydra
/*
Signed Geometric Distance
by Daniel Oropeza
*/
A = window.innerHeight / window.innerWidth
voronoi(1)
.pixelate(7, 7)
.rotate(1, 0.01)
.color(0, -1, 1)
.add(
shape(100, 0.95, 0.0)
.scale(1, A, 1)
.repeat(15, 15)
)
.blend(
shape(100, 0.9)
.scale(1, A,1)
.color(-1, 1, 0)
.scrollY(0, 0.1)
.invert()
)
.add(
shape(100, 0.7, 0.0)
.scale(1, A,1)
.repeat(15, 15)
.color(1, 1, -1)
.scrollY(0.5, 0.03)
.scrollX(0.009)
)
.diff(osc(25, -0.01)
.thresh()
.kaleid(4)
.scale([1, 0.3].smooth()
.fast(.35))
.mask(shape(4, 0.8, 0.0)
.scroll(0.25, 0.0))
.modulateScale(gradient()
.r()
.scale(2)
.modulate(noise(1)))
.color(1, 1, 0)
.hue(0.2))
.diff(osc(25, 0.01)
.thresh()
.kaleid(4)
.scale([1, 0.3].smooth()
.fast(.45))
.mask(shape(4, 0.8, 0.0)
.scroll(-0.25, 0.0))
.modulateScale(gradient()
.r()
.invert()
.scale(2)
.modulate(noise(1)))
.color(-1, 0, 1)
.hue(0.9))
.diff(osc(50, -0.1)
.thresh()
.kaleid(4)
.rotate(() => Math.sin(time))
.mask(shape(4, 0.9, 0.0))
.color(0.5, 0.1, 1.1)
.hue(0.1))
.mult(osc(1, 0.1, 2).color(1, 0.5, -1))
.diff(
shape(4, 0.95)
.repeat(10, 10)
.scale(0.8, 0.6, 1)
)
//.modulate(noise(5))
.mult(shape(4,.92))
.layer(shape(4,1).color(0,0,1).mult(shape(4,.9).invert().luma(.5).thresh()))
.modulateScale(
shape(2, [0.2, 0.9].ease().fast(0.15))
.repeat()
.rotate(3, 0.1)
.thresh(),
4
)
.hue(() => time * 0.1)
.add(noise(innerWidth*2),.25)
.out();
src(o0)
.add(src(o0).diff(o0, () => {return ((frame % 800) == 0) ? 1 : 0.01;})
.posterize(() => {return ((frame % 900) == 0) ? 1 : 10+Math.sin(frame % 300)*200;},2)
.colorama(() => {return ((frame % 900) == 0) ? 1 : 0.001;})
.saturate(() => {return frame++;})
.scrollY(0.001)
.contrast(1.01)
.rotate(0.001)
.scale(1.01))
.out(o2)
render(o2)