[gegl] hsv-noise: adjust hue parameter range



commit eb079a4d36ead3027380c17ecd3065eb439cc60b
Author: Simon Budig <simon budig de>
Date:   Tue May 21 01:16:50 2013 +0200

    hsv-noise: adjust hue parameter range

 operations/common/noise-hsv.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/noise-hsv.c b/operations/common/noise-hsv.c
index 142203e..0133024 100644
--- a/operations/common/noise-hsv.c
+++ b/operations/common/noise-hsv.c
@@ -29,7 +29,7 @@ gegl_chant_int    (holdness, _("Holdness"),
                    _("Holdness"))
 
 gegl_chant_double (hue_distance, _("Hue"),
-                   0.0, 0.5, 0.02,
+                   0.0, 180.0, 3.0,
                    _("Hue"))
 
 gegl_chant_double (saturation_distance, _("Saturation"),
@@ -129,7 +129,7 @@ process (GeglOperation       *operation,
 
     /* there is no need for scattering hue of desaturated pixels here */
     if ((o->hue_distance > 0) && (saturation > 0))
-      hue = randomize_value (hue, 0.0, 1.0, TRUE, o->hue_distance, o->holdness);
+      hue = randomize_value (hue, 0.0, 1.0, TRUE, o->hue_distance / 360.0, o->holdness);
 
     /* desaturated pixels get random hue before increasing saturation */
     if (o->saturation_distance > 0) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]