Scheme code
(define width (+ (car text-ext) 20 blur-radius))
(define height (+ (list-ref text-ext 1) 20 blur-radius))
Python code
width = text_ext[0] + 20 + blur_radius
height= text_ext[1] + 20 + blur_radius
Scheme code
Python code
Scheme code
(if (> blur-radius 0) (plug-in-gauss-iir RUN-NONINTERACTIVE img ......) )
Python code 要注意縮排
if blur_radius > 0: pdb.plug_in_gauss_iir(img, ......)
Scheme code
(define bg-color "white")
Python code
bg_color = (255, 255, 255)