Drawing Lines

Published

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

Links

LinePrinter()

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.

setPrintChar(int)

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


Return to Documentation