draw_line is exactly what you are looking for. Just create a draw_circle function where you specify radius, starting angle, arc and number of iterations/ nodes, which implements a for loop that uses sinus and cosinus to get the appropriate node positions on the circle (in relation to starting angle, arc and max iterations) and draw_line between consecutive nodes.