03-14-2020, 04:07 PM
Another way to draw the figure is my new (and very unfinished) plugin Simple parametric curve.
I show first the result:
The plugin makes this as two vectors objects as follows:
These could then be stroked. Since you already got other solutions, I don't go to details. I just say that the plugin is obtained here (see the first post):
https://www.gimp-forum.net/Thread-Parametric-curves
and to draw the figure you tell the plugin to take inputs from a file. That file must be created before-hand. I draw the above figure with a file with the following contents:
I show first the result:
The plugin makes this as two vectors objects as follows:
These could then be stroked. Since you already got other solutions, I don't go to details. I just say that the plugin is obtained here (see the first post):
https://www.gimp-forum.net/Thread-Parametric-curves
and to draw the figure you tell the plugin to take inputs from a file. That file must be created before-hand. I draw the above figure with a file with the following contents:
Code:
# Pie. Input file for the plugin Simple parametric curve.
N = 9
center = [500,500]
scale = 300
curve_name = 'Pie'
def function(t):
return [cos(t),sin(t)]
interval = [0,2*pi]
mark_linesegments = [
[[0,0], function(i*2*pi/N)] for i in range(N)
]