From 52175da3e97ce95e36c33b5b80b5a835b080a55a Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Tue, 21 Jun 2011 20:10:23 +0200 Subject: [PATCH] Improve RoundedRectangles example. --- examples/Animated/RoundedRectangles.html | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/examples/Animated/RoundedRectangles.html b/examples/Animated/RoundedRectangles.html index 1d4b0aa4..be8957bf 100644 --- a/examples/Animated/RoundedRectangles.html +++ b/examples/Animated/RoundedRectangles.html @@ -17,14 +17,9 @@ path.fillColor = colors[i % 4]; var scale = (1 - i / amount) * 20; path.scale(scale); - new PlacedSymbol(path); } - function onMouseDown(event) { - mousePoint = event.point; - } - - function onMouseDrag(event) { + function onMouseMove(event) { mousePoint = event.point; } @@ -35,7 +30,7 @@ var delta = (mousePoint - item.position) / (i + 5); item.rotate(Math.sin((event.count + i) / 10) * 7); if (delta.length > 0.1) - item.translate(delta); + item.position += delta; } }