Commit 3434d69a by PLN (Algolia)

Divers

parent deb65920
// 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)
// ÉTAPE 1: Cette nuit d'automne est splendide, quoi qu'un peu w3ird
a.setBins(4)
a.setCutoff(1)
a.show()
s0.initImage("file:///home/pln/Work/Hydra/StarryNights/img/december-13-2019-comet-wirtanen.png")
src(s0)
.out(o0)
render(o0)
// ÉTAPE 2: Bonsoir pixels ! Vous êtes fort sédu1s4nts
src(o0)
.modulatePixelate(
src(o0) // FIXME o2
, () => 5 + a.fft[1] * 20
)
// .scroll(0.4,2).scale(2) // FIXME
.out(o1)
render(o1)
// ÉTAPE 3: P1X3LS J3 V0US V3UX DANS M3S Y3UX
src(o0)
.modulatePixelate(
src(o1)
, () => (200 + a.fft[0] * 19800))
.scale(2)
.out(o2)
render(o2)
//// ÉTAPE 4: D3S P1X3LS ? 0U ÇA D3S P1X3LS ? M0N 031L !
src(o1)
.brightness(-0.2)
.scale(() => 0.1 + 0.8 * a.fft[2]) // FIXME: SCALEDOWN
// .modulateRepeat(src(o0),0.02)
.rotate(() => (0.05 * (time * (1 - Math.sin(a.fft[3])) % 360)))
.out(o3)
render(o3)
render()
// Crystal of PixelBlur
// PLN - derived from [PixelScale by Marianne Teixido](https://github.com/MarianneTeixido)
src(o0)
.saturate(1.01)
.scale(0.9951)
.color(1.01,1.01,1.01)
.hue(.02481)
.modulateHue(
src(o1)
.hue(.3)
.posterize(-1)
.contrast(.7)
,[0,0,8].fast(1/8))
.layer(src(o1)
.luma()
.mult(gradient(1)
.saturate(.9)))
.out(o0)
noise(1, .2)
.rotate(2,.5)
.layer(src(o0)
.rotate(0.32)
.scrollX(() => 0.2 * Math.sin(t))
)
.out(o1)
src(o1)
.scrollX(0.6)
.scale(2)
.out(o2)
render(o2)
// PixelBlur LIVE
// PLN - derived from [PixelScale by Marianne Teixido](https://github.com/MarianneTeixido)
a.setCutoff(2)
a.setBins(4)
a.setScale(6)
a.setSmooth(0.45)
a.show()
src(o0)
.saturate(() => 0.91 + 0.0125 * a.fft[3])
.scale(() => 0.99 + 0.005 * a.fft[0])
.scrollX(0.01)
.color(1.01,1.01,1.01)
.hue(.02481)
.blend(o1,() => 0.01 * Math.sin(time))
.modulateHue(
src(o1)
.hue(.3)
.posterize(-1)
.contrast(.7)
,[0,0,8].fast(1/4))
.layer(src(o1)
.luma()
.mult(gradient(1)
.saturate(.9)
)
)
.out(o0)
noise(1, .2)
.rotate(2,.5)
.layer(src(o0)
.rotate(() => 0.32 + 0.2 * a.fft[1])
.scrollX(() => 0.8 + 0.2 * Math.sin(t/4))
.scrollY(() => 2 * Math.sin(t/8))
)
.out(o1)
src(o1)
.scrollX(0.6)
// .scale(2)
.out(o2)
src(o2)
.contrast(() => 0.5 * a.fft(2))
// .scrollX(() => Math.cos(time * 0.6))
// .scale(0.8)
.out(o3)
render(o3)
//Pixelscape - ReConstruction
//Derived by PLN from [Marianne Teixido's(https://github.com/MarianneTeixido)
src(o0)
.saturate(0.989)
.scale([1.00995,0.997].fast(1/32))
.color(1,1.01,1.01)
.hue(.01)
.modulateHue(src(o1)
.hue(.3)
.posterize(1024)
.contrast(.7),20)
.layer(src(o1)
.luma()
.mult(gradient(1)
.saturate([.1,.59].fast(1/4))))
.out(o0)
noise(100, .0082)
.rotate(2,.5)
.layer(
src(o0)
.scrollY(() => Math.sin(time/100))
)
.out(o1)
render(o0)
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