
Wed Oct 14 17:46:15 EDT 1998 Adrian Likins <adrian@gimp.org> * app/*, po/de.po, de/POTFILES.in, libgimp/gimpintl.h: Lots of ii8n stuff here and some additions to the de.po. Applied gimp-egger-981005-1 ,gimp-egger-981006-1, gimp-egger-981007-1, gimp-egger-981008-1, gimp-egger-981009-1.patch, gimp-egger-981010-1.patch * plug-in/guillotine/guillotine.c: added the coordinates of the split images from the original image to the title. ie foo.jpg (0,0) for the image in the topleft. * plug-in/script-fu/scripts/neon-logo.scm, perspective-shadow.scm, predator.scm,rendermap.scm, ripply-anim.scm, select_to_image.scm,swirltile.scm, xach-effect.scm: updated scripts to use new script-fu stuff wooo boy! a big un! in testing this, it looks like some of the po files are busted. but the code stuff seems okay. -adrian
75 lines
2.6 KiB
Scheme
75 lines
2.6 KiB
Scheme
;
|
|
;
|
|
;
|
|
; Chris Gutteridge (cjg@ecs.soton.ac.uk)
|
|
; At ECS Dept, University of Southampton, England.
|
|
|
|
; This program is free software; you can redistribute it and/or modify
|
|
; it under the terms of the GNU General Public License as published by
|
|
; the Free Software Foundation; either version 2 of the License, or
|
|
; (at your option) any later version.
|
|
;
|
|
; This program is distributed in the hope that it will be useful,
|
|
; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
; GNU General Public License for more details.
|
|
;
|
|
; You should have received a copy of the GNU General Public License
|
|
; along with this program; if not, write to the Free Software
|
|
; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
(define (script-fu-render-map inSize inGrain inGrad inWiden)
|
|
|
|
|
|
(set! theWidth inSize)
|
|
(set! theHeight inSize)
|
|
(set! theImage (car(gimp-image-new theWidth theHeight RGB)))
|
|
|
|
(gimp-selection-all theImage)
|
|
|
|
(set! theLayer (car (gimp-layer-new theImage theWidth theHeight RGBA_IMAGE "I've got more rubber ducks than you!" 100 NORMAL)))
|
|
(gimp-image-add-layer theImage theLayer 0)
|
|
(plug-in-solid-noise TRUE theImage theLayer 1 0 (rand 65536) inGrain inGrain inGrain)
|
|
|
|
(if (= inWiden TRUE) (begin
|
|
(set! thinLayer (car (gimp-layer-new theImage theWidth theHeight RGBA_IMAGE "Camo Thin Layer" 100 NORMAL)))
|
|
(gimp-image-add-layer theImage thinLayer 0)
|
|
(let ((theBigGrain (min 15 (* 2 inGrain))))
|
|
(plug-in-solid-noise TRUE theImage thinLayer 1 0 (rand 65536) theBigGrain theBigGrain theBigGrain)
|
|
)
|
|
(gimp-palette-set-background '(255 255 255))
|
|
(gimp-palette-set-foreground '(0 0 0))
|
|
(let ((theMask (car(gimp-layer-create-mask thinLayer 0))))
|
|
(gimp-image-add-layer-mask theImage thinLayer theMask)
|
|
(gimp-blend theImage theMask FG-BG-RGB NORMAL LINEAR 100
|
|
0 REPEAT-TRIANGULAR FALSE 0 0 0 0 0 (/ theHeight 2) )
|
|
)
|
|
(set! theLayer (car(gimp-image-flatten theImage)))
|
|
))
|
|
|
|
(gimp-selection-none theImage)
|
|
(gimp-gradients-set-active inGrad)
|
|
(plug-in-gradmap TRUE theImage theLayer)
|
|
(gimp-display-new theImage)
|
|
)
|
|
|
|
|
|
|
|
; Register the function with the GIMP:
|
|
|
|
(script-fu-register
|
|
"script-fu-render-map"
|
|
"<Toolbox>/Xtns/Script-Fu/Patterns/Render Map"
|
|
"foo"
|
|
"Chris Gutteridge: cjg@ecs.soton.ac.uk"
|
|
"28th April 1998"
|
|
"Chris Gutteridge / ECS @ University of Southampton, England"
|
|
""
|
|
SF-ADJUSTMENT "Image Size" '(256 0 2048 1 10 0 0)
|
|
SF-ADJUSTMENT "Granularity (0 - 15):" '(4 0 15 1 1 0 1)
|
|
SF-STRING "Gradient:" "Land_and_Sea"
|
|
SF-TOGGLE "TRUE = Detail in middle, FALSE = tile" FALSE
|
|
)
|
|
|