paints a line