For the right triangle marked in green (on the left), the size of the legs (catheti) can be varied by the two sliders.
Let a and b be the lengths of the legs in the given right triangle (green, on the left). The question is how the length of the hypotenuse (c) depends on a and b. In the right part of the drawing area two squares with side length a + b are shown. In both squares four triangles (green) are drawn, which are congruent to the given triangle. The remaining area consists in one case (drawing top right) of the squares on the legs (blue and red), in the other case (drawing bottom right) of the square on the hypotenuse (violet).
Another way to proof the Pythagorean theorem is demonstrated here.