// Pour Églantine <3
// Happy 22
s0.initImage("/images/hydra/eglantine22-july-6-2019-planetary-nebula-ngc-5189.jpg")
src(s0)
.scale(() => 1 + 0.5 * Math.sin(time/(6*5*2003)))
.out(o0)
src(o0)
.modulate(src(s0)
.scale(() => 1.5 + 0.5 * Math.sin(time/6))
)
.out(o1)
src(o1)
.blend(
src(s0)
.modulateScale(voronoi(10,0.013))
, () => 0.5 + 0.3 * Math.sin(time/1970) // TODO Fix year?
)
.blend(
src(o1).mult(voronoi(() => (time % 100),0.1).thresh(0.5))
.rotate(() => (time/2003 % 360))
, () => Math.sin(time/10)
)
.out(o2)
src(o2)
.brightness(-0.1)
.contast(1.1)
.out(o3)
render(o3)