S=

AM=

k = 6 (slider from 0 to 6, step 0.01)
A = (0, 0)
B = (6, 0)
M: (k, 0.0)
P: (0.0, k)
C: (6.0, 6.0 - k)
D: (k, 6.0 - k)
poly1, p, a, m = Polygon(A, M, P)
poly2, m_1, b, c, d = Polygon(M, B, C, D)
S: poly1 + poly2
texte1: S + ""
N: (k, S)
texte4: k + ""
l: a + b + c + d + m + m_1 + p
T: (k, l)