Core Function ConsoleBackColour
From Sputnik Wiki
(Difference between revisions)
m (→Example) |
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> | ||
− | + | @ccBlack | |
− | + | @ccDarkBlue | |
− | + | @ccDarkGreen | |
− | + | @ccDarkCyan | |
− | + | @ccDarkRed | |
− | + | @ccDarkMagenta | |
− | + | @ccDarkYellow | |
− | + | @ccGray | |
− | + | @ccDarkGray | |
− | + | @ccBlue | |
− | + | @ccGreen | |
− | + | @ccCyan | |
− | + | @ccRed | |
− | + | @ccMagenta | |
− | + | @ccYellow | |
− | + | @ccWhite | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</pre> | </pre> | ||
Latest revision as of 12:37, 14 June 2015
ConsoleBackColour( <colour> )
Contents |
Description
Set the background (behind 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");