Skip to content

Instantly share code, notes, and snippets.

@Sangarshanan
Created November 7, 2024 15:21
Show Gist options
  • Select an option

  • Save Sangarshanan/5b2c45e8a37982594ecdd15114ab9526 to your computer and use it in GitHub Desktop.

Select an option

Save Sangarshanan/5b2c45e8a37982594ecdd15114ab9526 to your computer and use it in GitHub Desktop.
Audio Reactive Visuals with Hydra.xyz
noise()
.color(() => a.fft[2]*2,0,.6)
.modulate(noise(() => a.fft[0]*10))
.scale(()=> a.fft[2]*5)
.layer(
src(o0)
.mask(osc(10).modulateRotate(osc(),90,0))
.scale(() => a.fft[0]*2)
.luma(0.2,0.3)
)
.blend(o0)
.out(o0)
osc()
.modulate(noise(() => a.fft[1]+5))
.color(1,2,0)
.out(o1)
src(o0)
.modulate(o1)
.layer(
src(o1)
.mask(o1)
.saturate(7)
)
.modulateRotate(o1)
.rotate(({time}) => time%360*0.05)
.out(o2)
render(o2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment