maze.js 811 Bytes
































s0.initImage("/home/pln/Work/Hydra/zephyr/maze.png")
s1.initImage("/home/pln/Work/Hydra/StarryNights/img/september-13-2019-arches-cluster.jpg")
// s1.initCam(1)
src(s0)
  // .modulate(noise())
  .scale(0.7)
  // .repeatX(2)
  .scroll(0,0.13)
  .out(o0)
src(o0)
  .add(src(s1)
    .scale(() => 0.6 + 0.2 * Math.sin(time/10))
    .luma(() => 0.9 + 0.5 * Math.sin(time / 13))
    .brightness(() => -0.2 + 0.2 * Math.sin(time / 20))
  )
  .mask(src(s0).luma(0.5).invert())
.out(o1)
src(o1)
  .scale(0.9)
.out(o2)
src(o2)
.modulate(src(s0).scrollY(0.2).scale(() => 0.2 + 0.1 * Math.cos(time / 100))) // FOR 408.jpg
.modulate(src(s0).sub(src(o2).scroll(0.6)).colorama(2), 0.8)
// .scale(() => 2.5 + 0.5 * (time / 10 % 30))
.add(noise(100,0.2).luma(0.9).scale(0.5))
.out(o3)
render(o3)