Use arrow keys to move the line. This was done with some complicated math and some simple coding! Enjoy.
x = r * cos(φ) * cos(θ) y = r * sin(φ) made by me