Last active
November 21, 2016 22:36
-
-
Save notepadwebdev/7d46504dd09dcee9ef51291c2d740167 to your computer and use it in GitHub Desktop.
Recursive requestAnimationFrame loop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onTick() { | |
this.raf = requestAnimationFrame(this.onTick.bind(this)); | |
this.analyser.getByteFrequencyData(this.dataArray); | |
// animations go here... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment