Rod wrote:
Mahvin another excellent addition to the script would be if it had a option to use octagons, hex, square, or diamonds.
I wonder if those shape options would be easy to add to it ourselves.
Then you could make some killer interfaces for music players and what not.
I'll leave the selection option to you, but here are the calcs:
replace:
(gimp-ellipse-select theImage xStart yStart circDiam circDiam CHANNEL-OP-REPLACE FALSE FALSE 0)
for squares:
(gimp-rect-select theImage xStart yStart circDiam circDiam CHANNEL-OP-REPLACE FALSE 0)
for diamonds:
(gimp-free-select theImage 8
(vector
xStart (+ yStart (* circDiam 0.5))
(+ xStart (* circDiam 0.5)) yStart
(+ xStart circDiam) (+ yStart (* circDiam 0.5))
(+ xStart (* circDiam 0.5)) (+ yStart circDiam)
)
CHANNEL-OP-REPLACE TRUE FALSE 0)
for hexs:
(gimp-free-select theImage 12
(vector xStart (+ yStart (* circDiam 0.5))
(+ xStart (* circDiam 0.25)) (+ yStart (* circDiam 0.067))
(+ xStart (* circDiam 0.75)) (+ yStart (* circDiam 0.067))
(+ xStart circDiam) (+ yStart (* circDiam 0.5))
(+ xStart (* circDiam 0.75)) (+ yStart (* circDiam 0.933))
(+ xStart (* circDiam 0.25)) (+ yStart (* circDiam 0.933))
)
CHANNEL-OP-REPLACE TRUE FALSE 0)
for octagons:
(gimp-free-select theImage 16
(vector (+ xStart (* circDiam 0.2929)) yStart
(+ xStart (* circDiam 0.7071)) yStart
(+ xStart circDiam) (+ yStart (* circDiam 0.2929))
(+ xStart circDiam) (+ yStart (* circDiam 0.7071))
(+ xStart (* circDiam 0.7071)) (+ yStart circDiam)
(+ xStart (* circDiam 0.2929)) (+ yStart circDiam)
xStart (+ yStart (* circDiam 0.7071))
xStart (+ yStart (* circDiam 0.2929))
)
CHANNEL-OP-REPLACE TRUE FALSE 0)
(all tested)
-Rob A>