diff options
author | Pushkar Joshi | 2012-03-07 14:33:21 -0800 |
---|---|---|
committer | Pushkar Joshi | 2012-03-07 14:33:21 -0800 |
commit | 703fb3d06e88257ac73c1d1a0ec6ca33a64f4371 (patch) | |
tree | 440d068584f7ccda73368b4857189f8b528e6416 /js/tools | |
parent | 353bfa04a6153b0146a0c73b6e6bb0e5f4b23194 (diff) | |
download | ninja-703fb3d06e88257ac73c1d1a0ec6ca33a64f4371.tar.gz |
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
Diffstat (limited to 'js/tools')
-rw-r--r-- | js/tools/BrushTool.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/tools/BrushTool.js b/js/tools/BrushTool.js index dd201f33..1e1df0a4 100644 --- a/js/tools/BrushTool.js +++ b/js/tools/BrushTool.js | |||
@@ -88,6 +88,12 @@ exports.BrushTool = Montage.create(ShapeTool, { | |||
88 | strokeHardness = ShapesController.GetValueInPixels(this.options.strokeHardness.value, this.options.strokeHardness.units); | 88 | strokeHardness = ShapesController.GetValueInPixels(this.options.strokeHardness.value, this.options.strokeHardness.units); |
89 | } | 89 | } |
90 | this._selectedBrushStroke.setStrokeHardness(strokeHardness); | 90 | this._selectedBrushStroke.setStrokeHardness(strokeHardness); |
91 | |||
92 | var doSmoothing = false; | ||
93 | if (this.options.doSmoothing){ | ||
94 | doSmoothing = this.options.doSmoothing.value; | ||
95 | } | ||
96 | this._selectedBrushStroke.setDoSmoothing(doSmoothing); | ||
91 | } | 97 | } |
92 | NJevent("enableStageMove");//stageManagerModule.stageManager.enableMouseMove(); | 98 | NJevent("enableStageMove");//stageManagerModule.stageManager.enableMouseMove(); |
93 | } //value: function (event) { | 99 | } //value: function (event) { |