Skip to content

Instantly share code, notes, and snippets.

@marklundin
Last active February 2, 2016 15:24
Show Gist options
  • Save marklundin/5bd59b341703d05dcd25 to your computer and use it in GitHub Desktop.
Save marklundin/5bd59b341703d05dcd25 to your computer and use it in GitHub Desktop.
/*
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