summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--2.10/przem-apply-waves-effect.scm39
-rw-r--r--changelog.md3
2 files changed, 42 insertions, 0 deletions
diff --git a/2.10/przem-apply-waves-effect.scm b/2.10/przem-apply-waves-effect.scm
new file mode 100644
index 0000000..1578bc9
--- /dev/null
+++ b/2.10/przem-apply-waves-effect.scm
@@ -0,0 +1,39 @@
+; apply-waves-effect - Script-fu dodający efekt fali
+; author: PRP
+; licencja: Public Domain
+; Gdańsk - 26-02-2025
+; ver. 1.250226-0
+
+;(define (przem-apply-waves-effect image drawable amplitude wavelength phase type)
+(define (przem-apply-waves-effect image drawable)
+
+ (let* (
+ (width (car (gimp-image-width image)))
+ (height (car (gimp-image-height image)))
+ (amplitude 10) ; Amplituda fal
+ (wavelength 50) ; Długość fali
+ (type 0) ; Typ fali (0 - sinusoidalna, 1 - trójkątna, 2 - prostokątna)
+ (phase 0) ; Faza fali
+ )
+ (plug-in-waves RUN-NONINTERACTIVE image drawable amplitude wavelength type phase)
+ )
+)
+
+
+(script-fu-register "przem-apply-waves-effect"
+ _"Apply a waves effect to the image."
+ _"Dodaje efekt fali do zdjęcia"
+ "Przenmysław R. Pietraszczyk"
+ "Public Domain"
+ "2025-02-23"
+ "RGB*, GRAY*"
+ SF-IMAGE "Image" 0
+ SF-DRAWABLE "Drawable" 0
+ ;SF-ADJUSTMENT "Amplitude" '(10 0 100 1 10 0 0)
+ ;SF-ADJUSTMENT "Wave Length" '(50 0 100 1 10 0 0)
+ ;SF-ADJUSTMENT "Phase Wave" '(0 0 100 1 10 0 0)
+ ;SF-OPTION "Type" '("Sinusoidal" "Triangle" "Rectangular")
+
+)
+
+(script-fu-menu-register "przem-apply-waves-effect" "<Image>/Filters/PIETRASZCZYK")
diff --git a/changelog.md b/changelog.md
index 6436b7a..5edc4d7 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,3 +1,6 @@
+# [2.250223-0] przem-apply-waves-effect.scm
+* Dodanie nowego filtra
+
# [2.250222-0] przem-apply-sepia-v3.scm
* Korekta w SF_OPTION