Core Function ConsoleForeColour
From Sputnik Wiki
ConsoleForeColour( <colour> )
Contents |
Description
Set the foreground (text) colour of the console.
Parameters
colour
ID of the colour:
// The color black. Black = 0, // The color dark blue. DarkBlue = 1, // The color dark green. DarkGreen = 2, // The color dark cyan (dark blue-green). DarkCyan = 3, // The color dark red. DarkRed = 4, // The color dark magenta (dark purplish-red). DarkMagenta = 5, // The color dark yellow (ochre). DarkYellow = 6, // The color gray. Gray = 7, // The color dark gray. DarkGray = 8, // The color blue. Blue = 9, // The color green. Green = 10, // The color cyan (blue-green). Cyan = 11, // The color red. Red = 12, // The color magenta (purplish-red). Magenta = 13, // The color yellow. Yellow = 14, // The color white. White = 15,
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");