// 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()

a.show()
a.setSmooth(0.21)
a.setScale(2)

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

src(o2)
  .modulate(o0,() => Math.sin(time/2) % 2)
  .scale(() => Math.sine(time) * 9 + 0.9)
  .out(o1)

src(o1)
  .blend(o0)
  // .blend(o1,() => a.fft[3])
  .brightness(0.23).contrast(1.4)
  .luma(() => 0.7 - 0.7 * a.fft[3])
  .scale(() => 0.2625 + Math.sin(a.fft[0]) * 0.6 + 0.62)
  // .rotate(() => (time/40) % 360)
  .add(noise(() => a.fft[01],0.1).modulate(src(o1)))
.out(o3)

render(o3)