From 383e574368c98bcea4159c4abb46352ac0d3c66e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 14 Jun 2016 17:22:54 +0200 Subject: [PATCH] Sync online examples back to repo, and some minor cleanups. --- examples/Animated/AnimatedStar.html | 2 +- examples/Animated/Smoothing.html | 2 +- examples/Games/Paperoids.html | 4 +-- examples/Paperjs.org/Chain.html | 2 +- examples/Paperjs.org/FutureSplash.html | 2 +- examples/Paperjs.org/Qbertify.html | 40 +++++++++++++++----------- examples/Paperjs.org/SpiralRaster.html | 19 ++++++------ 7 files changed, 40 insertions(+), 31 deletions(-) diff --git a/examples/Animated/AnimatedStar.html b/examples/Animated/AnimatedStar.html index 6046c3c1..9a2458f2 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( { type: 'continuous' }); + path.smooth({ type: 'continuous' }); layer.insertChild(0, new Group({ children: [path], applyMatrix: false diff --git a/examples/Animated/Smoothing.html b/examples/Animated/Smoothing.html index 9e0dc7b0..d397e430 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( { type: 'continuous' }); + path.smooth({ type: 'continuous' }); } function onMouseMove(event) { diff --git a/examples/Games/Paperoids.html b/examples/Games/Paperoids.html index 08113832..9a1f816f 100644 --- a/examples/Games/Paperoids.html +++ b/examples/Games/Paperoids.html @@ -438,7 +438,7 @@ currentLives--; this.display(); Ship.destroy(); - setTimeout( function() { + setTimeout(function() { if (currentLives == 0) { Game.over(); } else { @@ -448,7 +448,7 @@ }, display: function() { group.removeChildren(); - for (var i=0;i