From 8a57d67c865c18dcb615e65149d085b7017d7afc Mon Sep 17 00:00:00 2001 From: JoanaChicau Date: Sat, 9 Jul 2022 13:04:02 +0200 Subject: [PATCH] Update 'chicau-hydra.js' --- chicau-hydra.js | 94 ++++++++++++++++++++++++++++++------------------- 1 file changed, 57 insertions(+), 37 deletions(-) diff --git a/chicau-hydra.js b/chicau-hydra.js index f7f4786..65b5cfd 100644 --- a/chicau-hydra.js +++ b/chicau-hydra.js @@ -10,16 +10,20 @@ // ALT-Enter: run a block -+-+-+-+ +-+-+-+-+-+-+-+ +-+-+-+-+-+-+ -|o|l|a| |p|e|q|u|e|n|o| |m|u|n|d|o|!| -+-+-+-+ +-+-+-+-+-+-+-+ +-+-+-+-+-+-+ ++-+-+-+ +-+-+-+-+-+-+-+ +|o|l|a| |m|u|n|d|o|!| ++-+-+-+ +-+-+-+-+-+-+-+ -//search youtube — webcam live stream online +// . ☆ .*・*. ♪。・ BOA NOITE ゚・。。.: *・* 。 ☆ + +// ノ”good night everyone ♪ ☆ .・゚ ★ + +// open search youtube — webcam live stream online function newHTMLskin () { var divs = document.querySelectorAll('div'), i; for (i = 0; i < divs.length; ++i) { - divs[i].style.background = "linear-gradient(" + Math.floor(Math.random() * 1000) + "deg, Aquamarine, MistyRose, Blue, Plum, Red)"; + divs[i].style.background = "linear-gradient(" + Math.floor(Math.random() * 1000) + "deg, Aquamarine, MistyRose, Blue, Plum)"; } } newHTMLskin() @@ -30,20 +34,20 @@ newHTMLskin() function newMove () { var divs = document.querySelectorAll('div'), i; for (i = 0; i < divs.length; ++i) { - divs[i].style.width = Math.floor(Math.random() * 300) + "px"; + divs[i].style.borderRadius = Math.floor(Math.random() * 100) + "px"; } } newMove() - +// setInterval(newMove, 500) // change borderRadius function breathing() { - var zooming = document.querySelectorAll('.badge-style-type-live-now'), i; + var zooming = document.querySelectorAll('.badge'), i; currentScale = 1; currenttime = setInterval(function() { for (i = 0; i < zooming.length; ++i) { zooming[i].style.transform="scale(" + currentScale + ")"; - zooming[i].style.background="blue"; + zooming[i].style.background="#fb78ff"; currentScale = Math.random() * 10; } }, 800); @@ -98,43 +102,59 @@ function noBreathing() { // dance.push('https://www.youtube.com/embed/BCQnrwkTY?controls=0&showinfo=0&rel=0&autoplay=1&loop=1'); -// screenshare & mask rgb s0.initScreen() a.setBins(2); a.show(); src(s0) -// .layer(osc(1,1,6).mask(shape(3))) -// .scrollX(0, ({time}) => Math.sin(time*0.02)*0.05 ) -// FLUID -// .modulateKaleid(osc(12,0.05,0),1) -// .luma (0.94) -//.rotate(4, 0.1,0) +// SHAPES +// shape(3) // triangle +// .scale(() => Math.sin(time)*5) +// .repeat(() => Math.sin(time)*3) +// MASK +// .scrollX(0, ({time}) => Math.sin(time*0.05)*0.05 ) +// .layer(osc(30,0.1,2).mask(shape(3))) +// LINES +// shape(4,0.4).repeat(2,500) // trans squares +// .scroll(0, ({time}) => Math.sin(time*0.02)*0.05 ) +// .scale(1, ({time}) => Math.sin(time*0.02)*0.05 ) +// CUBIC block +// .luma (0.9) +// .rotate(6, 2,2) +// .scrollX(0, ({time}) => Math.sin(time*0.002)*0.5 ) +// .scale(1) // FLUID noise -//.modulate(noise(6),.22) -// .modulateScrollY(osc(2).modulate(osc().rotate(),.11)) -// .scale(.2) +// .modulate(noise(86),8) +// .scale(20) +// .scrollX(0, ({time}) => Math.sin(time*0.02)*0.05 ) +// SMOOTH +// .modulateScrollY(osc(8).modulate(osc().rotate(),.61)) +// .scale(0.8) // wavy screens -// .modulateRepeat(osc(2),1, 2, 4, 3) -//.blend(s0) -// screen kaleid -//.modulateKaleid(voronoi(() => Math.sin(time)*1,1,1),() => Math.sin(time)*1) -//.scale(() => Math.sin(time)*2) +// .modulateRepeat(osc(2),1, 2, 2, 3) +// .blend(s0) +// KALEID +// .modulateKaleid(voronoi(() => Math.sin(time)*1,1,1),() => Math.sin(time)*1) +// .modulateKaleid(osc(0.2,3,0),6) +// .scale(() => Math.sin(time)*2) +// SMOOTH SPOTLIGHT // voronoi(1,-1,10) - //.add(osc(1,0,1)).kaleid(50) - //.scale(20,10,2) -// intensify - //.repeat(() => a.fft[0]*2) - //.scale(()=> a.fft[1]*1) -// crazyKALEID -// .scale(0.5).rotate(1,1).kaleid(50) +// .add(osc(1,0,1)).kaleid(50) +// INTENSE +// .repeat(() => a.fft[0]*2) +// .scale(()=> a.fft[1]*1) +// NEW PATTERN +// .scale(1, ({time}) => Math.sin(time*0.02)*0.05 ) // FLUID blobs -//.mask( noise(0.2,0.5).colorama(2).luma(0.25).thresh(0.5)) -// ending — increase voronoi +// .mask( noise(0.2,0.5).colorama(2).luma(0.25).thresh(0.5)) +// ENDING — increase voronoi // .mask( -// voronoi(3, 6).modulateScale(osc(10), .5).thresh(.7) +// voronoi(2, 2).modulateScale(osc(1), 2).thresh(0.1) // ) -// simple line -// shape(2,0.01).modulate(solid(1).add(osc())) +// LINE +// shape(2,0.002).modulate(solid(1).add(osc())) +// .scale(3, ({time}) => Math.sin(time*0.02)*0.5 ) .out() -// .☆.*・*.♪。・゚・。.☆.* ノ”good night♪ ☆.。.:*・゚ ☆ ҉ ◢▅◣Ξ◥▅◤Ξ◢▅◣Ξ◥▅◤ ҉ ★ ミ☆☆ keep on dancing!☆☆彡 +// ҉ ◢▅◣Ξ◥▅◤Ξ◢▅◣Ξ◥▅◤ ҉ ミ☆☆ keep on dancing!☆☆彡 + +// - - - - - - - - THE END - - - - - - - - - - //