Types of polygons

Polygon

slider

polygon

TRIANGLE

TRIANGLE

Quadrilateral

Pentagon

Hexagon

Heptagon

Octagon

Nanogon

Decagon

Sum of interior angles of polygons=(n-2)180°

=(3-2)180°

=(4-2)180°

=(5-2)180°

=(6-2)180°

=(7-2)180°

=(8-2)180°

=(9-2)180°

=(10-2)180°

Author- IT for Change, Bengaluru
License- CC BY SA 4.0

n = 10 (slider from 1 to 10, step 1)
A = (-1.1504253767525987, -5.538359853625355)
B = (2.7495746232473905, -5.578359853625356)
poly1, a_1, a, b, c, d, e, h, i, j, k, C, D, E, F, G, H, I, J = Polygon(A, B, n)
inputBox1 = Textfield(n)
f = true
g = false
text11: "
	                      =(" + (n - 2) + ")180°
                      =" + (((n - 2) * 180)) + "°
	       "