diff --git a/examples/Animated/AnimatedStar.html b/examples/Animated/AnimatedStar.html index f8f3412a..fde3eaf7 100644 --- a/examples/Animated/AnimatedStar.html +++ b/examples/Animated/AnimatedStar.html @@ -13,13 +13,13 @@ count: 34, points: 32 }; - + for (var i = 0; i < values.count; i++) { var offset = new Point(20 + 10 * i, 0); var path = new Path(); path.fillColor = i % 2 ? 'red' : 'black'; path.closed = true; - + var l = offset.length; for (var j = 0; j < values.points * 2; j++) { offset.angle += 360 / values.points; @@ -39,7 +39,7 @@ item.rotate(angle); } } - + // Reposition the paths whenever the window is resized: function onResize(event) { project.activeLayer.position = view.center; diff --git a/examples/Animated/Lines.html b/examples/Animated/Lines.html index 93b5b572..0e4a2d62 100644 --- a/examples/Animated/Lines.html +++ b/examples/Animated/Lines.html @@ -19,7 +19,7 @@ var mousePos = position; var children = project.activeLayer.children; var count = 0; - + function iterate() { count++; var delta = (mousePos - position); @@ -35,11 +35,11 @@ path.fillColor.hue = count - length; } } - + function onFrame() { iterate(); } - + function onMouseMove(event) { iterate(); mousePos = event.point;