1997-11-25 06:05:25 +08:00
|
|
|
; ALIEN-GLOW
|
|
|
|
; Create a text effect that simulates an eerie alien glow around text
|
|
|
|
|
2000-06-06 19:52:06 +08:00
|
|
|
(define (apply-alien-glow-logo-effect img
|
|
|
|
logo-layer
|
|
|
|
size
|
|
|
|
glow-color)
|
|
|
|
(let* ((border (/ size 4))
|
1997-11-25 06:05:25 +08:00
|
|
|
(grow (/ size 30))
|
|
|
|
(feather (/ size 4))
|
2000-06-06 19:52:06 +08:00
|
|
|
(width (car (gimp-drawable-width logo-layer)))
|
|
|
|
(height (car (gimp-drawable-height logo-layer)))
|
2003-10-16 20:47:33 +08:00
|
|
|
(bg-layer (car (gimp-layer-new img
|
|
|
|
width height RGB-IMAGE
|
|
|
|
"Background" 100 NORMAL-MODE)))
|
|
|
|
(glow-layer (car (gimp-layer-new img
|
|
|
|
width height RGBA-IMAGE
|
2004-09-23 01:27:20 +08:00
|
|
|
"Alien Glow" 100 NORMAL-MODE))))
|
|
|
|
|
|
|
|
(gimp-context-push)
|
2003-07-22 22:24:11 +08:00
|
|
|
|
2003-02-28 01:04:04 +08:00
|
|
|
(gimp-selection-none img)
|
|
|
|
(script-fu-util-image-resize-from-layer img logo-layer)
|
1997-11-25 06:05:25 +08:00
|
|
|
(gimp-image-add-layer img bg-layer 1)
|
|
|
|
(gimp-image-add-layer img glow-layer 1)
|
2000-06-06 19:52:06 +08:00
|
|
|
(gimp-layer-set-preserve-trans logo-layer TRUE)
|
1997-11-25 06:05:25 +08:00
|
|
|
(gimp-palette-set-background '(0 0 0))
|
2003-10-16 20:47:33 +08:00
|
|
|
(gimp-edit-fill bg-layer BACKGROUND-FILL)
|
1998-11-15 04:46:25 +08:00
|
|
|
(gimp-edit-clear glow-layer)
|
2000-06-06 19:52:06 +08:00
|
|
|
(gimp-selection-layer-alpha logo-layer)
|
1997-11-25 06:05:25 +08:00
|
|
|
(gimp-selection-grow img grow)
|
|
|
|
(gimp-selection-feather img feather)
|
2000-03-24 22:54:59 +08:00
|
|
|
(gimp-palette-set-foreground glow-color)
|
2003-10-16 20:47:33 +08:00
|
|
|
(gimp-edit-fill glow-layer FOREGROUND-FILL)
|
1997-11-25 06:05:25 +08:00
|
|
|
(gimp-selection-none img)
|
2003-07-22 22:24:11 +08:00
|
|
|
|
1997-11-25 06:05:25 +08:00
|
|
|
(gimp-palette-set-background '(0 0 0))
|
|
|
|
(gimp-palette-set-foreground '(79 79 79))
|
2003-07-22 22:24:11 +08:00
|
|
|
|
2004-01-05 22:35:19 +08:00
|
|
|
(gimp-edit-blend logo-layer FG-BG-RGB-MODE NORMAL-MODE
|
|
|
|
GRADIENT-SHAPEBURST-ANGULAR 100 0 REPEAT-NONE FALSE
|
|
|
|
FALSE 0 0 TRUE
|
|
|
|
0 0 1 1)
|
2003-07-22 22:24:11 +08:00
|
|
|
|
2004-09-23 01:27:20 +08:00
|
|
|
(gimp-context-pop)))
|
2000-06-06 19:52:06 +08:00
|
|
|
|
|
|
|
(define (script-fu-alien-glow-logo-alpha img
|
|
|
|
logo-layer
|
|
|
|
size
|
|
|
|
glow-color)
|
|
|
|
(begin
|
2003-12-05 22:18:47 +08:00
|
|
|
(gimp-image-undo-group-start img)
|
2000-06-06 19:52:06 +08:00
|
|
|
(apply-alien-glow-logo-effect img logo-layer size glow-color)
|
2003-12-05 22:18:47 +08:00
|
|
|
(gimp-image-undo-group-end img)
|
2000-06-06 19:52:06 +08:00
|
|
|
(gimp-displays-flush)))
|
|
|
|
|
|
|
|
(script-fu-register "script-fu-alien-glow-logo-alpha"
|
2003-08-12 01:14:32 +08:00
|
|
|
_"<Image>/Script-Fu/Alpha to Logo/Alien _Glow..."
|
2000-06-06 19:52:06 +08:00
|
|
|
"Create an X-Files-esque logo with the specified glow color"
|
|
|
|
"Spencer Kimball"
|
|
|
|
"Spencer Kimball"
|
|
|
|
"1997"
|
|
|
|
"RGBA"
|
2003-07-22 22:24:11 +08:00
|
|
|
SF-IMAGE "Image" 0
|
|
|
|
SF-DRAWABLE "Drawable" 0
|
2004-06-23 02:20:03 +08:00
|
|
|
SF-ADJUSTMENT _"Glow size (pixels * 4)" '(150 2 1000 1 10 0 1)
|
|
|
|
SF-COLOR _"Glow color" '(63 252 0))
|
2000-06-06 19:52:06 +08:00
|
|
|
|
|
|
|
(define (script-fu-alien-glow-logo text
|
|
|
|
size
|
|
|
|
font
|
|
|
|
glow-color)
|
|
|
|
(let* ((img (car (gimp-image-new 256 256 RGB)))
|
|
|
|
(border (/ size 4))
|
|
|
|
(grow (/ size 30))
|
|
|
|
(feather (/ size 4))
|
2004-09-23 01:27:20 +08:00
|
|
|
(text-layer (car (gimp-text-fontname img
|
|
|
|
-1 0 0 text border TRUE
|
|
|
|
size PIXELS font)))
|
2000-06-06 19:52:06 +08:00
|
|
|
(width (car (gimp-drawable-width text-layer)))
|
2004-09-23 01:27:20 +08:00
|
|
|
(height (car (gimp-drawable-height text-layer))))
|
2003-07-22 22:24:11 +08:00
|
|
|
|
2000-06-06 19:52:06 +08:00
|
|
|
(gimp-image-undo-disable img)
|
2003-12-04 00:39:32 +08:00
|
|
|
(gimp-drawable-set-name text-layer text)
|
2000-06-06 19:52:06 +08:00
|
|
|
(apply-alien-glow-logo-effect img text-layer size glow-color)
|
1999-10-17 08:07:55 +08:00
|
|
|
(gimp-image-undo-enable img)
|
1997-11-25 06:05:25 +08:00
|
|
|
(gimp-display-new img)))
|
|
|
|
|
|
|
|
(script-fu-register "script-fu-alien-glow-logo"
|
2003-08-12 01:14:32 +08:00
|
|
|
_"<Toolbox>/Xtns/Script-Fu/Logos/Alien _Glow..."
|
1997-11-25 06:05:25 +08:00
|
|
|
"Create an X-Files-esque logo with the specified glow color"
|
|
|
|
"Spencer Kimball"
|
|
|
|
"Spencer Kimball"
|
|
|
|
"1997"
|
|
|
|
""
|
2003-07-22 22:24:11 +08:00
|
|
|
SF-STRING _"Text" "ALIEN"
|
2004-06-23 02:20:03 +08:00
|
|
|
SF-ADJUSTMENT _"Font size (pixels)" '(150 2 1000 1 10 0 1)
|
2003-07-22 22:24:11 +08:00
|
|
|
SF-FONT _"Font" "Futura_Poster"
|
2004-06-23 02:20:03 +08:00
|
|
|
SF-COLOR _"Glow color" '(63 252 0))
|