diff --git a/README.md b/README.md index 1587769..53f292c 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ function PlayState() { }; this.draw = function() { - penta.clearCanvas(); + penta.clearCanvas('#333'); // Colored background this.ball.draw(); }; diff --git a/demos/circle_example/PlayState.js b/demos/circle_example/PlayState.js index 56b8b66..c552c52 100644 --- a/demos/circle_example/PlayState.js +++ b/demos/circle_example/PlayState.js @@ -23,7 +23,7 @@ function PlayState() { }; this.draw = function() { - penta.clearCanvas(); + penta.clearCanvas('#333'); this.ball.draw(); };