From af799976d4ecf329d71d79a64d09c61cc4ee2313 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Fri, 15 Jan 2016 11:29:31 +0100 Subject: [PATCH] Explicitly use continuous smooth in a couple of examples. --- examples/Animated/AnimatedStar.html | 2 +- examples/Animated/Smoothing.html | 2 +- examples/Paperjs.org/Chain.html | 2 +- examples/Paperjs.org/FutureSplash.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/Animated/AnimatedStar.html b/examples/Animated/AnimatedStar.html index 67ba8ab8..931178f4 100644 --- a/examples/Animated/AnimatedStar.html +++ b/examples/Animated/AnimatedStar.html @@ -26,7 +26,7 @@ var vector = offset.normalize(l * (j % 2 ? 0.1 : -0.1)); path.add(offset + vector); } - path.smooth(); + path.smooth({ continuous: true }); layer.insertChild(0, new Group({ children: [path], applyMatrix: false diff --git a/examples/Animated/Smoothing.html b/examples/Animated/Smoothing.html index 0ecd93c2..ba2fe018 100644 --- a/examples/Animated/Smoothing.html +++ b/examples/Animated/Smoothing.html @@ -39,7 +39,7 @@ path.segments[i].point.y = yPos; } if (smooth) - path.smooth(); + path.smooth({ continuous: true }); } function onMouseMove(event) { diff --git a/examples/Paperjs.org/Chain.html b/examples/Paperjs.org/Chain.html index 19cae7e8..f6b527d9 100644 --- a/examples/Paperjs.org/Chain.html +++ b/examples/Paperjs.org/Chain.html @@ -34,7 +34,7 @@ vector.length = length; nextSegment.point = segment.point - vector; } - path.smooth(); + path.smooth({ continuous: true }); } function onMouseDown(event) { diff --git a/examples/Paperjs.org/FutureSplash.html b/examples/Paperjs.org/FutureSplash.html index 8dbcc049..e053f844 100644 --- a/examples/Paperjs.org/FutureSplash.html +++ b/examples/Paperjs.org/FutureSplash.html @@ -105,7 +105,7 @@ for (var j = 0, l = springs.length; j < l; j++) { springs[j].update(); } - path.smooth(); + path.smooth({ continuous: true }); } function onKeyDown(event) {