Core Function ConsoleForeColour

From Sputnik Wiki
Jump to: navigation, search
ConsoleForeColour( <colour> )

Contents

Description

Set the foreground (text) colour of the console.

Parameters

colour

ID of the colour:

@ccBlack
@ccDarkBlue
@ccDarkGreen
@ccDarkCyan
@ccDarkRed
@ccDarkMagenta
@ccDarkYellow
@ccGray
@ccDarkGray
@ccBlue
@ccGreen
@ccCyan
@ccRed
@ccMagenta
@ccYellow
@ccWhite

Return Value

None

Remarks

None.

Example

ConsoleBackColour(12);
print("Hello");
ConsoleBackColour(0);
print(" ");
ConsoleBackColour(5);
print("World");
ConsoleBackColour(1);
print("!!!\n");
ConsoleBackColour(15);
ConsoleForeColour(2);
print("Hello");
ConsoleBackColour(0);
print(" ");
ConsoleForeColour(1);
print("W");
ConsoleForeColour(2);
print("o");
ConsoleForeColour(3);
print("r");
ConsoleForeColour(4);
print("l");
ConsoleForeColour(5);
print("d");
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox