Pythagorean Theorem (2)

This HTML5 app shows a right triangle. You can move the vertex of the right angle with pressed mouse button.

This browser doesn't support HTML5 canvas!
a2 = c p
b2 = c q
a2 + b2 = c p + c q = c (p + q) = c · c = c2
Pythagorean theorem:
In a right triangle, the sum of the squares on the two legs is equal to the square on the hypotenuse.
a2 + b2 = c2