Try now in the
Open Cloud »
(no sign-in required)

Draw Circles of Points

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:

SHOW/HIDE DETAILS

CirclePoints gives the coordinates of points evenly spaced around a circle. This gives 6 evenly spaced points:

In[1]:=
X
Out[1]=

Draw the points with Graphics:

In[2]:=
X
Out[2]=

Draw more points:

In[3]:=
X
Out[3]=

HIDE DETAILS
In[1]:=
X
Out[1]=

Draw a 12-sided polygon. Try other numbers of points:

SHOW/HIDE DETAILS

Replace Point with Polygon to draw a 12-sided polygon:

In[1]:=
X
Out[1]=

HIDE DETAILS
In[1]:=
X
Out[1]=

Make it interactive. Drag the slider to change the shape:

SHOW/HIDE DETAILS

Here is the code to draw a 12-sided polygon:

In[1]:=
X
Out[1]=

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:

In[2]:=
X
Out[2]=

HIDE DETAILS
In[1]:=
X
Out[1]=