Last active
February 2, 2016 15:24
-
-
Save marklundin/5bd59b341703d05dcd25 to your computer and use it in GitHub Desktop.
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
/* | |
Propsed visualisation API | |
*/ | |
( canvas ) => { | |
start(), // Starts the render loop | |
pause, // Pauses the render loop, could fade out (may not be needed) | |
resize( w, h ), // | |
clear(), // clears the canvas. Note that if the artwork is not paused, it will be redrawn in the next frame | |
on( eventName:String, callback:Function ) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment