Commit 0e6a1b33 by PLN (Algolia)

did:Saturne

parent da58c17a
// On February 24 in 2009
// Saturn and Moons
// In this image, four moons of Saturn are passing in front of the giant planet.
// The large, orange moon Titan casts a large shadow on the northern pole. Smaller moons Mimas, Dione and Enceladus appear as white dots.
s0.initImage("file:///home/pln/Work/Hydra/StarryNights/img/february-24-2019-saturn-and-moons.jpg")
// Source celeste: Saturne
src(s0)
.scale(() => 1 + 0.025 * Math.sin(time / 2.413))
.scale(() => 1.15 + 0.25 * Math.sin(time / 24.0257))
.contrast(1.32).brightness(-0.1)
.out(o0)
// Oeuvre au noir: soustraction en rotation
src(o0)
.sub(src(o2).rotate(() => time/199.3 % 360).scale([0.999,1.001]))
.out(o1)
// Oeuvre au blanc: filtre lumineux
src(o0)
.add(src(o1)
.rotate(() => -(time/57.0224) % 220)
.luma(() => 0.5 + 0.8 * Math.sin(time/19.93))
.mask(voronoi(12,0.2))
.scale(0.25))
.out(o2)
//Oeuvre au jaune: Masque geometrique
src(o1)
.blend(o2,() => 0.8 + 0.4 * Math.sin(time))
.blend(src(o1),() => 0.8 + 0.6 * Math.sin(time/(1312)))
// Oeuvre au rouge: Etoiles solaires
.add(noise(93,0.01)
.scroll(() => time/195.7)
.mask(shape(30).scale(1.93).invert())
.thresh(0.93))
.out(o3)
render(o3)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment