Class

Console

Console(fgopt, bgopt)

Constructor

# new Console(fgopt, bgopt)

create a on-screen text console.

Parameters:
Name Type Attributes Description
fg Color <optional>

default text color

bg Color <optional>

background color.

Methods

# Draw(clearopt)

draw the console to the screen.

Parameters:
Name Type Attributes Description
clear boolean <optional>

true to clear the screen before drawing the text.

# Log(txt, colopt)

add a logmessage to the console.

Parameters:
Name Type Attributes Description
txt string

the logmessage.

col Color <optional>

the color for this logmessage