It appears you have not registered with our community. To register please click here ...
Take a moment and vote in the TOTW and the SOTW Challenges please.
0 Members and 1 Guest are viewing this topic.
(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)))(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)
(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)))(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-scatter-rgb 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)
(define (image-satin-script theImage drawable hue saturation lightness) (let* ( (theSelection) (height (car (gimp-image-height theImage))) (width (car (gimp-image-width theImage))) (satinLayer) (noiseLayer) (counter 15) (X1) (X2) (Y1) (Y2) )(gimp-context-push)(gimp-undo-push-group-start theImage)(set! theSelection (car (gimp-selection-save theImage)))(gimp-selection-none 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)))(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-selection-load theSelection)(gimp-image-remove-channel theImage theSelection)(gimp-undo-push-group-end theImage)(gimp-displays-flush)(gimp-context-pop)) ;closing parenthesis for let* block) ;closing parenthesis for the define function block(script-fu-register "image-satin-script" "<Image>/Filters/Render/Satin..." "Create a Satin Fabric" "Art Wade" "Art Wade" "Feb 2008" "RGB*" SF-IMAGE "image" 0 SF-DRAWABLE "drawable" 0 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))