Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New plugin: Spiropath
#1
I got the feeling that the general-purpose plugins Parameter curves and so on do not raise much enthusiasm. They are mathematical, and my experience is that the mere word mathematics tends to put people off.

So I thought that it might be good to derive from them some specialized plugins. The first one is now available: it draws spirographs.

According to wikipedia, 'spirograph' is a registered trademark. Perhaps I am too sensitive, but I decided to call the plugin 'Spiropath'. It draw spirograph-like curves as Gimp's paths (approximations).

Gimp already includes the plugin SpyroGimp, which I guess comes nowadays automatically when Gimp is installed. But it does not output paths.

I found an old plugin

https://gimper.net/resources/spirograph.624/

that creates paths. But it seems to rely on placing control points densely on the curve. It does allow the user to diminish the number of control points, but then it turns out that between two successive anchors it simply puts a straight line segment.

My plugin outputs a path with a sparse set of anchors, yet it is reasonably accurate. So, it seems that nothing similar exists previously, or am I too optimistic?

To get the plugin, go to

http://kmarkku.arkku.net/

follow the link 'Applications', and click the Download button there. That gives you a .zip file. Unzip it, put the sole .py file into your Gimp's plug-ins folder, and restart Gimp. The plugin 'Spiropath' resides in

Filters/Render/Parametric curves/Special cases

That is a long path, but I don't want to add more items in Render, and I want to separate the special curves from the three general curves. I plan to put there a couple more soon.

A drawback of the plugin is its size: over 5000 lines. I constructed it by putting together most of parametric_curves.py and the example file which draws a spirograph and then developing things a little further.

I hope you will enjoy. At least the curves are pretty.
Reply
#2
Requires a good CPU, but nice Smile

   
Reply
#3
Nice colours, Ofnuts (hurt a little my old eyes). The net seems to be full of these curves and animations:


http://mathworld.wolfram.com/Spirograph.html
http://mathworld.wolfram.com/Hypotrochoid.html
http://mathworld.wolfram.com/Epitrochoid.html
https://www.mathcurve.com/courbes2d.gb/e...hoid.shtml
http://xahlee.info/SpecialPlaneCurves_di...ochoid.htm
http://xahlee.info/SpecialPlaneCurves_di...choid.html
Reply
#4
nice to play with:
   

thanks for your plug-in.
nelo
Reply
#5
I am glad.

I made a little bug fix. The new version 0.2 is in the same place (see post #1). No big deal, but in some cases it did not work as should (too slow, too many control points, too many error messages). Such problems may appear even later. If so, please inform me.
Reply


Forum Jump: