summaryrefslogtreecommitdiff
path: root/2.10/przem-apply-waves-effect.scm
diff options
context:
space:
mode:
authorPrzemysław <przem@prymula.ct8.pl>2025-02-23 11:49:29 +0100
committerPrzemysław <przem@prymula.ct8.pl>2025-02-23 11:49:29 +0100
commit2c6a3dde02391acff7fbedbba46265d9a3f83683 (patch)
treef6f7d447b819796b4897136dc34ae8459d341d80 /2.10/przem-apply-waves-effect.scm
parent162a478ff16bba9e6eea4c88e77a45595d26cfad (diff)
przem-apply-waves-effect.scm-2.250223-0
Diffstat (limited to '2.10/przem-apply-waves-effect.scm')
-rw-r--r--2.10/przem-apply-waves-effect.scm39
1 files changed, 39 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")