½Æ»s¤@­ÓScript-Fuµ{¦¡¡Gslime2.scm

 

 

        ­n¼gScript-Fuµ{¦¡«e¡A¥ý½Æ»s¤@­ÓScript-Fuµ{¦¡¡A¬ÝScript-Fuµ{¦¡¬O¦p¦ó¹B§@ªº¡C

 

¤@¡B¥Ø¿ý»P¸ô®|¡G

Linuxªº¨Ï¥ÎªÌ

¦bLinux¤U·í§A²Ä¤@¦¸±Ò°ÊGimpµ{¦¡®É¡AGimpµ{¦¡·|¦b¨Ï¥ÎªÌªº®Ú¥Ø¿ý¤U²£¥Í .gimpªºÁôÂåؿý¡AÀx¦s¨Ï¥ÎªÌ»PGimp¬ÛÃöªº¸ê®Æ¡C .gimp¥Ø¿ý¤UÁÙ¦³³\¦h¤l¥Ø¿ý¡A¤@¶}©l³o¨Ç¥Ø¿ý³£¬OªÅ¥Ø¿ý¡Abrushes¥Ø¿ý¥Î¨ÓÀx¦s¨Ï¥ÎªÌ¦Û¤v©Ò»s§@ªºbrushÀɮסApatterns¥Ø¿ý¥Î¨ÓÀx¦s¨Ï¥ÎªÌ¦Û¤v©Ò»s§@ªºpatternÀɮסAscripts¥Ø¿ý¥Î¨ÓÀx¦s¨Ï¥ÎªÌ¦Û¤v©Ò»s§@ªºscriptsÀɮסA¤@¶}©l³o¨Ç¥Ø¿ý³£¬OªÅ¥Ø¿ý¡C

¦ÓGimpµ{¦¡ªº¦w¸Ë¥Ø¿ý¡]§Úªº¬O¡Ggimp¡^¤U¤]¦³¤@¨Ç¤l¥Ø¿ý¡A¥Î¨ÓÀx¦sGimpµ{¦¡¤w¦³ªºbrushÀɮסBpatternÀɮסBscript_fuÀɮסBplug_inÀɮסB¡B¡B¡C±N./gimp/scripts/slime.scmÀɽƻs¤@¥÷¨ì~./gimp/scripts/¥Ø¿ý¤U¡A±NÀɦW§ïÅܬ°slime2.scm¡C

       

Window98ªº¨Ï¥ÎªÌ

­Y¬O¦bWin98¤U¨Ï¥ÎGimp¡A²Ä¤@¦¸±Ò°ÊGimpµ{¦¡®É¡AGimpµ{¦¡·|¦bªº¦w¸Ë¥Ø¿ý¤U¡A¬°¨Ï¥ÎªÌ²£¥Í _gimp1.2.user_nameªº¥Ø¿ý¡]¤£¬OÁôÂåؿý¡^¡C§Úµn¤JWin98ªº¦W¦rsclee¡A§ÚªºGimpµ{¦¡¦w¸Ë¥Ø¿ý¡GC:\Program Files\GIMP\¡AGimp¬°§Ú²£¥Íªº¥Ø¿ý¡GC:\Program Files\GIMP\_gimp1.2.sclee¡C

±NC:\Program Files\GIMP\scripts\slime.scmÀɽƻs¤@¥÷¨ìC:\Program Files\GIMP\_gimp1.2.sclee\ scripts\¥Ø¿ý¤U¡A±NÀɦW§ïÅܬ°slime2.scm¡C

 

¤G¡Bslime2.scmµ{¦¡½X¡G

l          ½Æ»sslime.scmÀɦ¨slime2.scm«á

l          ¨Ï¥Î¤å¦r½s¿è¾¹­×§ïslime2.scmÀÉ

l          ¥H¤U¬Oslime2.scmµ{¦¡½X­×§ïªº³¡¥÷

l          ²Ä1¦æscript-fu-slime-logo§ï¬° script-fu-slime-logo2

l          ²Ä35¦æscript-fu-slime-logo§ï¬° script-fu-slime-logo2

l          ²Ä36¦æSlime§ï¬°Slime2

 

1: (define (script-fu-slime-logo2 text size font)

2:   (let* ((img (car (gimp-image-new 256 256 RGB)))

3:         (text-layer (car (gimp-text-fontname img -1 0 0 text 30 TRUE size PIXELS font)))

4:         (width (car (gimp-drawable-width text-layer)))

5:         (height (* (car (gimp-drawable-height text-layer)) 1.3))

6:     (layer1 (car (gimp-layer-new img width height RGBA_IMAGE "Back" 100 NORMAL))))

7:

²Ä1¦æ

8:  ;; put the text white

9:    (gimp-invert text-layer)

10: ;; put the background black

11:     (gimp-palette-set-background '(0 0 0))

12:     (gimp-image-add-layer img layer1 1)

13:     (gimp-edit-fill layer1 FG-IMAGE-FILL)

14: ;; Resize the image

15:    (gimp-image-resize img width height 0 0)

16: ;; merge the text and the bg

17:    (set! sboub (car (gimp-image-merge-down img text-layer 0)))

18: ;; rotate the image from 90 degress

19:    (plug-in-rotate 1 img sboub 1 TRUE)

20: ;; put some wind

21:    (plug-in-wind 1 img sboub 10 1 8 1 1)

22: ;; rotate back

23:    (plug-in-rotate 1 img sboub 3 TRUE)

24: ;; wave it

25:    (plug-in-waves 1 img sboub 4 0 50 0 0)

26: ;; blur

27:    (plug-in-gauss-iir 1 img sboub 5 1 1)

28: ;; change the color to give the slime

29:    (gimp-color-balance sboub 0 1 -100 0 -100)

30:    (gimp-color-balance sboub 2 1 100 0 10)

31: ;; display

32:    (gimp-display-new img)))

33:

34:

 

35: (script-fu-register "script-fu-slime-logo2"

36:                     "<Toolbox>/Xtns/Script-Fu/Logos/Slime2"

37:                     "Slime yourself..."

38:

39:                     "Jean-Philippe Turcat (cmrjpt@soc.staffs.ac.uk)"

40:                     "Jean-Philippe Turcat"

41:                     "08/06/1999"

42:                     ""

43:                     SF-STRING "Text String" "Gimp"

44:                     SF-ADJUSTMENT "Font Size (pixels)" '(72 2 1000 1 10 0 1)

45:                     SF-FONT "Font" "-*-ComicsCarToon-*-r-*-*-24-*-*-*-p-*-*-*")

²Ä35¦æ

²Ä36¦æ

 

¥vµÜ©i¦rÅé

¿ï³æ

l          ­YÁÙ¥¼°õ¦æGimpµ{¦¡¡A½Ð±Ò°ÊGimpµ{¦¡¡C

l          ­Y§A¤w°õ¦æGimpµ{¦¡¡A°õ¦æ[Gimp] -> Xtrns -> Script-Fu -> Refresh¡A§ó·sGimpªºµ{§Ç¸ê®Æ®w¤ºªº¸ê®Æ¡C

l          ³o®É­ÔScript-Fu / Logos¤ºªº¤l¿ï³æ¦h¤FSlime2³o­Ó¿ï¶µ¡C

l          °õ¦æ[Gimp] -> Xtrns -> Script-Fu -> Logos -> Slime2·|²£¥Í¤@±i¥vµÜ©i¦rÅ骺Gimp¥|­Ó¦rªº¹Ï¡C

 

¤T¡Bµ{¦¡½X»Pµøµ¡¬É­±ªºÃö«Y¡G

DB Browser¹ï¸Ü²°

DB Browser¹ï¸Ü²°ªº¤@³¡¤À

°õ¦æ[Gimp] -> DB Browser¡A

¬d¸ßscript-fu-slime-logo2³o¨ç¼Æ

 

slime2.scmµ{¦¡½X²Ä35¦æ

script-fu-register "script-fu-slime-logo2"

¥Nªí¸òµ{§Ç¸ê®Æ®wµù¥U¨ç¦¡¡C

 

DB Browser¹ï¸Ü²°¡A©ÒÅã¥Üªº¸ê°T»Pµ{¦¡½Xªº¹ïÀ³Ãö«Y¬°¡G

¹ï¸Ü²°°Ñ¼Æ

Slime2.scmµ{¦¡½X

Name:

µ{¦¡½X²Ä35¦æ

Blurb:

²Ä36¦æ

In:

²Ä42¦æ¨ì²Ä45¦æ

Help

²Ä37¦æ

Author

²Ä39¦æ

Date

²Ä40¦æ

Copyright:

²Ä41¦æ

 


¿ï³æ¸ô®|

¿ï³æ¸ô®|

 

µ{¦¡½X²Ä36¦æ

"<Toolbox>/Xtns/Script-Fu/Logos/Slime2"

¥Nªíslime2.scm³o­Óscript_fu¦b¨º¤@­Ó¿ï³æ¸ô®|¡C

 

¹ï¸Ü²°ªº°Ñ¼Æ³]©w

Logos/Slime2¹ï¸Ü²°

Logos/Slime2¹ï¸Ü²°¡A©ÒÅã¥Üªº¸ê°T»Pµ{¦¡½Xªº¹ïÀ³Ãö«Y¬°¡G

¹ï¸Ü²°°Ñ¼Æ³]©w

µ{¦¡½X

Text String:Gimp

²Ä43¦æ

Font Size(pixels):72

²Ä44¦æ

Font: COMICSCARTOON

²Ä45¦æ

 


°Ñ¼Æªº·N¸q

43¦æ¡GSF-STRING "Text String" "Gimp"

l          SF-STRING¡Aªí¥Ü·|¦bLogos/Slime2¹ï¸Ü²°¤W²£¥Í¤@­Ó¦r¦êªº¤å¦r¿é¤J®Ø¡C

l          "Text String"¡A¬°»²§U»¡©úªº¤å¦r¡C

l          "Gimp"¡Aªí¤å¦r¿é¤J®Ø¤º¹w³]ªº¦r¦ê¬°Gimp¡C

44¦æ¡GSF-ADJUSTMENT "Font Size (pixels)" '(72 2 1000 1 10 0 1)

l          SF-ADJUSTMENT¡A¦b¹ï¸Ü²°¤W²£¥Í¤@­Ó¥i¤W¤U½Õ¾ã¤j¤p­Èªº±±¨î¤¸¥ó¡C

l          "Font Size (pixels)"¡A¬°»²§U»¡©úªº¤å¦r¡C

l          '(72 2 1000 1 10 0 1)¡A¦r§Î¤j¤p¹w³]­È72¡B³Ì¤p­È2¡B³Ì¤j­È1000¡B¨C¦¸½Õ¾ã±±¨î¤¸¥ó¼W¥[­È1¡C

45¦æ¡GSF-FONT "Font" "-*-ComicsCarToon-*-r-*-*-24-*-*-*-p-*-*-*")

l          SF-FONT¡A¦b¹ï¸Ü²°¤W²£¥Í¤@­Ó¦r«¬³]©w«ö¶s¡A«ö¤U«ö¶s¥i±Ò°Ê³]©w¦r«¬ªº¹ï¸Ü²°¡C

l          "Font"¡A¬°»²§U»¡©úªº¤å¦r¡C

l          "-*-ComicsCarToon-*-r-*-*-24-*-*-*-p-*-*-*")¡A¬°¹w³]¦r«¬¡AGimpªº¦r«¬¬O¨Ï¥ÎX11ªº®æ¦¡¡C

²Ä1¦æ¡G(define (script-fu-slime-logo2 text size font)

ÂÇ¥ÑLogos/Slime2¹ï¸Ü²°©Ò¿é¤Jªº°Ñ¼Æ³]©wscript-fu-slime-logo2¨ç¦¡ªºtext¡Bsize¡Bfont³o¤T­ÓÅܼơC

OK«ö¶s¡G

«ö¤ULogos/Slime2¹ï¸Ü²°ªºOK«ö¶s«á¡AOK«ö¶s¤U¤èªº¤å¦rÅã¥Ü®Ø¤ºªº¤å¦r·|§Ö³t§ïÅÜ¡A¦¹®Éscript-fu-slime-logo2 ¨ç¼Æ³Q©I¥s¡A¶Ç¤JÅܼƳ]©w¡Aslime2.scm±q²Ä1¦æ°õ¦æ¨ì²Ä32¦æ¡C

²Ä32¦æ¡G(gimp-display-new img)

¨q¥X³Ì«áªºµ²ªG¡A¤@±i¥vµÜ©i¦rÅ骺Gimp¥|­Ó¦rªº¹Ï

 

About«ö¶s

«ö¤UAbout«ö¶s«á

«ö¤ULogos/Slime2¹ï¸Ü²°About«ö¶s«á¡A²£¥Í¤@¹ï¸Ü²°¡A©ÒÅã¥Üªº¸ê°T»Pµ{¦¡½Xªº¹ïÀ³Ãö«Y¬°¡G

 

¹ï¸Ü²°°Ñ¼Æ

Slime2.scmµ{¦¡½X

Name:

µ{¦¡½X²Ä35¦æ

Help¡G

²Ä37¦æ

Author¡G

²Ä39¦æ

Date¡G

²Ä40¦æ

Copyright:

²Ä41¦æ