diff --git a/StarryNights/SeptemberGalaxy.js b/StarryNights/SeptemberGalaxy.js index 117f938..bee79b9 100755 --- a/StarryNights/SeptemberGalaxy.js +++ b/StarryNights/SeptemberGalaxy.js @@ -1,14 +1,42 @@ -s0.initImage("file:///home/pln/Work/Hydra/StarryNights/img/september-28-land.jpg") -src(s0).out(o0) +s0.initImage("file:///home/pln/Work/Hydra/StarryNights/img/september-28-2019-galaxy-ngc-300.jpg") +s1.initImage("file:///home/pln/Work/Hydra/StarryNights/img/cosmos.jpg") +src(s0) + // .scale(2, 1) + .out(o0) src(o0) .blend(noise(100,0.6),0.06) .out(o1) - +// Phase 2 src(o1) - .blend( - noise(200).thresh(0.84) - , 0.45 + .mult( + src(o1) + .scale(() => 0.8 + 0.4 * Math.abs(Math.sin(time *2) % 30 / 30)) + .luma(0.7) + .thresh(() => 0.84 + 0.1 * Math.sin(time / 20)) + // , 0.7 ) .out(o2) - - render(o2) +// Phase 3: Que les vents célestes te portent +src(o2) +.blend(src(o1).scale(0.9).mask(shape(4).scale(3.3)) + .luma(() => 0.5 + 0.15 * Math.sin(time*0.65)) +, () => 0.4 + 0.3 * Math.sin(time)) +.add(src(s1) + .scale(0.1) + .contrast(0.5) + // .mask(shape(4).scale(0.85)) + .modulate( + // osc(1, () => 0.35 + 0.35 * Math.sin(time/2)) + // osc(() => ((time / 10) % 150),0.002) + // src(o1) + noise(() => 11 - 5 * ((time/2000) % 5), 0.01) + ) + .invert() + .luma(0.5) + .scale(3.7) + .mask(shape(4).scale(() => 1,4 + 1.2 * Math.abs(Math.sin(time / 13)))), + () => 0.2 * ((time / 1989) % 10) +) +.out(o3) +render(o3) +// render() diff --git a/StarryNights/img/cosmos.jpg b/StarryNights/img/cosmos.jpg new file mode 100644 index 0000000..f36e64f Binary files /dev/null and b/StarryNights/img/cosmos.jpg differ diff --git a/StarryNights/img/cosmos.png b/StarryNights/img/cosmos.png new file mode 100644 index 0000000..35ca7f7 Binary files /dev/null and b/StarryNights/img/cosmos.png differ