Skip to content

Instantly share code, notes, and snippets.

@georgeOsdDev
Created June 7, 2013 08:37
Show Gist options
  • Select an option

  • Save georgeOsdDev/5727894 to your computer and use it in GitHub Desktop.

Select an option

Save georgeOsdDev/5727894 to your computer and use it in GitHub Desktop.
Interim measures when the afterimage remains in canvas.
var $canvas = $('canvas');
Ticker.useRAF = true;
Ticker.setFPS(30);
Ticker.addEventListener('tick',function(){
var clone = $.extend(true,{},stage.children);
$canvas.hide();
stage.removeAllChildren();
stage.update();
for (var key in clone){
stage.addChild(clone[key]);
}
stage.update();
$canvas.show();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment