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