From 10852ca2acf234450f7b02c79e4d990a862667bc Mon Sep 17 00:00:00 2001 From: Paul-Louis NECH Date: Thu, 17 Jun 2021 19:09:11 +0200 Subject: [PATCH] Save: Post MultiSporTeuf --- LIVE/GalacticNoise.js | 29 +++++++++++++++++++++++++++++ LIVE/GlitchPool.js | 41 +++++++++++++++++++++++++++++++++++++++++ LIVE/MultiSporTeuf.js | 136 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ LIVE/PixelScalp.js | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ StarryNights/img/DowntownMilkyWay.jpeg | Bin 0 -> 1251174 bytes book/colors.js | 2 ++ friends/val_intro.js | 23 +++++++++++++++++++++++ 7 files changed, 279 insertions(+) create mode 100644 LIVE/GalacticNoise.js create mode 100644 LIVE/GlitchPool.js create mode 100644 LIVE/MultiSporTeuf.js create mode 100644 LIVE/PixelScalp.js create mode 100644 StarryNights/img/DowntownMilkyWay.jpeg create mode 100644 book/colors.js create mode 100644 friends/val_intro.js diff --git a/LIVE/GalacticNoise.js b/LIVE/GalacticNoise.js new file mode 100644 index 0000000..87cfdb5 --- /dev/null +++ b/LIVE/GalacticNoise.js @@ -0,0 +1,29 @@ +// From a picture of Galaxy Nasa 724203 +// Private share: https://nech.pl/nights-galactic +s0.initImage("https://git.plnech.fr/pln/Hydra/raw/7ab247cae7f562ecc0f1c13a6646e5a71f6c0f1f/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/2) % 2) + .scale(() => Math.sine(time) * 9 + 0.9) + .out(o1) + + render(o3) + +src(o1) + .blend(o0) + // .blend(o1,() => a.fft[3]) + .brightness(0.23).contrast(1.4) + .luma() + .scale(() => 0.2625 + Math.sin(a.fft[0] + time) * 0.6 + 0.62) + .rotate(() => (time/4) % 360) +.out(o3) + +render(o3) diff --git a/LIVE/GlitchPool.js b/LIVE/GlitchPool.js new file mode 100644 index 0000000..d0bdf84 --- /dev/null +++ b/LIVE/GlitchPool.js @@ -0,0 +1,41 @@ +// +// +// +// GLITCHP00L +// +// +// +// > hue() is often useful to combine with feedback. +// +// +// +src(o0) + .modulateRotate(noise(2, + [0,0,0,0,0.02].fast(1/8) // RANDOM MOVE FACTOR + ), 0.03) + .hue(0.003) + .layer( + shape(2, 0.008) + .luma() + .color(0, 0, 0.85) + ) + .rotate(0) + .out(o0) + +src(o0) + .pixelate(() => 2048 - Math.sin(time / 100) * 1024) + .scale(() => 0.4 + 0.005 * Math.random() - 0.1 * Math.sin(time/10 % 360)) + .modulate(src(o0), 0.08) + .rotate(() => time/32 % 360) + .out(o1) + +src(o1) + .add(gradient(),-0.25) + .out(o2) + +src(o2) + .contrast(0.9) + .brightness(-0.1) + .out(o3) + +render(o3) diff --git a/LIVE/MultiSporTeuf.js b/LIVE/MultiSporTeuf.js new file mode 100644 index 0000000..feeb02a --- /dev/null +++ b/LIVE/MultiSporTeuf.js @@ -0,0 +1,136 @@ +a.show() +a.setBins(4) +// +// render(o0) +// // +// // // // 1: Diamond NOISE +// noise(10.82,() => 0.002 * Math.sin(time/100)) +// .modulate(osc(() => time / 10),1) +// .thresh(0.65) +// .out(o0) +// // +// src(o0) +// .rotate(() => Math.sin(time/25)).out(o1) +// // +// +// render() +// +// src(o3) +// .scale(0.9) +// .out(o2) +// +// src(o2) +// .kaleid(4) +// .out(o3) +// +// +// render(o1) +// // + + +// src(o1) +// .blend(src(o2).scale(0.99),0.3) +// .scale(1.0199) +// .out(o3) +// +// render(o3) + +// +// TELEVISION BREAKS THE DIMENSION +osc( + // () => Math.sin(time/200)*(time % 3600) +// osc(() => a.fft[0]*100, + // 0 //() => a.fft[1]*10 + // ,3) + ) + .scale(() => 5*a.fft[2]+0.05) + .modulate(osc() + .rotate(() => 0.5*a.fft[1]) + ) + .out(o0) + +render(o3) + +src(o0) + .scale([0.5,0.25,0.125,0.015].fast(1/8)) + .out(o2) + +src(o2) + .blend(gradient(0.1).luma(0.02),0.38).color(() => Math.sin(time),0.4,0.9) + .modulateRotate(noise(20,4),() => Math.sin(time) / 10) + .out(o3) + +render(o3) + + +// 3: THE FIGHT OF LIGHT +src(o0) + .modulateRotate( + noise(20,[0,0.1,0.2,0.3,0.4,0.5]),0.03) + .hue(() => 0.04 * a.fft[3]) + .layer( + shape( + () => Math.ceil(1 + time % 12)) + ,0.15) // CHANGE SHAPE AND SIZE TO RESET GLITCHES + .luma() // KILL THE LUMA TO BLACK OUT + .color( + ()), + [0,0.6,0,0], + [0.8,0.1,0.8,0.1] + )) + // .contrast(1.15) + .brightness(-0.1) + // .diff(osc()) // NEXT SONG: DIFF IT UP! + .scale(0.9) // PLAY WITH SCALE TO MESS AROUND + .out(o0) + + render(o1) + +src(o0) + .rotate(() => Math.sin((a.fft[1] + time) % 360)) + .out(o1) + +src(o1) + .scale(() => a.fft[0] * 0.5 + 0.5) + .out(o2) + +render(o2) + + + + // LA COMMUNICATION + // C"EST LA _PERF_ + + src(o3).diff(osc(2, 0.1, 0.1) +.rotate(1.55) +.mult( + osc(12, 0.1, 2), + ) +.kaleid(()=>(Math.floor((Math.sin(time*0.5)+2)*20))) +.mult( + shape(()=>(Math.floor((Math.sin(time*1.26) + 2) * 3)),0.5).rotate(0,-0.5) + ) +) +.scale(()=>(Math.sin(time*-0.1))) +.out(o1) + +render(o2) + +voronoi(10, 1) +.brightness(-0.3) +.contrast(10) +.diff(shape(()=>(Math.floor((Math.sin(time*1.58) + 2) * 3)),0.5).rotate(0,1.56)) +.out(o2) + +src(o1) + .diff(src(o2)) + .mult(shape(()=>(Math.floor((Math.sin(time*0.56) + 2) * 3)),0.5) + .rotate(0,()=>(Math.sin(time*0.2)*0.01)) + .scale(()=>((Math.sin(time*0.33)+1.2)*4))) +.repeat(5,5) +// .kaleid(3,0.5) +.kaleid(8) +// .diff(src(o3)) +.out(o3) + +render(o1) diff --git a/LIVE/PixelScalp.js b/LIVE/PixelScalp.js new file mode 100644 index 0000000..a39dde3 --- /dev/null +++ b/LIVE/PixelScalp.js @@ -0,0 +1,48 @@ +//Basé sur Pixelscape +//de Marianne Teixido <3 +//https://github.com/MarianneTeixido +// Vive le code LIBRE + +src(o0) + .saturate(() => Math.sin(time) * 10 + a.fft[1]*5) + .scale(.9) + // .color(1.01,1.01,1.01) + .hue(.01) + .modulateHue(src(o1).hue(.3).posterize(-1).contrast(.7),2) + .layer(src(o1) + // .luma() + .mult(gradient(1) + .saturate(.29))) + .out(o0) + +noise(1, .2) + .rotate(2,.5) + .layer(src(o0) + .scrollX(.2)) + .out(o1) + +render() + +src(o2) + .blend(voronoi(20,2),0.2) + // .thresh(0.26) + .modulateRotate(noise()) + .out(o3) + + + + + // REBOOT + src(o3) + .modulateHue(osc()) + .kaleid(2) + .scaleX(8) + .out(o0) + +src(o0) +.out(o1) + +src(o2) + .out(o3) + + render() diff --git a/StarryNights/img/DowntownMilkyWay.jpeg b/StarryNights/img/DowntownMilkyWay.jpeg new file mode 100644 index 0000000..5aa2b66 Binary files /dev/null and b/StarryNights/img/DowntownMilkyWay.jpeg differ diff --git a/book/colors.js b/book/colors.js new file mode 100644 index 0000000..5200e58 --- /dev/null +++ b/book/colors.js @@ -0,0 +1,2 @@ +// hue() is often useful to combine with feedback. In this example, o0 is gradually modulated and its hue is shifted at the same time. +src(o0).modulateRotate(noise(2,0),0.03).hue(0.003).layer(shape(2,0.125).luma().color(0,0,1)).out(o0) diff --git a/friends/val_intro.js b/friends/val_intro.js new file mode 100644 index 0000000..672b07c --- /dev/null +++ b/friends/val_intro.js @@ -0,0 +1,23 @@ +src(o1).diff(osc(200, 0.1, 2) +.rotate(1.55) +.mult( + osc(50, 0.1, 2), + ) +.kaleid(()=>(Math.sin(time*0.5)*20)) +.mult( + shape(()=>(Math.floor(Math.sin(time*2))) * 5) + ) +) +.scale(()=>(Math.sin(time*-0.1))) +.out(o1) + +voronoi(100, 10) +.contrast(4) +.brightness(-1) +.mult(shape(3)) +.out(o2) + +src(o1).add(src(o2)).mult(shape(5,0.7)) +.out(o3) + +render(o3) -- libgit2 0.27.0