It is currently Fri Mar 29, 2024 3:21 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: New Script-Fu "cossins_circulaires.scm"
PostPosted: Tue May 21, 2013 10:29 am  (#1) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Bonjour,

The results are the sum of 4 uniform circular motion.
Each circular motion is defined by a radius, a rotation speed (frequency), a phase angle, a direction of rotation.

Paths can be saved in SVG format.

File > Create > Patterns > Cossins Circulaires ...


The setting of this script-fu is not easy.

Edit : 20130522 (Corrections mineures et ajouts dans le texte de présentation du script-fu)


Attachments:
cossins_circulaires.zip [5.21 KiB]
Downloaded 95 times
Cossins_Circulaires_Parametres.png
Cossins_Circulaires_Parametres.png [ 41.1 KiB | Viewed 1640 times ]
Cossins_Circulaires_Parametres_2.png
Cossins_Circulaires_Parametres_2.png [ 32.65 KiB | Viewed 1640 times ]


Last edited by samj on Wed May 22, 2013 5:06 am, edited 1 time 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: New Script-Fu "cossins_circulaires.scm"
PostPosted: Tue May 21, 2013 2:06 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Way cool new filter Sam!
Thanks. :)

_________________
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: New Script-Fu "cossins_circulaires.scm"
PostPosted: Tue May 21, 2013 4:31 pm  (#3) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
I didn't know what it was going to turn out as, and it kept my cpu's running full blast for a time, but here it is. I had fun making it. I don't have a name for it :hehe
Image

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


Top
 Post subject: Re: New Script-Fu "cossins_circulaires.scm"
PostPosted: Tue May 21, 2013 7:13 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Very cool O. Looks like a cloud fractal. :)

