Hold down the mouse button and move on the canvas to draw a line.