下圖是「Script-Fu:Alien Grow」對話盒,為了方便放在文章中,產生較小一點的解說圖,文字設為「Gimp」,字型大小設為72。

- 執行[影像] / 檔案 / 新增,產生大小256x256透明底色的影像。
- 用文字工具,(產生較小一點的文字發光效果),字型大小72,寫上Gimp,此時只有一個圖層,將此圖層更名為Gimp,讓名稱與所寫的文字相同)。此時,在透明層寫上黑色字體Gimp,如下圖所示。

- 前面的步驟,對應的程式碼
85: (img (car (gimp-image-new 256 256 RGB)))
86: (border (/ size 4))
87: (grow (/ size 30))
88: (feather (/ size 4))
89: (text-layer (car (gimp-text-fontname img
90: -1 0 0 text border TRUE
91: size PIXELS font)))
92: (width (car (gimp-drawable-width text-layer)))
93: (height (car (gimp-drawable-height text-layer)))
- 調整影像大小,將「Gimp」圖層調成適當大小。

- 對應的程式碼
25: (script-fu-util-image-resize-from-layer img logo-layer)
- 在圖層面版內,產生2個新的圖層,一個名為Background圖層,一個名為Alien Glow圖層。3個圖層由上到下的排列順序為:Gimp、Alien Glow、Background。

- 對應的程式碼
14: (bg-layer (car (gimp-layer-new img
15: width height RGB-IMAGE
16: "Background" 100 NORMAL-MODE)))
17: (glow-layer (car (gimp-layer-new img
18: width height RGBA-IMAGE
19: "Alien Glow" 100 NORMAL-MODE)))
……………………
26: (script-fu-util-image-add-layers img glow-layer bg-layer)
- 將Background圖層底色變黑色。在圖層面版內,選到「Gimp」圖層,勾選「鎖定」項目(Lock Alpha Channel)。

- 使用顏料桶填色工具,用背景色將Background圖層,由透明變為黑色。

- 前面的步驟,對應的程式碼
27: (gimp-layer-set-lock-alpha logo-layer TRUE)
28: (gimp-context-set-background '(0 0 0))
29: (gimp-edit-fill bg-layer BACKGROUND-FILL)