_________________
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: New Script-Fu "cossins_circulaires.scm"
PostPosted: Tue May 21, 2013 10:27 pm  (#5) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
It can be very slow but it makes for an interesting background, if you set angle 1 to 60 it speeds it up a bit

Image

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: New Script-Fu "cossins_circulaires.scm"
PostPosted: Wed May 22, 2013 4:57 am  (#6) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Bonjour,


It is possible to create a Spirograph, Epitrochoids with this script-fu.
- Frequency 3 = Frequency 4 = Radius 3 = Radius 3 = 0

***********************************************************

It is possible to create Epicycloids and Hypocycloids with this script-fu.
- Frequency 3 = Frequency 4 = Radius 3 = Radius 3 = 0

Use a very small coefficient value for the frequency. Example KF = 3.5

To create an Epicycloid :
- Frequency 1 = 10
- Frequency 2 = Frequency 1 * KF = 10 * 3.5 = 35
- Radius 2 = 50
- Radius 1 = KF * Radius 2 = 3.5*50 = 175
- Reverse Rotation 1 = 0
- Reverse Rotation 2 = 0

To create a Hypocycloid :
- Frequency 1 = 10
- Frequency 2 = Frequency 1 * KF = 10 * 3.5 = 35
- Radius 2 = 50
- Radius 1 = KF * Radius 2 = 3.5*50 = 175
- Reverse Rotation 1 = 0
- Reverse Rotation 2 = 1

***********************************************************

It is possible to create interesting curves from Spirographs, Epitrochoids, Epicycloids, Hypocycloids.
- Radius 4 = Frequency 4 = 0
- Frequency 3 = high value
- Radius 3 = low value
- Reverse Rotation 2 = 0 or 1

Example (image) :
_____Black_____
- Frequency 1 = 1
- Frequency 2 = 5
- Frequency 3 = 80
- Frequency 4 = 0
- Radius 1 = 400
- Radius 2 = 200
- Radius 3 = 20
- Radius 4 = 0
- Reverse Rotation 1 = 0
- Reverse Rotation 2 = 0
- Reverse Rotation 3 = 0
- Reverse Rotation 4 = 0
- Time End = 1
_____Red_____
- Frequency 1 = 1
- Frequency 2 = 5
- Frequency 3 = 0
- Frequency 4 = 0
- Radius 1 = 400
- Radius 2 = 200
- Radius 3 = 0
- Radius 4 = 0
- Reverse Rotation 1 = 0
- Reverse Rotation 2 = 0
- Reverse Rotation 3 = 0
- Reverse Rotation 4 = 0
- Time End = 1


Attachments:
CC_exemple.png
CC_exemple.png [ 59.17 KiB | Viewed 1476 times ]
Top
 Post subject: Re: New Script-Fu "cossins_circulaires.scm"
PostPosted: Wed May 22, 2013 2:54 pm  (#7) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
This scipt-fu was the basis for other scrits "xxxx for beginers."
Parameters are consistent with the mathematical functions and unfortunately these parameters are not poetic.

For poets :
I'm going to try to make a script-fu you can complete yourself according to your wishes.
The main parameters are :
- Number of petals
- Dimensions
- Flower Type (16 max) : "My beautiful spring flower", "Summer flower", "Faded flower" , etc.

Do you agree with this principle?


Top
 Post subject: Re: New Script-Fu "cossins_circulaires.scm"
PostPosted: Wed May 22, 2013 8:20 pm  (#8) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
My_Flowers script.
I'll leave it a few days to download.

File > Create > Patterns > My Flowers ...

You can edit this script with Notepad++ http://notepad-plus-plus.org/

Edit between
PARAMETER "Flower xxx"
and
END PARAMETER "Flower xxx"

example : (set! TEST_VALUE_1 -39)


*****
Edit 20130523
Add My_Flowers_19-types-of-flowers_V2.zip - Example with many parameters.


Attachments:
My_Flowers_19-types-of-flowers_V2.zip [4.31 KiB]
Downloaded 76 times
My_Flowers.zip [4.03 KiB]
Downloaded 86 times


Last edited by samj on Thu May 23, 2013 5:50 am, edited 2 times in total.
Top
 Post subject: Re: New Script-Fu "cossins_circulaires.scm"
PostPosted: Thu May 23, 2013 5:39 am  (#9) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
I added another example with many parameters.


Attachments:
faisetris.gif
faisetris.gif [ 22.76 KiB | Viewed 1363 times ]
Top
 Post subject: Re: New Script-Fu "cossins_circulaires.scm"
PostPosted: Thu May 23, 2013 7:48 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jul 21, 2012
Posts: 103
:tyspin samj, you're genial :bigthup

_________________
Image


Top
 Post subject: Re: New Script-Fu "cossins_circulaires.scm"
PostPosted: Thu May 23, 2013 1:07 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Aug 16, 2012
Posts: 4271
Location: Göteborg, Sweden
samj: wow, a script version for poets :)! thanks for all the work you put down.

_________________


Top
 Post subject: Re: New Script-Fu "cossins_circulaires.scm"
PostPosted: Fri May 24, 2013 7:50 am  (#12) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Thank you all :tyspin

Here is the solution for picture with "funny face".


Attachments:
script-fu_my-flower_faisetris_800_18.svgz.zip [58.82 KiB]
Downloaded 67 times
solution.png
solution.png [ 18.91 KiB | Viewed 518 times ]
Top
 Post subject: Re: New Script-Fu "cossins_circulaires.scm"
PostPosted: Tue May 28, 2013 2:49 pm  (#13) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
Nice results from this script but the problem I have is there are so many options, it doesn't fit on my screen, even with panels hidden. GIMP should allow scrolling of script-fu dialogs when they don't fit the screen, as other apps do.

Image

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Looking for Script Coder to make Script of my VHS effect

2

No new posts Attachment(s) A liitle Start Help with a Script-Fu Script

3

No new posts Attachment(s) Cannot run test script-fu script via console

7

No new posts Attachment(s) Script-fu

6

No new posts Attachment(s) Making Art from Script

4



* Login  



Powered by phpBB3 © phpBB Group