aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndrajith K L2024-04-06 04:44:15 +0530
committerIndrajith K L2024-04-06 04:44:15 +0530
commit2cf9edc118727bdfdef98139dbbfc56693edd862 (patch)
tree70300a51f7312bb446374b25894cdfed88bbe884
parent1f931bfb1fb499ca254b361f335270a5555dbc05 (diff)
downloadretrowave-player-2cf9edc118727bdfdef98139dbbfc56693edd862.tar.gz
retrowave-player-2cf9edc118727bdfdef98139dbbfc56693edd862.tar.bz2
retrowave-player-2cf9edc118727bdfdef98139dbbfc56693edd862.zip
Integrates Hydra VisHEADmaster
-rw-r--r--hg.css2
-rw-r--r--player.js20
2 files changed, 11 insertions, 11 deletions
diff --git a/hg.css b/hg.css
index 48e560b..cb088c5 100644
--- a/hg.css
+++ b/hg.css
@@ -253,7 +253,7 @@ dialog::backdrop {
justify-content: center;
}
-#codef-canvas canvas {
+canvas {
position: absolute;
top: 0;
} \ No newline at end of file
diff --git a/player.js b/player.js
index 961c8cb..214ef29 100644
--- a/player.js
+++ b/player.js
@@ -255,15 +255,15 @@ https://retrowave.ru/${musicData.streamUrl}
// }
function initHydra() {
- // voronoi(350, 0.15)
- // .modulateScale(osc(8).rotate(Math.sin(time)), .5)
- // .thresh(.8)
- // .modulateRotate(osc(7), .4)
- // .thresh(.7)
- // .diff(src(o0).scale(1.8))
- // .modulateScale(osc(2).modulateRotate(o0, .74))
- // .diff(src(o0).rotate([-.012, .01, -.002, 0]).scrollY(0, [-1 / 199800, 0].fast(0.7)))
- // .brightness([-.02, -.17].smooth().fast(.5)).modulate(o0, () => a.fft[1] * .2)
- // .out()
+ voronoi(350, 0.15)
+ .modulateScale(osc(8).rotate(Math.sin(time)), .5)
+ .thresh(.8)
+ .modulateRotate(osc(7), .4)
+ .thresh(.7)
+ .diff(src(o0).scale(1.8))
+ .modulateScale(osc(2).modulateRotate(o0, .74))
+ .diff(src(o0).rotate([-.012, .01, -.002, 0]).scrollY(0, [-1 / 199800, 0].fast(0.7)))
+ .brightness([-.02, -.17].smooth().fast(.5))//.modulate(o0, () => a.fft[1] * .2)
+ .out()
}
})();