From 3434d69afaa5463de9698de9058cf41940f0dd2a Mon Sep 17 00:00:00 2001 From: Paul-Louis NECH Date: Fri, 19 Nov 2021 22:43:34 +0100 Subject: [PATCH] Divers --- LIVE/GalacticGuitar.js | 34 ++++++++++++++++++++++++++++++++++ LIVE/WEIRD.js | 38 ++++++++++++++++++++++++++++++++++++++ PixelBlur.js | 34 ++++++++++++++++++++++++++++++++++ PixelBlur_LIVE.js | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ Pixelscape-ReCo.js | 27 +++++++++++++++++++++++++++ 5 files changed, 184 insertions(+) create mode 100644 LIVE/GalacticGuitar.js create mode 100644 LIVE/WEIRD.js create mode 100644 PixelBlur.js create mode 100644 PixelBlur_LIVE.js create mode 100644 Pixelscape-ReCo.js diff --git a/LIVE/GalacticGuitar.js b/LIVE/GalacticGuitar.js new file mode 100644 index 0000000..cbf904d --- /dev/null +++ b/LIVE/GalacticGuitar.js @@ -0,0 +1,34 @@ +// 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) diff --git a/LIVE/WEIRD.js b/LIVE/WEIRD.js new file mode 100644 index 0000000..25a82e4 --- /dev/null +++ b/LIVE/WEIRD.js @@ -0,0 +1,38 @@ +// É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() diff --git a/PixelBlur.js b/PixelBlur.js new file mode 100644 index 0000000..04f1fb0 --- /dev/null +++ b/PixelBlur.js @@ -0,0 +1,34 @@ +// 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) diff --git a/PixelBlur_LIVE.js b/PixelBlur_LIVE.js new file mode 100644 index 0000000..25f47ac --- /dev/null +++ b/PixelBlur_LIVE.js @@ -0,0 +1,51 @@ +// 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) diff --git a/Pixelscape-ReCo.js b/Pixelscape-ReCo.js new file mode 100644 index 0000000..2b0a0aa --- /dev/null +++ b/Pixelscape-ReCo.js @@ -0,0 +1,27 @@ +//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) -- libgit2 0.27.0