aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/SkV8Example/snow.js
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/SkV8Example/snow.js')
-rw-r--r--experimental/SkV8Example/snow.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/experimental/SkV8Example/snow.js b/experimental/SkV8Example/snow.js
index f3527dbd73..4640fd69f7 100644
--- a/experimental/SkV8Example/snow.js
+++ b/experimental/SkV8Example/snow.js
@@ -1,9 +1,9 @@
var IS_SKV8 = typeof document == "undefined";
-var HAS_PATH = typeof Path != "undefined";
+var HAS_PATH = typeof Path2D != "undefined";
function circlePath(r) {
if (HAS_PATH) {
- var p = new Path();
+ var p = new Path2D();
p.arc(0, 0, r, 0, 2*Math.PI);
p.closePath();
return p;