Press Space or click to shoot the ball at the bottom at the circle, which then creates a rotating line. Deplete all your balls to win. Do not let the ball touch rotating lines, either player- or level-created. After level 4, the levels are automatically generated. If you get stuck on those levels, hold space or the mouse button after losing to reroll.
Credits to General Interactive or whoever created the original.