Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Place a Star on the center of the Canvas
#5
(05-05-2020, 06:06 PM)Ofnuts Wrote: No, the first parameter is a layer. The color is implicit, it is taken from the "context" (the foreground color from the toolbox, if you didn't change it in your script)

Sorry ofnuts, Let me show you what I got so far in the script. 


Code:
(define (script-fu-create-a-Star)
   (let* (
       
        (imgWidht 700)
        (ImgHeight 700)
        
        
        
        
            
        (img  (car (gimp-image-new imgWidht ImgHeight RGB)))
        (layer (car (gimp-layer-new img imgWidht ImgHeight RGB-IMAGE "Background" 100 LAYER-MODE-NORMAL)))
        
        
        
        )
        
        
        ;Create the Background
        (gimp-image-insert-layer img layer 0 0)
        (gimp-context-set-foreground '(0 0 0))
        (gimp-drawable-fill layer FILL-FOREGROUND)
        (gimp-context-set-brush "2. Star")
        (gimp-context-set-brush-size 210)
        (gimp-context-set-brush-aspect-ratio 2)
        (gimp-context-set-brush-angle 54)
        (gimp-context-get-brush)
        (gimp-context-set-foreground '(255 255 255))
        
        
        
        
        
        (gimp-paintbrush-default  layer 2 (350,350))
            
        
        (gimp-display-new img)
Reply


Messages In This Thread
RE: Place a Star on the center of the Canvas - by Pocholo - 05-05-2020, 07:06 PM

Forum Jump: