PLN

PLN

Tulipes, ou Avril

// TULIPES
// s0.initImage("/home/pln/Work/Hydra/img/tulipes.jpeg")
s0.initImage("https://git.plnech.fr/pln/Hydra/img/tulipes.jpeg")

src(s0)
  // .modulate(noise())
  .scale(0.99)
  .out(o0)
src(o0)
  .scale(() => 2 + 0.5 * a.fft[0])
  .scroll(() => 2 + 0.15 * a.fft[1] - 0.05 * time / 2)
  .add(src(s1)
    .scale(() => 1.2 + 0.2 * Math.sin(time/3))
  )
  .mask(src(s0)
      .scale(() => 0.9 + 0.03 * Math.sin(time / 20))
      .luma(() => 0.5 + 0.24 * Math.sin(time / 40))
    // .invert()
  )
.out(o1)

src(o0).scale(1.2)
  .scale(() => 1.8 - 0.3 * a.fft[3])
  .add(noise(100,0.2)
    .luma(() => 0.86 + 0.1 * Math.sin(time/13))
    .thresh(() => 0.66 + 0.3 * Math.sin(time/93)).scale(0.5),
     () => 0.9
  )
.out(o2)

src(o2)
.blend(src(o1)
  .colorama(0.002)
  .hue(0.4)
       .rotate(() => (time/1933 % 360))
         , () => 0.2 + 0.4 * Math.sin(time / 4))
.add(src(o1).hue(-0.4).modulate(src(o2).scale(0.99)))
.brightness(- 0.2 + 0.2 * Math.sin(time / 93))
.saturate(1.25)
.out(o3)
// render()
render(o3)

a.show()
a.setSmooth(0.8)
Go Back