New plugin: Spiropath - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP) +--- Thread: New plugin: Spiropath (/Thread-New-plugin-Spiropath) |
New plugin: Spiropath - Ottia Tuota - 03-23-2020 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. RE: New plugin: Spiropath - Ofnuts - 03-23-2020 Requires a good CPU, but nice [attachment=4119]
RE: New plugin: Spiropath - Ottia Tuota - 03-24-2020 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/epitrochoid/epitrochoid.shtml http://xahlee.info/SpecialPlaneCurves_dir/Hypotrochoid_dir/hypotrochoid.htm http://xahlee.info/SpecialPlaneCurves_dir/Epitrochoid_dir/epitrochoid.html RE: New plugin: Spiropath - nelo - 03-24-2020 nice to play with: [attachment=4120] thanks for your plug-in. nelo RE: New plugin: Spiropath - Ottia Tuota - 03-24-2020 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. |