It is currently Thu Apr 25, 2024 6:47 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Is there a script for concentric circle and polygons?
PostPosted: Sat Oct 01, 2011 5:43 am  (#1) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Is there a script to create concentric circle and polygon, even better on transparent bg ? (or as path ?)

I would like use as filling for lineart they can make very dramatic BG ( just try to overlay 2 circolar concetric pattrern with a bit of offset use as BG place on top the character or a important detail so it cover the centers of the pattern ...
and voila you will draw the reader attention there.

Ok i will resurrect the scanner to post some example of pratical use...

anyway the idea is simple a render script to create concentric circles (most important) squares or polygons (more optional) as paths or at least on transparent BG, with option for the number of circles,

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: there is a script for concentric circle and polygons
PostPosted: Sat Oct 01, 2011 6:06 am  (#2) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Is this script available PC?

_________________
Image


Top
 Post subject: Re: there is a script for concentric circle and polygons
PostPosted: Sat Oct 01, 2011 6:20 am  (#3) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
If available i didn't find yet

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: there is a script for concentric circle and polygons
PostPosted: Sat Oct 01, 2011 6:37 am  (#4) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Oh, sorry, I thought this meant there was already a script available

"there is a script to create concentric circle and polygon, even better on transparent bg ? (or as path ?)"

_________________
Image


Top
 Post subject: Re: there is a script for concentric circle and polygons
PostPosted: Sat Oct 01, 2011 7:18 am  (#5) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2424
@PhotoComix

As a starter you could try mathmap

There is a zoom function that never seems to work properly for me but this expression does.

filter time_zoom (image in)
zoom = sin(t*pi/2);
in(xy * exp(scale(zoom, 0, 1, 4, 0)))
end

screen shot http://i.imgur.com/5VHxH.jpg - its worth playing with

And if I can throw something into the pot the coders out there
the step-resize script would be perfect *if* it saved the intermediate steps to new layers instead of scrapping them.

edit: forgot to mention, used the parametic shapes script for the polygon (and I know it is not a pentagon LOL)

_________________
Image


Top
 Post subject: Re: there is a script for concentric circle and polygons
PostPosted: Sat Oct 01, 2011 7:40 am  (#6) 
Offline
GimpChat Member

Joined: Mar 29, 2011
Posts: 346
Location: Wisconsin
The Shape Paths script (http://registry.gimp.org/node/59) can create a wide variety of shapes:
Quote:
This is a collection of Script-Fus that create Paths in the form of geometric shapes. Squares, rectangles, rounded rectangles, circles, ellipses, ovals, polygons, stars, flowers, gears, triangle waves, square waves, and sine waves are currently supported.

You can create concentric circles and polygons by creating a series of circles/polygons with a common center and increasing radius.

I frequently use these scripts and they work quite well.

Mahvin has written a very good tutorial for this script: http://www.mahvin.com/?p=1994

_________________
Image


Top
 Post subject: Re: there is a script for concentric circle and polygons
PostPosted: Sat Oct 01, 2011 8:24 am  (#7) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
Attached is a script I wrote several years ago that can set up one of four paths:
- a path consisting of shaped lines following an initial selection
- a path consisting of concentric circles filling the image
- a path made of horizontal lines
- a path made of vertical lines
using a specified spacing for the path lines.

It shows up under "Filters>Artistic>Mosaic Tile Helper"

The scipt will (optionally) stroke the path with the current pen, but this has limited value, as the tiles will all be one colour. It is best used be having it leave the path then using the stroke path command after setting up the active paintbrush to use the rotating tile set I provided earlier in the post, along with the "use gradient" colour option in the paintbrush.

Here are some samples (brush spacing increased so you see the dot of each brush):
Attachment:
tt2.png
tt2.png [ 231.76 KiB | Viewed 8825 times ]


I made this script to help with creating "fake mosaics", hence its name:
Attachment:
tiletest.png
tiletest.png [ 2.71 MiB | Viewed 8825 times ]


-Rob A>


Attachments:
mosaic-tile-helper.scm [5.41 KiB]
Downloaded 510 times

_________________
Image
Fantasy Cartography and Mapping by RobA
Top
 Post subject: Re: there is a script for concentric circle and polygons
PostPosted: Sat Oct 01, 2011 8:53 am  (#8) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
That is kewl RobA, thank you

_________________
Image


Top
 Post subject: Re: there is a script for concentric circle and polygons
PostPosted: Sat Oct 01, 2011 9:36 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
RobA wrote:
Attached is a script I wrote several years ago that can set up one of four paths:
- a path consisting of shaped lines following an initial selection
- a path consisting of concentric circles filling the image
- a path made of horizontal lines
- a path made of vertical lines
using a specified spacing for the path lines.

It shows up under "Filters>Artistic>Mosaic Tile Helper"

The scipt will (optionally) stroke the path with the current pen, but this has limited value, as the tiles will all be one colour. It is best used be having it leave the path then using the stroke path command after setting up the active paintbrush to use the rotating tile set I provided earlier in the post, along with the "use gradient" colour option in the paintbrush.

Here are some samples (brush spacing increased so you see the dot of each brush):
Attachment:
tt2.png


I made this script to help with creating "fake mosaics", hence its name:
Attachment:
tiletest.png


-Rob A>


Crazy wonderful cool Rob. Going to give this one a try later. Thanks. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: there is a script for concentric circle and polygons
PostPosted: Sat Oct 01, 2011 9:43 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
I just realized what you are going after PC. G'MIC has a cool preset called Edges Offset that you might be able to use for your needs. :)


Attachments:
edgesoffset.png
edgesoffset.png [ 6.55 KiB | Viewed 8806 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: there is a script for concentric circle and polygons
PostPosted: Sat Oct 01, 2011 10:45 am  (#11) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4046
Awesome script, Rob! Thanks again.

BTW, can I host your collection of GIMP scripts on my site as an alternate download location?

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: there is a script for concentric circle and polygons
PostPosted: Sat Oct 01, 2011 11:47 am  (#12) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
So much replies while i was fighting with the cables and driver of my old scanner, thank to everybody !

@Rich

I didn't thought about mathmap, that may be a cool idea

@BKH
i forgot about that script i even have installed.
Sure it can work and thank to remind me that path suite will anyway come handy :geek

@RobA

that seems perfect.:clap
From the description you give there is nothing to tweak it already does what i was looking for and much more.
And your examples are really exciting, i am going to try at soon i finish the reply :jumpclap :yes


@Ljleyk

I know that Gmic filter since i requested,there the idea was a bit different
= fill a selection or anyway outlines (clearly marked as in line art) with concentric shapes the closest identical to selection or outlines shapes the innermost rounded if needed.

I believe that if would have worked could be a killer filter for decorations and a lot of special effect
BUT ...doesn't work well:
too often many of the concentric lines get broken ,disjointed .and that really spoil the intended effect :gaah

I did try to ask David to fix, but with no any luck :bawl

It sort of work only with most simple shapes (as your rectangle ) and even than with not all combination of thickness and numbers of concentric lines (and no way to guess which combination will work and which will result in series of disjointed lines )
Really a pity because in a framework as GMIC (Preview, possibility of multiple input/output, and with a bit of fiddling to animate the filters ) would be perfect

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Is there a script for concentric circle and polygons?
PostPosted: Sat Oct 01, 2011 12:03 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
That's cool PC; RobA's Script is pretty cool. Did this one using it (filled in the voids with the Voronoi command line program). :)

ref: http://www.fontplay.com/freephotos/sixt ... 06-001.jpg


Attachments:
fp091706-001.jpg
fp091706-001.jpg [ 543.41 KiB | Viewed 2399 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: Is there a script for concentric circle and polygons?
PostPosted: Sat Oct 01, 2011 12:44 pm  (#14) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
Lyle, that is fabulous. Beautiful.

I did a kind of sloppy try with RobA's script. I intend to work more with it to see what I can do though.

Image

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Is there a script for concentric circle and polygons?
PostPosted: Sat Oct 01, 2011 12:52 pm  (#15) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
One can generate concentric squares and circles using the Blend Tool set to create "Square" or "Radial" gradients respectively, and to repeat with "Triangular wave". If the "Hard-edged Gradient" is available, use that; otherwise you will want to use the default gradient (and FG/BG colors) and perform a "Colors->Threshold" after creating your gradient. (The Blend Tool can also be used similarly to create spirals.)

To create these designs as a path, generate them on the Quickmask and they will become a selection when you exit Quickmask mode. You can then perform a "Select->To Path".

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Is there a script for concentric circle and polygons?
PostPosted: Sat Oct 01, 2011 1:11 pm  (#16) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
Thanks O; like your colorful try too. I see Saul posted too and now realized that I forgot to mentioned that I used Saul's mean fill script-fu to get the filled colors. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Is there a script for concentric circle and polygons?
PostPosted: Sat Oct 01, 2011 1:16 pm  (#17) 
Offline
GimpChat Member
User avatar

Joined: Oct 07, 2010
Posts: 439
Location: home/Nixnine/.gimp-2.0/scripts/nixnine.scm
I know several members here have helpful websites. Is there a location here on gimpchat with links to all these sites? It would be great if there was, with maybe a quick explanation of what can be found on that site. Just an idea.

_________________
I refuse to be confused, but am often confused at this refusal.


Top
 Post subject: Re: Is there a script for concentric circle and polygons?
PostPosted: Sat Oct 01, 2011 1:52 pm  (#18) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
saulgoode wrote:
One can generate concentric squares and circles using the Blend Tool set to create "Square" or "Radial" gradients respectively, and to repeat with "Triangular wave". If the "Hard-edged Gradient" is available, use that; otherwise you will want to use the default gradient (and FG/BG colors) and perform a "Colors->Threshold" after creating your gradient. (The Blend Tool can also be used similarly to create spirals.)

To create these designs as a path, generate them on the Quickmask and they will become a selection when you exit Quickmask mode. You can then perform a "Select->To Path".


That's exactly what my script does! Then I select by colour and then convert the selection to a path.

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: Is there a script for concentric circle and polygons?
PostPosted: Sat Oct 01, 2011 4:22 pm  (#19) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
RobA

something weird happened (there are the concetric circles but with reddish filling ) but maybe because i did something wrong,

Well i will try again now (btw i used the script with gimp 2.7.4 ) just a quick question i wish the circle on transparent BG did the script remove alpha ? Or use red as default stroking color ?

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Is there a script for concentric circle and polygons?
PostPosted: Sat Oct 01, 2011 5:01 pm  (#20) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
PhotoComix wrote:
RobA

something weird happened (there are the concetric circles but with reddish filling ) but maybe because i did something wrong,

Well i will try again now (btw i used the script with gimp 2.7.4 ) just a quick question i wish the circle on transparent BG did the script remove alpha ? Or use red as default stroking color ?


Not sure. In 2.6 it just displays the path (purple) is that what you see?

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) GEGL Polygons - Simple Polygon wallpaper generator

15

No new posts Attachment(s) Serendipitous Circle

5

No new posts Circle Map plug-in

2

No new posts Looking For Circle Fuzzy Brushes

2

No new posts Attachment(s) 'Wrap text around a circle' questions

4


cron

* Login  



Powered by phpBB3 © phpBB Group