From ace2e3e13bdb00fb60a655e7fb2249733d5d3c86 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sat, 9 Mar 2013 16:02:11 +0100 Subject: [PATCH] Improve several examples. --- examples/Scripts/Resize.html | 22 +++++++++++++++------- examples/Scripts/RoundRectangle.html | 11 +++++++---- examples/Tools/Circles.html | 18 ++++++++---------- examples/Tools/DrippingBrush.html | 5 +++-- 4 files changed, 33 insertions(+), 23 deletions(-) diff --git a/examples/Scripts/Resize.html b/examples/Scripts/Resize.html index 705adc96..2ba898d7 100644 --- a/examples/Scripts/Resize.html +++ b/examples/Scripts/Resize.html @@ -6,15 +6,23 @@ diff --git a/examples/Tools/Circles.html b/examples/Tools/Circles.html index 8a6f9241..55916418 100644 --- a/examples/Tools/Circles.html +++ b/examples/Tools/Circles.html @@ -6,20 +6,18 @@ diff --git a/examples/Tools/DrippingBrush.html b/examples/Tools/DrippingBrush.html index 305d646e..69abe615 100644 --- a/examples/Tools/DrippingBrush.html +++ b/examples/Tools/DrippingBrush.html @@ -14,8 +14,9 @@ if (event.delta.length > minSize) { // If there is no path, make one: if (!path) { - path = new Path(); - path.fillColor = 'black'; + path = new Path({ + fillColor: 'black' + }); path.add(event.lastPoint); }