Use the mouse or the arrow keys to move and rotate the line by clicking and dragging so that all of the red lines around the border will cross your line when extended. Press space to start things moving along the red lines to find out if you've solved the puzzle.
If a red line has a blue circle at the end, the darker arc of this indicates the angle it will turn through when any other of the moving things crosses your line.
left-click drag, arrow keys: move the line.
right-click drag, ctrl+left/right: rotate the line (left anticlockwise, right clockwise).
space, enter: run the puzzle; continue at title screen.
escape, backspace: cancel running the puzzle; quit at title screen.
tab, ctrl: hold to increase the speed when the puzzle is running.
To quit, close the window.