Drawing Lines


The following sections cover the constructor and functions of the LinePrinter class.



This constructor creates a new, reusable LinePrinter.

The following example shows that you do not need to create a new instance of the LinePrinter class for every line that you print.

print(TileGrid, Point, Point)

This function prints a line on a TileGrid. The line starts at the first point given and ends at the second point given.


This function sets the character to display on the tiles when printing a line.