Thu Apr 22, 2021 8:39 am
Thu Apr 22, 2021 9:07 am
(define (script-fu_kp24_thing image drawable message colour option)
(let*
(
(one 1)
(two 2)
)
(define (my_add first second)
(+ first second)
)
(define (my_multiply first second)
(* first second)
)
(define (id_numbers first second)
(gimp-message (string-append "id1: " (number->string first) " id2: " (number->string second)))
)
(gimp-message (number->string (my_add one two)))
(gimp-message (number->string (my_multiply one two)))
(id_numbers image drawable)
)
)
Thu Apr 22, 2021 9:52 am
Thu Apr 22, 2021 10:58 am
(define (script-fu_kp24_thing image drawable message colour option)
(let*
(
(one 1)
(two 2)
)
(define my_variable 3)
(define (my_add first second)
(+ first second)
)
(define (my_multiply first second)
(* first second)
)
(define (mult_by_variable first)
(* first my_variable)
)
(define (id_numbers first second)
(gimp-message (string-append "id1: " (number->string first) " id2: " (number->string second)))
)
(gimp-message (number->string (my_add one two)))
(gimp-message (number->string (my_multiply one two)))
(gimp-message (string-append "Before: " (number->string (mult_by_variable two))))
(set! my_variable 4)
(gimp-message (string-append "After: " (number->string (mult_by_variable two))))
(id_numbers image drawable)
)
)
Thu Apr 22, 2021 11:23 am
Thu Apr 22, 2021 11:47 am
Thu Apr 22, 2021 12:06 pm
Fri Apr 23, 2021 6:54 am
ThomasLahme wrote:Excuse me ;-)
I'm very new to Sheme - which is the Master-Language of Script-Fu
Mon Apr 26, 2021 12:19 pm