The Polygon Generator will generate a regular polygon based upon your input. USER INPUT Number of sides & Length of sides Click the green flag to run and the trash can to clear the screen. You can run multiple times Depending upon you choice of sides and length some polygons may cause the pen to leave the screen which will cause unexpected results. Start with smaller values and experiment with larger combinations.
Based upon code provided by Project Stem's AP CSP course.