diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-01-16 19:48:33 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-01-16 19:48:33 +0000 |
commit | 58c0fa37bafc220074dfe993a6faab039035e6e6 (patch) | |
tree | 1eb7c0a7db75de2300ca794c26eff02fc685abd7 /experimental/SkV8Example/gears.js | |
parent | 240196d751904c4ca89f26730f89404018cc79b7 (diff) |
Clear the canvas before drawing the gears.
BUG=skia:
R=robertphillips@google.com
Author: jcgregorio@google.com
Review URL: https://codereview.chromium.org/141113002
git-svn-id: http://skia.googlecode.com/svn/trunk@13114 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'experimental/SkV8Example/gears.js')
-rw-r--r-- | experimental/SkV8Example/gears.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/experimental/SkV8Example/gears.js b/experimental/SkV8Example/gears.js index 7eb4c5b198..5ba2f995c2 100644 --- a/experimental/SkV8Example/gears.js +++ b/experimental/SkV8Example/gears.js @@ -97,6 +97,9 @@ var onDraw = function() { function draw(ctx) { ctx.resetTransform(); + ctx.fillStyle = "#FFFFFF"; + ctx.fillRect(0, 0, 499, 499); + rotation += DeltaTheta; if (rotation >= Math.PI*2) { rotation = 0; |