GaLactic.js 489 Bytes
// From a picture of Galaxy Nasa 724203
// Private share: https://nech.pl/nights-galactic
s0.initImage("file:///home/pln/Work/Hydra/StarryNights/img/724203.jpg")
src(s0).out()



src(o0)
.blend(o0)
.blend(src(o1).scale(0.5,0.9).rotate(() => Math.sin(time/900) * 360), 0.25)
.out(o2)



src(o2)
  .modulate(o0,() => Math.sin(time/20) % 2)
  .out(o1)

src(o1)
  .blend(o0)
  .blend(o1,0.3)
  .brightness(0.15).contrast(1.4)
  .scale(() => 1.5 + Math.sin(time/70) * 0.6)
.out(o3)

render(o3)