PLN

PLN

Feuilles Vivantes

// Feuilles vivantes
// Par PLN
// Basé sur une photo de Chris Lawton : https://unsplash.com/photos/5IHz5WhosQE
//
// Pour Pierre

s0.initImage("https://images.unsplash.com/photo-1477414348463-c0eb7f1359b6?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2670&q=80")

src(s0)
.scrollX(-0.1)
.out(o0)

src(o0)
  .modulate(o2)
  .scale(() => 1 + 0.01 * Math.sin(time / 20))
  .out(o1)

src(o1)
  .scale(1.0009)
  .out(o2)

src(o2)
.scale(() => 1.05 + 0.2 * Math.sin(time / 23))
.luma(() => 0.1 + 0.7 * (Math.sin(time /100)))
.blend(src(o2)
  .modulateRotate(src(o3).scale(() => 1 + 19 * Math.sin(time / 20)))
  .scale(() => 0.4 + 0.05 * Math.sin(time / 80))
  , 0.2)
.out(o3)

render(o3)
Go Back