The Pythagoream Theorem only works for right triangles

I created this after noticing students trying to use the Pythagorean Theorem for triangle that does not contain a right triangle. Using the slider, you can change the angle and see that only when there is a right angle are the left and right side of the Pythagorean equation equal.
How could you improve the presentation of this idea?