There are these "string math artworks" I believe they are called "spirographs" where people usually take a circle or other geometric shape and put in nails on the shape and then use yarn and weave the yarn in a particular way such as to make these artworks.
I am wanting to make similar diagrams using software instead of physically making them with nails and yarn. I found this one link where someone is using Tikz with Latex to generate a circle with nodes. This might work, but I don't know exactly how to use Latex and this Tikz (plug-in) software.
If someone can point me in the right direction that would be great. Thanks.
Here are some links:
You can draw a regular polygon in GeoGebra Classic, then connect the vertices with line segments.
You can compute the vertices of a regular polygon in a spreadsheet using $$x=R \cos \frac {2 \pi k}n\\ y=R \sin \frac {2 \pi k}n$$ where $R$ is the distance from the origin to a vertex and $k$ runs from $1$ to $n$. You can then calculate as many points as you like on some of the diagonals. You can then plot the points as an $xy$ plot.