Total areas of the two squares are equal.
The red area on the left equals c², while the red areas on the right sum to a² + b².
This means that c² = a² + b², since the green and blue triangles are of equal size.
Sliders a and b vary the size of the right triangle.
Slider n will show the translation of triangles from the left square to the right.