[gegl/soc-2011-warp: 28/31] 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: 28/31] warp: set the range for the strength to 1-->100
- Date: Thu, 4 Aug 2011 16:07:38 +0000 (UTC)
commit 38c2ee01f134e7c5523ecb017503b4614ecbc774
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]