Place n points evenly on a circle (optionally splitting each edge of that polygon into s equal pieces, which adds points along the outline), number them 0, 1, 2, ... and join point i to point c × i + d, counting around and wrapping at the end. With c = 1 that is a star polygon, each point joined to the one d steps further around. Larger c is the times table on a circle: a cardioid at c = 2, a nephroid at 3 (use a few hundred points), and d then turns the picture. Press Play to watch c grow, fractions included.
This page was created with Claude Code.