Wheel of Theodorus and Square Roots

Move the slider to change the number of right triangles. The first right angle is marked for you. Every black line is exactly 1 unit long.
What is the length of each thick purple line?

Information: Wheel of Theodorus and Square Roots