This program connects all of the vertices of a polygon. User enters the number of vertices between 3 and 20. The program draws interesting geometric shapes.
This program was developed by PappyCurt. It has main script that uses two Procedures (scratch blocks). The user enters the number of vertices for the polygon The Establish Vertices uses cosine and sin function and a radius to mark the verticles. The (x,y) vertices coordinates are stored in corresponding lists. The Draw Connections uses two loops to draw lines between all of the vertices. The other loop sequences around the polygon. The inner loop draws connections between the other vertices.