Core Function ConsoleForeColour

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<pre> ConsoleForeColour( <colour> ) </pre> === Description === Set the foreground (text) colour of the console. === Parameters === ==== colour ==== ID of the colour: <pre> /...")
 
m (1 revision)
 
(2 intermediate revisions by one user not shown)
Line 13: Line 13:
 
ID of the colour:
 
ID of the colour:
 
<pre>
 
<pre>
//    The color black.
+
@ccBlack
Black = 0,
+
@ccDarkBlue
//    The color dark blue.
+
@ccDarkGreen
DarkBlue = 1,
+
@ccDarkCyan
//    The color dark green.
+
@ccDarkRed
DarkGreen = 2,
+
@ccDarkMagenta
//    The color dark cyan (dark blue-green).
+
@ccDarkYellow
DarkCyan = 3,
+
@ccGray
//    The color dark red.
+
@ccDarkGray
DarkRed = 4,
+
@ccBlue
//    The color dark magenta (dark purplish-red).
+
@ccGreen
DarkMagenta = 5,
+
@ccCyan
//    The color dark yellow (ochre).
+
@ccRed
DarkYellow = 6,
+
@ccMagenta
//    The color gray.
+
@ccYellow
Gray = 7,
+
@ccWhite
//    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,
+
 
</pre>
 
</pre>
  

Latest revision as of 12:37, 14 June 2015

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