Skip to content

Instantly share code, notes, and snippets.

@FinalDestiny
Created December 21, 2017 10:58
Show Gist options
  • Save FinalDestiny/ec9229485b6b0d1792e14289d1b61959 to your computer and use it in GitHub Desktop.
Save FinalDestiny/ec9229485b6b0d1792e14289d1b61959 to your computer and use it in GitHub Desktop.
<script>
var canvas, stage, exportRoot;
function init() {
canvas = document.getElementById("canvas");
exportRoot = new lib.innovision();
stage = new createjs.Stage(canvas);
stage.addChild(exportRoot);
stage.update();
createjs.Ticker.setFPS(lib.properties.fps);
createjs.Ticker.addEventListener("tick", stage);
}
jQuery(document).ready(function() {
init();
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment