Joining points on the circle to form heart-shaped line art. If instead of circle we used hyptrochoid then we will get the following:

/2024/12/04/joining-points-hypotrochoid-explore.html


            const { x: x1, y: y1 } = getPointOnCircle(i, totalPoints);
            const { x: x2, y: y2 } = getPointOnCircle((i * skip) % totalPoints, totalPoints);
            ctx.moveTo(x1, y1);
            ctx.lineTo(x2, y2);