Commit 3f28896c by PLN (Algolia)

Cosmos: Version online

parent eecd6aaf
s0.initImage("file:///home/pln/Work/Hydra/StarryNights/img/september-28-2019-galaxy-ngc-300.jpg") // LE COSMOS
s1.initImage("file:///home/pln/Work/Hydra/StarryNights/img/cosmos.jpg") // Par PL,
// Pour Raphael <3
// s0.initImage("file:///home/pln/Work/Hydra/StarryNights/img/september-28-2019-galaxy-ngc-300.jpg")
s0.initImage("https://git.plnech.fr/pln/Hydra/raw/eecd6aaf74b4af18af9af22a4eed8d6b201d4824/StarryNights/img/september-28-2019-galaxy-ngc-300.jpg")
// s1.initImage("file:///home/pln/Work/Hydra/StarryNights/img/cosmos.jpg")
s1.initImage("https://git.plnech.fr/pln/Hydra/raw/eecd6aaf74b4af18af9af22a4eed8d6b201d4824/StarryNights/img/cosmos.jpg")
src(s0) src(s0)
// .scale(2, 1) // .scale(2, 1)
.out(o0) .out(o0)
...@@ -10,7 +16,7 @@ src(o0) ...@@ -10,7 +16,7 @@ src(o0)
src(o1) src(o1)
.mult( .mult(
src(o1) src(o1)
.scale(() => 0.8 + 0.4 * Math.abs(Math.sin(time *2) % 30 / 30)) .scale(() => 0.8 + 1.4 * Math.abs(Math.sin(time / 200)))
.luma(0.7) .luma(0.7)
.thresh(() => 0.84 + 0.1 * Math.sin(time / 20)) .thresh(() => 0.84 + 0.1 * Math.sin(time / 20))
// , 0.7 // , 0.7
...@@ -19,23 +25,20 @@ src(o1) ...@@ -19,23 +25,20 @@ src(o1)
// Phase 3: Que les vents célestes te portent // Phase 3: Que les vents célestes te portent
src(o2) src(o2)
.blend(src(o1).scale(0.9).mask(shape(4).scale(3.3)) .blend(src(o1).scale(0.9).mask(shape(4).scale(3.3))
.luma(() => 0.5 + 0.15 * Math.sin(time*0.65)) .luma(() => 0.5 + 0.5 * Math.sin(time / (28 * 9)))
, () => 0.4 + 0.3 * Math.sin(time)) , () => 0.4 + 0.3 * Math.sin(time / 28))
.add(src(s1) .add(src(s1)
.scale(0.1) .scale(0.1)
.contrast(0.5) .contrast(0.5)
// .mask(shape(4).scale(0.85)) // .mask(shape(4).scale(0.85))
.modulate( .modulate(
// osc(1, () => 0.35 + 0.35 * Math.sin(time/2)) noise(() => 11 - 5 * ((time/200) % 5), 0.01)
// osc(() => ((time / 10) % 150),0.002)
// src(o1)
noise(() => 11 - 5 * ((time/2000) % 5), 0.01)
) )
.invert() .invert()
.luma(0.5) .luma(0.5)
.scale(3.7) .scale(3.7)
.mask(shape(4).scale(() => 1,4 + 1.2 * Math.abs(Math.sin(time / 13)))), .mask(shape(4).scale(() => 1,4 + 1.2 * Math.abs(Math.sin(time / 13))))
() => 0.2 * ((time / 1989) % 10) , () => 0.2 * ((time / 1989) % 10)
) )
.out(o3) .out(o3)
render(o3) render(o3)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment