Make simple figures based on points evenly spaced around a circle.
Run the code to draw a circle of 12 points. Try other numbers of points:
CirclePoints gives the coordinates of points evenly spaced around a circle. This gives 6 evenly spaced points:
Draw the points with Graphics:
Draw more points:
Draw a 12-sided polygon. Try other numbers of points:
Make it interactive. Drag the slider to change the shape:
Here is the code to draw a 12-sided polygon:
Give yourself a slider to control the number of points using Manipulate. Wrap the expression with Manipulate[...], replace 12 with the variable n, and let n vary from 3 to 12 in steps of 1: