Implementation of line drawing. The plotter data is an information about the points (position and color) and a set of indices for pairing them.