Is there a formula to predict the changing area when using Thales theorem?

ie. inside a semi-circle you place a right angled triangle with the edge on the curve; now if you move the right-angle edge around the outer curve the size of that triangle will change, but within the limits of the original semi-circle. Is there a formula for this change?

Thanks,