It is currently Thu Apr 18, 2024 1:40 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 115 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Simple path shapes
PostPosted: Mon Oct 10, 2016 3:24 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2240
Location: Poland
A simple plugin (Python) to create a variety of shapes path (centrally in the middle of the picture).

Normally I use Arakne-path-shape-creator8 http://www.arakne.es/en/2015/09/ - but in Gimp 2.9.5 does not work.

My code is primitive - but it is the beginning of learning - to understand writing plug-ins associated with paths.

In menu GIMP: Filters/Path/Simple shapes centered...


Attachments:
Simple path shapes - Rel-1.1.zip [24.21 KiB]
Downloaded 329 times
SP_1.png
SP_1.png [ 128.83 KiB | Viewed 5803 times ]
SP_2.png
SP_2.png [ 43.44 KiB | Viewed 5803 times ]

_________________
Image

Slava
Ukraini!


Last edited by MareroQ on Thu Nov 10, 2016 5:14 pm, edited 14 times in total.
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: Simple path shapes
PostPosted: Mon Oct 10, 2016 3:44 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Mar 16, 2015
Posts: 613
Location: On Earth,specifically Queensland,Australia
Image

_________________
Image


Top
 Post subject: Re: Simple path shapes
PostPosted: Mon Oct 10, 2016 3:50 pm  (#3) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13006
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
Very cool, thanks MQ!

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Simple path shapes
PostPosted: Mon Oct 10, 2016 4:48 pm  (#4) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
Attachment:
Tree_Clubs_MareroQ_Simple_Shape_Script.png
Tree_Clubs_MareroQ_Simple_Shape_Script.png [ 16.96 KiB | Viewed 5757 times ]

_________________
TinT


Top
 Post subject: Re: Simple path shapes
PostPosted: Mon Oct 10, 2016 6:40 pm  (#5) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
weird, I don't know if you guys see this on your screen but the above image when you're scrolling the red fruits seem to have shadows added to them then when you stop scrolling the image catches up and no more shadows.

_________________
TinT


Top
 Post subject: Re: Simple path shapes
PostPosted: Mon Oct 10, 2016 8:53 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
You are right, Tran, I see the optical illusion.


Top
 Post subject: Re: Simple path shapes
PostPosted: Tue Oct 11, 2016 9:13 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
trandoductin wrote:
weird, I don't know if you guys see this on your screen but the above image when you're scrolling the red fruits seem to have shadows added to them then when you stop scrolling the image catches up and no more shadows.

Yes i see it too. But i also see a shadow associated with the tree line. :)

Thank you MareroQ. A nice addition to shapes. :bigthup

Image

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Simple path shapes
PostPosted: Fri Oct 14, 2016 6:11 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2240
Location: Poland
Thanks for testing.

In the new version a few shapes in parts (marked in the menu "$[amount]").

Rel 0.2: Add shapes: "Pentagon", "Star pentagons", "Pentagram", "Yin-Yang", "Petals", "Quadrant", "Flower".


Edit 15.10.2016:changed the attachment in the first post


Attachments:
Example1.png
Example1.png [ 532.61 KiB | Viewed 5565 times ]
Example2.png
Example2.png [ 416.49 KiB | Viewed 5565 times ]

_________________
Image

Slava
Ukraini!


Last edited by MareroQ on Sat Oct 15, 2016 4:35 am, edited 1 time in total.
Top
 Post subject: Re: Simple path shapes
PostPosted: Fri Oct 14, 2016 8:01 am  (#9) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13006
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
MareroQ wrote:
Thanks for testing.

In the new version a few shapes in parts (marked in the menu "$[amount]").

Rel 0.2: Add shapes: "Pentagon", "Star pentagons", "Pentagram", "Yin-Yang", "Petals", "Quadrant", "Flour".

Cool! :bigthup

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Simple path shapes
PostPosted: Fri Oct 14, 2016 1:15 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Thanks, MareroQ!

Attachment:
Just-a-try.jpg
Just-a-try.jpg [ 173.3 KiB | Viewed 5524 times ]

_________________
"Where am I ?"


Top
 Post subject: Re: Simple path shapes
PostPosted: Fri Oct 14, 2016 6:41 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Outstanding! :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Simple path shapes
PostPosted: Sat Oct 15, 2016 4:39 am  (#12) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2240
Location: Poland
Again thanks for testing.

New in Rel 0.3 (changed the attachment in the first post):

1. Add border to layer - requires Changing Image Border.scm.
The combined two scripts:
TheUncle2k (http://theuncle2k.deviantart.com/art/Re ... -150439776) "Resize_image_to_layers_by_theuncle2k.scm"
and Fencepost "All-layers-to-image-size.scm". Thanks for authors!

2. Add shapes: "Trefoil","Quatrefoil","Cross","Crescent","Pie","Semicircle", "Arrow".

3. Sorted shapes alphabetical.

Changing Image Border.scm in menu GIMP:
PPM
Layers/Changing the image border...
Layers/Resize all layers to image size.


Attachments:
SSC new options.png
SSC new options.png [ 24.72 KiB | Viewed 1718 times ]
SSC shape exist.png
SSC shape exist.png [ 5.98 KiB | Viewed 1718 times ]
Bonus to SSC.png
Bonus to SSC.png [ 12.07 KiB | Viewed 1718 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Simple path shapes
PostPosted: Sat Oct 15, 2016 11:34 am  (#13) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4045
Just one request:

The Recycle symbol

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


Top
 Post subject: Re: Simple path shapes
PostPosted: Sat Oct 15, 2016 11:55 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
mahvin wrote:
Just one request:

The Recycle symbol

The Recycle symbol? :shock:

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Simple path shapes
PostPosted: Sat Oct 15, 2016 12:28 pm  (#15) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4045
Preferrably a prettier version of this. My class makes the new recycle signs we place on new cardboard bins, and having a path generated of it would give them lots of fun doing all sorts of interesting things to it. Including the font script. My brain is kicking into gear with all kinds of ideas.

Image

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


Top
 Post subject: Re: Simple path shapes
PostPosted: Sat Oct 15, 2016 2:01 pm  (#16) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
mahvin wrote:
Preferrably a prettier version of this. My class makes the new recycle signs we place on new cardboard bins, and having a path generated of it would give them lots of fun doing all sorts of interesting things to it. Including the font script. My brain is kicking into gear with all kinds of ideas.

[ Image ]


Sounds like a great idea! :bigthup
MrQ seems to be on a roll sooooooo........

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Simple path shapes
PostPosted: Sun Oct 16, 2016 3:01 am  (#17) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
Recycle symbol?
or maybe you can recycle the recycle symbol image, select black color then Save Path and Load it up whenever.
Here i turned into path and played with it

_________________
TinT


Last edited by trandoductin on Wed Nov 28, 2018 12:56 pm, edited 1 time in total.

Top
 Post subject: Re: Simple path shapes
PostPosted: Sun Oct 16, 2016 4:42 am  (#18) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2240
Location: Poland
@Mahvin
This is not a simple shape. :mrgreen:
It is based on the Mobius strip of - but it is artistic and not mathematically (what is needed).
The proposal TT is very good or alternative:
Free Recycling symbol.svg:
https://en.wikipedia.org/wiki/Recycling_symbol
=========================================================================

Today, a little tip on new options (Changing Image Border):


Attachments:
How this can be used.png
How this can be used.png [ 426.63 KiB | Viewed 1656 times ]
Example.png
Example.png [ 257.54 KiB | Viewed 1656 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Simple path shapes
PostPosted: Sun Oct 16, 2016 9:36 am  (#19) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4045
Thanks, guys. That is how we already do it. Use an existing image, create selection, save to path. A call-up from a script would be universal, though.

It's ok. Some things do not pass the litmus test for mathematical reasons. We will carry on.

Thank you!

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


Top
 Post subject: Re: Simple path shapes
PostPosted: Tue Oct 18, 2016 11:36 am  (#20) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2240
Location: Poland
Rel 0.4 (changed the attachment in the first post):

- add shapes: "Octagon","Triangle Reuleaux (curvilinear)","Flower" divided into two (in and out);
- add option shape in selection;
- add option (inspired by Dinasset :hi5 ) "Stroke Color" and "Fill Pattern" created by Tin Tran (https://gimplearn.net/viewtopic.php?t=3&t=141#p324). Thanks Trandoductin!. :tyspin


Attachments:
New options.png
New options.png [ 190.71 KiB | Viewed 1610 times ]

_________________
Image

Slava
Ukraini!
Top
Post new topic Reply to topic  [ 115 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Simple Geometric Shapes Art using Neural Network

2

No new posts Attachment(s) i struggle with the option to copy the path - the path where a file i

3

No new posts Is there a 'shapes' tool ?

8

No new posts Attachment(s) Abstract Art by Discovery out of Geometric/Basic Shapes

10

No new posts Draw Arrows/Draw Shapes: Sorry! My download link hadn't worked.

0



* Login  



Powered by phpBB3 © phpBB Group