From 303bf2fd9b3cadb548cedabb40c23381f86a1033 Mon Sep 17 00:00:00 2001 From: Paul-Louis NECH Date: Tue, 12 Jul 2022 11:12:20 +0200 Subject: [PATCH] Starry: Yet --- StarryNights/Yet.js | 37 +++++++++++++++++++++++++++++++++++++ StarryNights/img/Webb_deepest_yet.png | Bin 0 -> 29897546 bytes 2 files changed, 37 insertions(+) create mode 100644 StarryNights/Yet.js create mode 100644 StarryNights/img/Webb_deepest_yet.png diff --git a/StarryNights/Yet.js b/StarryNights/Yet.js new file mode 100644 index 0000000..a45965d --- /dev/null +++ b/StarryNights/Yet.js @@ -0,0 +1,37 @@ +// On July 12, 2022 +// NASA’s James Webb Space Telescope has produced the deepest and sharpest infrared image of the distant universe to date. +// Known as Webb’s First Deep Field, +// this image of galaxy cluster SMACS 0723 is overflowing with detail. + +s0.initImage("file:///home/pln/Work/Hydra/StarryNights/img/Webb_deepest_yet.png") + +src(s0) + .brightness(() => 0 + 0.2 * Math.sin(time / 42)) + .contrast(() => 1 + 0.8 * Math.sin(time/42)) + .out(o0) + +src(s0) + .luma(0.57, 0.2) + .invert() + .out(o1) + +src(o0) + .modulateScale(osc(1.2,0.2)) + .out(o2) + + +src(o2) +.blend( + src(o2) + .mask( + src(o1) + .scale(() => 1 + 0.5 * Math.sin(time / 100)) + .modulate(noise(() => 0 + Math.sin(time / 13))) + .rotate(() => time / 10 % 360) + ) + .colorama(() => 0.1 * Math.cos(time / 50)) + , () => 0.2 + 0.09 * Math.sin(time) +) +.out(o3) + +render(o3) diff --git a/StarryNights/img/Webb_deepest_yet.png b/StarryNights/img/Webb_deepest_yet.png new file mode 100644 index 0000000..bc04bc8 Binary files /dev/null and b/StarryNights/img/Webb_deepest_yet.png differ -- libgit2 0.27.0