Skip to content

Commit df25bb6

Browse files
authored
Add audio reactive visual effects in redsnow-audio-reactive.js
1 parent 78e739d commit df25bb6

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

redsnow-audio-reactive.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
shape(99,.4).color(1,0,0)
2+
.add(shape(3).rotate(()=>Math.sin(time/500)*360+45),1)
3+
.add(shape(3).rotate(()=>-Math.sin(time/500)*360+45),1)
4+
.scroll([.1,.9].ease('easeInCubic'),[.1,.9].smooth())
5+
.scale(()=>a.fft[0]*2+0.1)
6+
.out(o1)
7+
src(o1).repeat([20],[20])
8+
.mask(shape(99).scroll(()=>0.1*Math.random()+a.fft[0]/3,()=>0.01*Math.random()+a.fft[1]/3).
9+
add(shape(2,.1).scroll(0,[.35,.6].ease('easeInQuad'))))
10+
.add(src(o1).scale(.8).scroll(.3,.3))
11+
.out()
12+
a.show()

0 commit comments

Comments
 (0)