diff --git a/StarryNights/Camille15.js b/StarryNights/Camille15.js index 02cd286..4015071 100755 --- a/StarryNights/Camille15.js +++ b/StarryNights/Camille15.js @@ -40,7 +40,7 @@ src(o0).modulate(o1, ).out(o2) src(o2) -.scale(() => 0.991 + 0.4 * Math.sin(time / periodeTelescope)) +.scale(() => 0.991 + 1.4 * Math.sin(time / periodeTelescope)) .modulate(src(o3), () => 0.04 * Math.sin(time / periodeBlendModulate)) .blend(src(o3), () => 0.15 + 0.85 * Math.sin(time / periodeBlend)) .out(o3) diff --git a/StarryNights/Edge.js b/StarryNights/Edge.js index ff8c5f0..26a3e25 100755 --- a/StarryNights/Edge.js +++ b/StarryNights/Edge.js @@ -23,14 +23,18 @@ src(o0) src(o1) .diff(src(o2)) -// .blend(src(o2) -// .modulate(shape(30) - // .scale(() => 0.4 + Math.sin(time /20) * 0.059, 0.88) - // .rotate(() => time/4 % 360) - // .scrollX(-0.02) -// ) -// ) +.blend(src(o2) +.modulate(shape(30) + .scale(() => 0.6 + Math.sin(time /20) * 0.059, 0.88) + .scroll(0.0125,0.0125) + .rotate(() => time % 360) + .scrollX(-0.02) +) +) .contrast(1.1) +.scale(() => 1.52 + 0.4 * Math.sin(time/200)) +.add(noise(100,0.02).thresh(0.9)) +.rotate(() => -time / 25 % 360) .out(o3) render(o3) diff --git a/StarryNights/GaLactic.js b/StarryNights/GaLactic.js index 3fe36b0..ec6dead 100755 --- a/StarryNights/GaLactic.js +++ b/StarryNights/GaLactic.js @@ -1,10 +1,10 @@ + // From a picture of Galaxy Nasa 724203 // Private share: https://nech.pl/nights-galactic s0.initImage("file:///home/pln/Work/Hydra/StarryNights/img/724203.jpg") src(s0).out() - src(o0) .blend(o0) .blend(src(o1).scale(0.5,0.9).rotate(() => Math.sin(time/900) * 360), 0.25) @@ -18,9 +18,10 @@ src(o2) src(o1) .blend(o0) + .rotate(() => (time % 360 / 10)) .blend(o1,0.3) - .brightness(0.15).contrast(1.4) - .scale(() => 1.5 + Math.sin(time/70) * 0.6) + .brightness(0.15).contrast(1.7) + .scale(() => 1.5 + Math.sin(time/14) * 0.6) .out(o3) render(o3) diff --git a/StarryNights/aurores.js b/StarryNights/aurores.js new file mode 100644 index 0000000..6f049ef --- /dev/null +++ b/StarryNights/aurores.js @@ -0,0 +1,37 @@ +s0.initImage("///home/pln/Work/Hydra/img/aurores.jpeg") + +src(s0).scale(0.9,0.5) + .scroll(0,0.05) + .scale(1.13) + .out(o0) + +// Tableau 1: Camille sur son bateau +src(o0) +.blend(src(o0) + // EFFET: DEGRADATION MOIREE + // .diff(src(o1).scale(() => 0.99 + 0.1 * Math.sin(time / 1000))) + // EFFET: Borealis + .add( + src(s0) + ) + .modulate( + osc(() => 5 + 4 * Math.sin(time/120),0.0).rotate(() => (time/10 % 360)) + ,1).modulatePixelate(s0).blend(o1,() => 0.99 + 0.1 * Math.sin(time/10)) + // , () => 0.4 + 0.2 * Math.sin(time/1993) +.mask(shape(4,0.05,0.2).scale(2,32).scroll(0,0.26)) +) +.out(o1) + +src(o2) +.modulateScale(src(o2).scale(0.9)) +.out(o2) + +src(o1) +// .add(src(o2).invert().thresh(0.9).invert(),1) +// ETOILES <3 <3 <3 +.add( + noise(100,0.5).thresh(0.95).mask(shape(4,0.2,0.1).scale(1.4,3).scroll(0,0.25))) +// Cadre +.mask(shape(4,0.5,() => 0.02 + 0.02 * Math.sin(time / 13)).scale(2,0.51)) +.out(o3) +render(o3) diff --git a/StarryNights/aurores0.js b/StarryNights/aurores0.js new file mode 100644 index 0000000..e8d13b5 --- /dev/null +++ b/StarryNights/aurores0.js @@ -0,0 +1,44 @@ +s0.initImage("///home/pln/Work/Hydra/img/aurores.jpeg") +s0.initImage("///home/pln/Work/Hydra/img/aurores.jpeg") + +src(s0) + .add(src(s0) + .color(0.3,() => 0.6 + 0.2 * Math.sin(time/13),() => 0.6 + 0.4 * Math.sin(time / 3)) + .contrast(() => 1.7 + Math.sin(time / 20 + time / 13 + time / 7 + time / 93)) + .mask(shape(4,0.05,0.4).scale(2,32).scroll(0,0.26)) + ) + .scale(0.9,0.45) + .scroll(0,0.05) + .scale(1.13) + .out(o0) + +// Tableau 1: Camille sur son bateau +src(o0) +.blend(src(o0) + // EFFET: DEGRADATION MOIREE + // .diff(src(o1).scale(() => 0.99 + 0.1 * Math.sin(time / 1000))) + // EFFET: Borealis + .add( + src(s0) + ) + .modulate( + osc(() => 15 + 4 * Math.sin(time/120),0.0).rotate(() => (time/10 % 360)) + ,1).modulatePixelate(s0).blend(o1,() => 0.99 + 0.1 * Math.sin(time/10)) + // , () => 0.4 + 0.2 * Math.sin(time/1993) +.mask(shape(4,0.05,0.2).scale(2,32).scroll(0,0.26)) +) +.out(o1) + +src(o2) +.modulateScale(src(o2).scale(0.9)) +.out(o2) + +src(o1) +// .add(src(o2).invert().thresh(0.9).invert(),1) +// ETOILES <3 <3 <3 +.add( + noise(100,0.1).thresh(0.9).scale(0.25).mask(shape(4,0.2,0.1).scale(1.4,3).scroll(0,0.25))) +// Cadre +.mask(shape(4,0.43,() => 0.02 + 0.02 * Math.sin(time / 1.3)).scale(2,0.51)) +.out(o3) +render(o3) diff --git a/StarryNights/douce_nebuleuse.js b/StarryNights/douce_nebuleuse.js new file mode 100644 index 0000000..fe18d22 --- /dev/null +++ b/StarryNights/douce_nebuleuse.js @@ -0,0 +1,37 @@ +//Hide Info | See Full Image | More info +// On July 1 in 1993 +// Comet Shoemaker-Levy 9 Fragments +// This image captures the brightest "nucleus" in a string of approximately 20 +// that comprised the broken-up comet Shoemaker-Levy 9. +// The image reveals that the bright segment is actually a group of at least four separate pieces. +// Created by Paul-Louis +// For Kyu and Ben +// License CC-BY-NC-SA +// Framework Hydra.js by Olivia Jack - hydra.ojack.xyz +s0.initImage("https://imagine.gsfc.nasa.gov/hst_bday/images/july-1-2019-comet-shoemaker-levy-9-fragments.jpg") +src(s0) +.out(o0) + +src(o0) + .rotate(() => (time/(12) % 360)) + .out(o1) + +src(o1) +.scale(0.5) +// .scroll(() => 0.2 + 0.05 * Math.sin(time / 18)) +.out(o2) + +src(o2) +.scale(() => 3.6 + 1.3 * Math.sin(time/ 3)) +.add(src(o2).mask(shape(30).scale(() => 2 + 0.5 * Math.sin(time / 20)),0.1).brightness(0.2)) +// .colorama(0.1) +.blend(src(o1).scale(4).thresh(() => 1 + 0.2 * Math.sin(time / (32 + 67))), 0.2) +.saturate(1) +.contrast(0.7) +.colorama(() => 0.9 + 0.05 * Math.sin(time / 8)) +.brightness(-0.4) +.blend(o0,0.5) +.out(o3) + +render() +render(o3) diff --git a/StarryNights/img/july1.jpeg b/StarryNights/img/july1.jpeg new file mode 100644 index 0000000..ea4ae1e Binary files /dev/null and b/StarryNights/img/july1.jpeg differ diff --git a/img/aurores.jpeg b/img/aurores.jpeg new file mode 100644 index 0000000..7479491 Binary files /dev/null and b/img/aurores.jpeg differ