This demo includes three windows.

The window "Curve: X(t)" displays the curve X(t) = (cos(2t), -sin(2t)).

The window "Perturbed Tangential Image" displays the tangent vector
T(t_{0}) and a curve that it traces out. The tangent vector is
perturbed slightly (with the magnitude of
this perturbation controlled by parameter u) so that the curve that it
traces out does not overlap itself.

The rotation index is the total change of direction angle from t_{min} to
t_{max} divided by 2π, which is visualized in the "Perturbed Tangential
Image" window.

You can change t_{0}, u, and X(t) in the control window.