From 83d4e4bb70780b2ffeb5b668ed25b1a78b7c0f0d Mon Sep 17 00:00:00 2001 From: Paul-Louis NECH Date: Wed, 5 May 2021 10:39:20 +0200 Subject: [PATCH] starry: Edge wip --- StarryNights/Ariane13.js | 3 ++- StarryNights/Edge.js | 35 +++++++++++++++++++++++++++++++++++ StarryNights/SquareWorlds.js | 8 ++------ StarryNights/Study/GalaxyTrip.js | 12 ++++++++++++ StarryNights/backlog.md | 22 ++++++++++++++++++++++ StarryNights/img/Edge.png | Bin 0 -> 11191587 bytes StarryNights/img/GiantGrowth.jpg | Bin 0 -> 1804672 bytes StarryNights/img/Merge.png | Bin 0 -> 3149101 bytes StarryNights/img/SmallBlackHoles.png | Bin 0 -> 4619197 bytes 9 files changed, 73 insertions(+), 7 deletions(-) create mode 100644 StarryNights/Edge.js create mode 100644 StarryNights/Study/GalaxyTrip.js create mode 100644 StarryNights/backlog.md create mode 100644 StarryNights/img/Edge.png create mode 100644 StarryNights/img/GiantGrowth.jpg create mode 100644 StarryNights/img/Merge.png create mode 100644 StarryNights/img/SmallBlackHoles.png diff --git a/StarryNights/Ariane13.js b/StarryNights/Ariane13.js index 9cb97e6..506f481 100644 --- a/StarryNights/Ariane13.js +++ b/StarryNights/Ariane13.js @@ -1,8 +1,9 @@ // Ariane13 par PLN // À partir d'une photo prise le 13 avril 2019 par le téléscope Hubble de Abell 2261, une galaxie géante 10 fois plus grande que notre Voie Lactée. // https://nech.pl/ariane13 +// Original image credit: NASA; ESA; M. Postman, STScI; T. Lauer, NOAO, Tucson; CLASH team. + s0.initImage("https://git.plnech.fr/pln/Hydra/raw/e8cd9c3651615342ee7af334fe21684585409941/StarryNights/img/april-13-2019-galaxy-cluster-abell-2261.jpg") -// s0.initImage("file:///home/pln/Work/Hydra/StarryNights/img/april-13-2019-galaxy-cluster-abell-2261.jpg") src(s0) .brightness(0.13).contrast(1.72) .out(o0) diff --git a/StarryNights/Edge.js b/StarryNights/Edge.js new file mode 100644 index 0000000..1470fa4 --- /dev/null +++ b/StarryNights/Edge.js @@ -0,0 +1,35 @@ +s0.initImage("/home/pln/Work/Hydra/StarryNights/img/Edge.png"); +src(s0).out(o0); + +periodScale = 2.9; + +noise(200, 0.13) + .blend( + // Filter out the center by blending a diffed shape + solid(1, 1, 1).diff(shape(30).color(1, 1, 1).scale(1.8).scrollX(-0.015)) + ) + .thresh(0.95) + .color(0.71, + 0, + () => 0.49 + 0.1 * Math.sin(time), + 0 + ) + .out(o1); + +src(o0) + .blend(src(o0).rotate(0.5).scale(() => 1.05 + 0.05 * Math.sin(time / periodScale))) + .blend(src(o0).rotate(0.25).scale(() => 0.95 - 0.05 * Math.sin(time / periodScale))) + .out(o2); + +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) +// ) +// ) +.out(o3) + +render(o3) diff --git a/StarryNights/SquareWorlds.js b/StarryNights/SquareWorlds.js index 5156f54..9f55a20 100644 --- a/StarryNights/SquareWorlds.js +++ b/StarryNights/SquareWorlds.js @@ -13,16 +13,12 @@ src(o0) src(o2) .blend(src(o2).scale(0.99)) - .blend(src(o2) - // .rotate(() => Math.sin(time / (100 * (time / 250)))) -, 0.05) - // .blend(o2) - .modulateScale(osc(20), 0.00015) + .blend(src(o2), 0.05) + .modulateScale(osc(20), 0.0005) .out(o1) src(o1) .blend(o0,0.24) - // .blend(o1,0.3) .brightness(0.1).contrast(1.3) .scale(() => 1.2 + Math.sin(time/70) * 0.6) .out(o3) diff --git a/StarryNights/Study/GalaxyTrip.js b/StarryNights/Study/GalaxyTrip.js new file mode 100644 index 0000000..4c1fd74 --- /dev/null +++ b/StarryNights/Study/GalaxyTrip.js @@ -0,0 +1,12 @@ +// Galaxy Trip +// by Rangga Purnama Aji +// https://ranggapurnamaaji1.wixsite.com/portfolio + +shape(1,1) + .mult(voronoi(1000,2) + .blend(o0).luma()) + .add(shape(3,0.125) + .rotate(1,1).mult(voronoi(1000,1).luma()) + .rotate(1.5)).scrollX([0.1,-0.0625,0.005,0.00001],0) + .scrollY([0.1,-0.0625,0.005,0.00001],0) + .out() \ No newline at end of file diff --git a/StarryNights/backlog.md b/StarryNights/backlog.md new file mode 100644 index 0000000..df40302 --- /dev/null +++ b/StarryNights/backlog.md @@ -0,0 +1,22 @@ +# Giant Growth +https://www.nasa.gov/feature/goddard/2021/hubble-watches-how-a-giant-planet-grows/ +> “We just don’t know very much about how giant planets grow,” +> Credits: NASA, ESA, STScI, Joseph Olmsted (STScI) + + +# Edge of Destruction +https://www.nasa.gov/feature/goddard/2021/hubble-captures-giant-star-on-the-edge-of-destruction +> AG Carinae, is waging a tug-of-war between gravity and radiation to avoid self-destruction. +> These images are a composite of separate exposures acquired by the WFC3/UVIS instrument on the Hubble Space Telescope. Several filters were used to sample narrow wavelength ranges. The color results from assigning different hues (colors) to each monochromatic (grayscale) image associated with an individual filter. +> Credits: NASA, ESA, STScI + +# Merge +https://www.nasa.gov/feature/goddard/2021/hubble-spots-double-quasars-in-merging-galaxies/ +> This artist's conception shows the brilliant light of two quasars residing in the cores of two galaxies that are in the chaotic process of merging. The gravitational tug-of-war between the two galaxies stretches them, forming long tidal tails and igniting a firestorm of starbirth. Quasars are brilliant beacons of intense light from the centers of distant galaxies. They are powered by supermassive black holes voraciously feeding on infalling matter. This feeding frenzy unleashes a torrent of radiation that can outshine the collective light of billions of stars in the host galaxy. In a few tens of millions of years, the black holes and their galaxies will merge, and so will the quasar pair, forming an even more massive black hole. A similar sequence of events will happen a few billion years from now when our Milky Way galaxy merges with the neighboring Andromeda galaxy. +Credits: NASA, ESA, and J. Olmsted (STScI) + +# Small Black Holes +https://www.nasa.gov/feature/goddard/2021/hubble-uncovers-concentration-of-small-black-holes/ +> Astronomers found something they weren't expecting at the heart of the globular cluster NGC 6397: a concentration of smaller black holes lurking there instead of one massive black hole. +> ...a stellar graveyard... +> Credits: NASA/GSFC/SVS/M.Subbarao & NASA/CXC/SAO/A.Jubett diff --git a/StarryNights/img/Edge.png b/StarryNights/img/Edge.png new file mode 100644 index 0000000..e4679aa Binary files /dev/null and b/StarryNights/img/Edge.png differ diff --git a/StarryNights/img/GiantGrowth.jpg b/StarryNights/img/GiantGrowth.jpg new file mode 100644 index 0000000..6b4ee07 Binary files /dev/null and b/StarryNights/img/GiantGrowth.jpg differ diff --git a/StarryNights/img/Merge.png b/StarryNights/img/Merge.png new file mode 100644 index 0000000..ae26b77 Binary files /dev/null and b/StarryNights/img/Merge.png differ diff --git a/StarryNights/img/SmallBlackHoles.png b/StarryNights/img/SmallBlackHoles.png new file mode 100644 index 0000000..b9567cc Binary files /dev/null and b/StarryNights/img/SmallBlackHoles.png differ -- libgit2 0.27.0