It appears you have not registered with our community. To register please click here ...
We've got a Group! Join us at DeviantArt today! You are not allowed to view links. Register or Login
0 Members and 1 Guest are viewing this topic.
(define (toolbox-satin-script height width hue saturation lightness) (let* ( (theImage) (satinLayer) (noiseLayer) (counter 15) (X1) (X2) (Y1) (Y2) )(gimp-context-push)(set! theImage (car (gimp-image-new width height RGB-IMAGE)))(gimp-image-undo-disable theImage)(set! satinLayer (car (gimp-layer-new theImage width height RGBA-IMAGE "Satin Layer" 100 NORMAL-MODE)))(gimp-image-add-layer theImage satinLayer 0)) ;closing parenthesis for let* block) ;closing parenthesis for the define function block(script-fu-register "toolbox-satin-script" "<Toolbox>/Xtns/Satin..." "Create a Satin Fabric" "Script Author's Name" "Script Author's Contact Information" "Script Creation/Modification Date" "" SF-ADJUSTMENT "Image Height" '(400 50 10000 1 10 0 1) SF-ADJUSTMENT "Image Width" '(400 50 10000 1 10 0 1) SF-ADJUSTMENT "Satin Color (order of color is R O Y G B V - Red is zero)" '(20 0 360 1 10 0 0) SF-ADJUSTMENT "Color Saturation - Its Depth" '(50 10 100 1 10 0 1) SF-ADJUSTMENT "Color Lightness - Its Brightness" '(0 -50 70 1 10 0 1))
(define (toolbox-satin-script height width hue saturation lightness) (let* ( (theImage) (satinLayer) (noiseLayer) (counter 15) (X1) (X2) (Y1) (Y2) )(gimp-context-push)(set! theImage (car (gimp-image-new width height RGB-IMAGE)))(gimp-image-undo-disable theImage)(set! satinLayer (car (gimp-layer-new theImage width height RGBA-IMAGE "Satin Layer" 100 NORMAL-MODE)))(gimp-image-add-layer theImage satinLayer 0)(gimp-context-set-background '(255 255 255))(gimp-context-set-foreground '(0 0 0))(gimp-drawable-fill satinLayer BACKGROUND-FILL)(while (> counter 0)(set! X1 (rand width))(set! X2 (rand width))(set! Y1 (rand height))(set! Y2 (rand height))(gimp-edit-blend satinLayer FG-BG-RGB-MODE DIFFERENCE-MODE GRADIENT-LINEAR 100 0 REPEAT-NONE FALSE FALSE 3 0.2 TRUE X1 Y1 X2 Y2)(set! counter (- counter 1))) ; closing parenthesis for while function(plug-in-gauss RUN-NONINTERACTIVE theImage satinLayer 20.0 20.0 1)(plug-in-edge RUN-NONINTERACTIVE theImage satinLayer 2.0 2 0)(gimp-invert satinLayer)(gimp-levels satinLayer HISTOGRAM-VALUE 135 255 1.0 0 255)(plug-in-gauss RUN-NONINTERACTIVE theImage satinLayer 2.5 2.5 1)(gimp-context-set-foreground '(128 128 128))(set! noiseLayer (car (gimp-layer-copy satinLayer TRUE)))(gimp-drawable-fill noiseLayer FOREGROUND-FILL)(gimp-image-add-layer theImage noiseLayer -1)(gimp-drawable-set-name noiseLayer "Noise Layer")(gimp-layer-set-mode noiseLayer OVERLAY-MODE)(plug-in-rgb-noise RUN-NONINTERACTIVE theImage noiseLayer 0 0 0.2 0.2 0.2 0)(plug-in-mblur RUN-NONINTERACTIVE theImage noiseLayer 0 15 135 0 0)(plug-in-displace RUN-NONINTERACTIVE theImage noiseLayer 15 15 1 1 satinLayer satinLayer 1)(gimp-image-merge-down theImage noiseLayer CLIP-TO-IMAGE)(set! satinLayer (car (gimp-image-get-active-layer theImage)))(gimp-colorize satinLayer hue saturation lightness)(gimp-image-undo-enable theImage)(gimp-context-pop)(gimp-display-new theImage)) ; closing parenthesis for let* block) ; closing parenthesis for main function(script-fu-register "toolbox-satin-script" "<Toolbox>/Xtns/Satin..." "Create a Satin Fabric" "Script Author's Name" "Script Author's Contact Information" "Script Creation/Modification Date" "" SF-ADJUSTMENT "Image Height" '(400 50 10000 1 10 0 1) SF-ADJUSTMENT "Image Width" '(400 50 10000 1 10 0 1) SF-ADJUSTMENT "Satin Color (order of color is R O Y G B V - Red is zero)" '(20 0 360 1 10 0 0) SF-ADJUSTMENT "Color Saturation - Its Depth" '(50 10 100 1 10 0 1) SF-ADJUSTMENT "Color Lightness - Its Brightness" '(0 -50 70 1 10 0 1))