Regular Polygons and Star Polygons
A regular star polygon is a polygonal line whose vertices are vertices of a regular polygon. Their sides are line segments joining vertices of a regular polygon, skipping one or more of them, clockwise or counterclockwise.
The following are samples of star polygons made with logo programs in Python language.
The 3.7 Python program must be previously installed .
# 7-reg-star(1)
from turtle import*
mode('logo')
for i in range(7):
fd(100),rt(102.9)
Terminator
# 8-reg-star
from turtle import*
mode('logo')
for i in range(8):
fd(100),rt(135)
Terminator
# 9-reg-star(1)
from turtle import*
mode('logo')
for i in range(9):
fd(70),rt(80)
Terminator
# 10-reg-star
from turtle import*
mode('logo')
for i in range(10):
fd(100),rt(108)
Terminator