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
|
2006-10-16 09:08:54 +08:00
|
|
|
logo-layer
|
|
|
|
size
|
|
|
|
glow-color)
|
|
|
|
(let* (
|
|
|
|
(border (/ size 4))
|
|
|
|
(grow (/ size 30))
|
|
|
|
(feather (/ size 4))
|
|
|
|
(width (car (gimp-drawable-width logo-layer)))
|
|
|
|
(height (car (gimp-drawable-height logo-layer)))
|
|
|
|
(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
|
|
|
|
"Alien Glow" 100 NORMAL-MODE)))
|
|
|
|
)
|
2004-09-23 01:27:20 +08:00
|
|
|
|
|
|
|
(gimp-context-push)
|
2006-10-21 01:55:14 +08:00
|
|
|
|
2003-02-28 01:04:04 +08:00
|
|
|
(gimp-selection-none img)
|
|
|
|
(script-fu-util-image-resize-from-layer img logo-layer)
|
2008-04-12 18:45:42 +08:00
|
|
|
(script-fu-util-image-add-layers img glow-layer bg-layer)
|
2005-07-11 05:17:22 +08:00
|
|
|
(gimp-layer-set-lock-alpha logo-layer TRUE)
|
2004-09-23 02:43:09 +08:00
|
|
|
(gimp-context-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)
|
2004-09-23 02:43:09 +08:00
|
|
|
(gimp-context-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
|
|
|
|
2004-09-23 02:43:09 +08:00
|
|
|
(gimp-context-set-background '(0 0 0))
|
|
|
|
(gimp-context-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
|
2006-10-16 09:08:54 +08:00
|
|
|
GRADIENT-SHAPEBURST-ANGULAR 100 0 REPEAT-NONE FALSE
|
|
|
|
FALSE 0 0 TRUE
|
|
|
|
0 0 1 1)
|
2006-10-21 01:55:14 +08:00
|
|
|
|
2006-10-16 09:08:54 +08:00
|
|
|
(gimp-context-pop)
|
|
|
|
)
|
|
|
|
)
|
2000-06-06 19:52:06 +08:00
|
|
|
|
2006-10-21 01:55:14 +08:00
|
|
|
|
2000-06-06 19:52:06 +08:00
|
|
|
(define (script-fu-alien-glow-logo-alpha img
|
2006-10-16 09:08:54 +08:00
|
|
|
logo-layer
|
|
|
|
size
|
|
|
|
glow-color)
|
2006-10-21 01:55:14 +08:00
|
|
|
(begin
|
|
|
|
(gimp-image-undo-group-start img)
|
|
|
|
(apply-alien-glow-logo-effect img logo-layer size glow-color)
|
|
|
|
(gimp-image-undo-group-end img)
|
|
|
|
(gimp-displays-flush)
|
|
|
|
)
|
2006-10-16 09:08:54 +08:00
|
|
|
)
|
2000-06-06 19:52:06 +08:00
|
|
|
|
|
|
|
(script-fu-register "script-fu-alien-glow-logo-alpha"
|
2006-10-21 01:55:14 +08:00
|
|
|
_"Alien _Glow..."
|
|
|
|
_"Add an eerie glow around the selected region (or alpha)"
|
|
|
|
"Spencer Kimball"
|
|
|
|
"Spencer Kimball"
|
|
|
|
"1997"
|
|
|
|
"RGBA"
|
|
|
|
SF-IMAGE "Image" 0
|
|
|
|
SF-DRAWABLE "Drawable" 0
|
|
|
|
SF-ADJUSTMENT _"Glow size (pixels * 4)" '(150 2 1000 1 10 0 1)
|
|
|
|
SF-COLOR _"Glow color" '(63 252 0)
|
2006-10-16 09:08:54 +08:00
|
|
|
)
|
2000-06-06 19:52:06 +08:00
|
|
|
|
2004-11-19 06:44:28 +08:00
|
|
|
(script-fu-menu-register "script-fu-alien-glow-logo-alpha"
|
2006-10-16 09:08:54 +08:00
|
|
|
"<Image>/Filters/Alpha to Logo")
|
2004-11-19 06:44:28 +08:00
|
|
|
|
2006-10-21 01:55:14 +08:00
|
|
|
|
2000-06-06 19:52:06 +08:00
|
|
|
(define (script-fu-alien-glow-logo text
|
2006-10-16 09:08:54 +08:00
|
|
|
size
|
|
|
|
font
|
|
|
|
glow-color)
|
|
|
|
(let* (
|
|
|
|
(img (car (gimp-image-new 256 256 RGB)))
|
|
|
|
(border (/ size 4))
|
|
|
|
(grow (/ size 30))
|
|
|
|
(feather (/ size 4))
|
2006-10-21 01:55:14 +08:00
|
|
|
(text-layer (car (gimp-text-fontname img
|
|
|
|
-1 0 0 text border TRUE
|
|
|
|
size PIXELS font)))
|
2006-10-16 09:08:54 +08:00
|
|
|
(width (car (gimp-drawable-width text-layer)))
|
|
|
|
(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)
|
|
|
|
(apply-alien-glow-logo-effect img text-layer size glow-color)
|
1999-10-17 08:07:55 +08:00
|
|
|
(gimp-image-undo-enable img)
|
2006-10-16 09:08:54 +08:00
|
|
|
(gimp-display-new img)
|
|
|
|
)
|
|
|
|
)
|
1997-11-25 06:05:25 +08:00
|
|
|
|
|
|
|
(script-fu-register "script-fu-alien-glow-logo"
|
2006-10-21 01:55:14 +08:00
|
|
|
_"Alien _Glow..."
|
|
|
|
_"Create a logo with an alien glow around the text"
|
|
|
|
"Spencer Kimball"
|
|
|
|
"Spencer Kimball"
|
|
|
|
"1997"
|
|
|
|
""
|
|
|
|
SF-STRING _"Text" "ALIEN"
|
|
|
|
SF-ADJUSTMENT _"Font size (pixels)" '(150 2 1000 1 10 0 1)
|
|
|
|
SF-FONT _"Font" "Sans Bold"
|
|
|
|
SF-COLOR _"Glow color" '(63 252 0)
|
2006-10-16 09:08:54 +08:00
|
|
|
)
|
2004-11-19 06:44:28 +08:00
|
|
|
|
|
|
|
(script-fu-menu-register "script-fu-alien-glow-logo"
|
2008-09-19 20:01:12 +08:00
|
|
|
"<Image>/File/Create/Logos")
|