From 703fb3d06e88257ac73c1d1a0ec6ca33a64f4371 Mon Sep 17 00:00:00 2001 From: Pushkar Joshi Date: Wed, 7 Mar 2012 14:33:21 -0800 Subject: implement stroke hardness such that it is percentage of the stroke width that's fully the color of the brush AND add a smoothing flag for the brush options --- .../brush-properties.reel/brush-properties.html | 4 +- .../brush-properties.reel/brush-properties.js | 3 + js/lib/geom/brush-stroke.js | 66 +++++++--------------- js/tools/BrushTool.js | 6 ++ 4 files changed, 31 insertions(+), 48 deletions(-) diff --git a/js/components/tools-properties/brush-properties.reel/brush-properties.html b/js/components/tools-properties/brush-properties.reel/brush-properties.html index af07b3f2..6d4852e6 100755 --- a/js/components/tools-properties/brush-properties.reel/brush-properties.html +++ b/js/components/tools-properties/brush-properties.reel/brush-properties.html @@ -43,7 +43,8 @@ "properties": { "element": {"#": "brushProperties"}, "_strokeSize": {"@": "strokeSizeHT"}, - "_strokeHardness": {"@": "strokeHardnessHT"} + "_strokeHardness": {"@": "strokeHardnessHT"}, + "_doSmoothing": {"@": "doSmoothing"} } } } @@ -58,6 +59,7 @@
+