From bae5589409dcfc8c9eabb82fd9c693371b0e2a81 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sun, 10 Mar 2013 18:04:52 +0100 Subject: [PATCH] Improve Chain example. --- examples/Paperjs.org/Chain.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/Paperjs.org/Chain.html b/examples/Paperjs.org/Chain.html index df550ae1..c7d3ade9 100644 --- a/examples/Paperjs.org/Chain.html +++ b/examples/Paperjs.org/Chain.html @@ -20,14 +20,13 @@ strokeWidth: 20, strokeCap: 'round' }); - var segments = path.segments; var start = view.center / [10, 1]; for (var i = 0; i < points; i++) path.add(start + new Point(i * length, 0)); function onMouseMove(event) { - segments[0].point = event.point; + path.firstSegment.point = event.point; for (var i = 0; i < points - 1; i++) { var segment = path.segments[i]; var nextSegment = segment.next;