Skip to content

Instantly share code, notes, and snippets.

@rformato
Created February 22, 2014 20:57
Show Gist options
  • Select an option

  • Save rformato/9162296 to your computer and use it in GitHub Desktop.

Select an option

Save rformato/9162296 to your computer and use it in GitHub Desktop.
var draw = function() {
c.clearRect(0, 0, wc, hc);
c.fillStyle = "#1B2209"
c.fillRect(0, 0, wc, hc);
for(var i=0;i<numParticelle;i++) {
part[i].update();
part[i].draw();
}
window.setTimeout(draw,0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment