aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/SkV8Example/sample.js
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-01-06 18:17:24 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-01-06 18:17:24 +0000
commitc8d732800e1a660fca6d2478fc24d6e6935ef8ad (patch)
tree288220e147cc7af5e5c3bd5051fc87f464001c11 /experimental/SkV8Example/sample.js
parentd0419b1fe781ed21d4aa0dc80df6b3e79ed37e46 (diff)
Renamed JsCanvas to JsContext and moved into it's own file.
Fleshed out a lot of the Path interface. BUG= R=robertphillips@google.com, tfarina@chromium.org, reed@google.com Author: jcgregorio@google.com Review URL: https://codereview.chromium.org/121303004 git-svn-id: http://skia.googlecode.com/svn/trunk@12913 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'experimental/SkV8Example/sample.js')
-rw-r--r--experimental/SkV8Example/sample.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/experimental/SkV8Example/sample.js b/experimental/SkV8Example/sample.js
index 841dd5daa7..81c717c7e8 100644
--- a/experimental/SkV8Example/sample.js
+++ b/experimental/SkV8Example/sample.js
@@ -3,10 +3,10 @@
*/
var onDraw = function(){
var tick = 0;
- function f(canvas) {
+ function f(context) {
tick += 0.1;
- canvas.fillStyle = '#0000ff';
- canvas.fillRect(100, 100, Math.sin(tick)*100, Math.cos(tick)*100);
+ context.fillStyle = '#0000ff';
+ context.fillRect(100, 100, Math.sin(tick)*100, Math.cos(tick)*100);
};
return f;
}();