tuyau_bleu.js 655 Bytes
s0.initImage("file:///home/pln/Work/Hydra/biarritz/tuyau.jpeg")

src(s0).out(o0)

a.show()
a.setSmooth(0.2)
a.setBins(4)

src(o0)
  .scroll(() => 0.4 * Math.cos(time / 30), () => 0.05 * Math.sin(time / 13))
  .contrast(1.92)
  // .brightness(() => -0.2 + 0.15 * Math.cos(time / 22))
  .brightness(0.1)
  // .luma(() => 0.2 + 0.1 * Math.sin(time/20))
  .out(o1)

src(o1)
  .scale(0.54 )
  .kaleid(() => 3 + 4 * Math.cos(time / 30) + (time / 100) % 5)
  .rotate(() => ((time / 60) % 360))
  .out(o2)


src(o2)
  .scale(() => 2 + 1.5 * Math.cos(time / 12))
  .scale(() => 0.9 + 0.2 * a.fft[0])
  .hue(() => 0.14 * Math.sin(time / 40))
  .out(o3)

render(o3)