[gegl/soc-2011-warp: 16/20] warp: set the range for the strength to 1-->100
- From: Michael Murà <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/soc-2011-warp: 16/20] warp: set the range for the strength to 1-->100
- Date: Mon, 5 Sep 2011 08:31:44 +0000 (UTC)
commit 27d0388e0147f9aa5334d95d95c4210188566845
Author: Michael Murà <batolettre gmail com>
Date: Tue Aug 2 21:54:47 2011 +0200
warp: set the range for the strength to 1-->100
operations/workshop/warp.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/operations/workshop/warp.c b/operations/workshop/warp.c
index bcbee57..5afc608 100644
--- a/operations/workshop/warp.c
+++ b/operations/workshop/warp.c
@@ -29,7 +29,7 @@
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double (strength, _("Strength"), 0.0, 100.0, 1.0,
+gegl_chant_double (strength, _("Strength"), 0.0, 100.0, 50,
_("Effect Strength"))
gegl_chant_double (size, _("Size"), 1.0, 10000.0, 40.0,
_("Effect Size"))
@@ -250,9 +250,9 @@ stamp (GeglChantO *o,
while (n_pixels--)
{
- influence = o->strength * get_stamp_force (o,
- x_iter - x,
- y_iter - y);
+ influence = 0.01 * o->strength * get_stamp_force (o,
+ x_iter - x,
+ y_iter - y);
switch (o->behavior)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]