From 850a3aa96138ec40b71b5e57f328dba9c8f872f5 Mon Sep 17 00:00:00 2001 From: Paul-Louis NECH Date: Fri, 15 Oct 2021 12:17:05 +0200 Subject: [PATCH] feat: Camille15 --- StarryNights/Camille15.js | 47 +++++++++++++++++++++++++++++++++++++++++++++++ StarryNights/img/october-15-2019-supernova.jpg | Bin 0 -> 1712097 bytes 2 files changed, 47 insertions(+) create mode 100644 StarryNights/Camille15.js create mode 100644 StarryNights/img/october-15-2019-supernova.jpg diff --git a/StarryNights/Camille15.js b/StarryNights/Camille15.js new file mode 100644 index 0000000..5d0ed1b --- /dev/null +++ b/StarryNights/Camille15.js @@ -0,0 +1,47 @@ +// On October 15 in 2003 +// Supernova Remnant E0102 +// +// In a nearby galaxy called the Small Magellanic Cloud, +// a massive star exploded as a supernova +// and dissipated its interior into a spectacular display of colorful filaments. +// The supernova remnant, known as E0102, is the greenish-blue field of debris just below center. + +periodeTelescope = 42 +periodeModulation = 100 +periodeModulationInterne = 1000 +periodeModulationExterne = 200000 +periodeBlend = 5 +periodeBlendModulate = 100 + +// DEBUG +periodeTelescope = 10 +periodeModulation = 10 +periodeModulationInterne = 100 +periodeModulationExterne = 20000 +periodeBlend = 5 +periodeBlendModulate = 100 + +s0.initImage("https://imagine.gsfc.nasa.gov/hst_bday/images/october-15-2019-supernova-remnant-e0102.jpg") +src(s0) +.contrast(() => 1.1 + 0.2 * Math.cos(time / 100)) +.out(o0) + +noise(() => 2 + 0.15 * (time / 360), + () => Math.cos(time) * 0.00002).out(o1) + + +src(o0).modulate(o1, + () => ( + (time / periodeModulation) * + Math.cos(time / periodeModulationInterne) * + Math.sin(time / periodeModulationExterne) * + 1 + ) +).out(o2) + +src(o2) +.scale(() => 0.991 + 0.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) +render(o3) diff --git a/StarryNights/img/october-15-2019-supernova.jpg b/StarryNights/img/october-15-2019-supernova.jpg new file mode 100644 index 0000000..93bbcef Binary files /dev/null and b/StarryNights/img/october-15-2019-supernova.jpg differ -- libgit2 0.27.0