[gimp] script-fu: opacity in SF-BRUSH is 0..100 since at least GIMP 2.2



commit 2d260e8de17a078f994fab26588abf1cbf6d6db6
Author: Michael Natterer <mitch gimp org>
Date:   Thu Nov 24 22:15:54 2011 +0100

    script-fu: opacity in SF-BRUSH is 0..100 since at least GIMP 2.2

 plug-ins/script-fu/scripts/spyrogimp.scm   |    4 ++--
 plug-ins/script-fu/scripts/test-sphere.scm |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/script-fu/scripts/spyrogimp.scm b/plug-ins/script-fu/scripts/spyrogimp.scm
index 445b498..bca562b 100644
--- a/plug-ins/script-fu/scripts/spyrogimp.scm
+++ b/plug-ins/script-fu/scripts/spyrogimp.scm
@@ -234,7 +234,7 @@
       ; Set new color, brush, opacity, paint mode.
       (gimp-context-set-foreground color)
       (gimp-context-set-brush (car brush))
-      (gimp-context-set-opacity (* 100 (car (cdr brush))))
+      (gimp-context-set-opacity (car (cdr brush)))
       (gimp-context-set-paint-mode (car (cdr (cdr (cdr brush)))))
 
       (gimp-progress-set-text _"Rendering Spyro")
@@ -342,7 +342,7 @@
   SF-OPTION     _"Tool"          '(_"Pencil"
                                    _"Brush"
                                    _"Airbrush")
-  SF-BRUSH      _"Brush"         '("Circle (01)" 1.0 -1 0)
+  SF-BRUSH      _"Brush"         '("Circle (01)" 100 -1 0)
 
   SF-OPTION     _"Color method"  '(_"Solid Color"
                                    _"Gradient: Loop Sawtooth"
diff --git a/plug-ins/script-fu/scripts/test-sphere.scm b/plug-ins/script-fu/scripts/test-sphere.scm
index 2b4cbe1..583c3c3 100644
--- a/plug-ins/script-fu/scripts/test-sphere.scm
+++ b/plug-ins/script-fu/scripts/test-sphere.scm
@@ -275,7 +275,7 @@
   SF-TOGGLE     "Shadow"             TRUE
   SF-COLOR      "Background color"   "white"
   SF-COLOR      "Sphere color"       "red"
-  SF-BRUSH      "Brush"              '("Circle (03)" 1.0 44 0)
+  SF-BRUSH      "Brush"              '("Circle (03)" 100 44 0)
   SF-STRING     "Text"               "Tiny-Fu rocks!"
   SF-TEXT       "Multi-line text"    "Hello,\nWorld!"
   SF-PATTERN    "Pattern"            "Maple Leaves"



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