Core Function ConsoleBackColour
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> ConsoleBackColour( <colour> ) </pre> === Description === Set the background (behind text) colour of the console. === Parameters === ==== colour ==== ID of the colour: ...") |
m (1 revision) |
||
| (3 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> | ||
| Line 58: | Line 42: | ||
<syntaxhighlight lang="sputnik"> | <syntaxhighlight lang="sputnik"> | ||
| + | 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"); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Core Function]] | [[Category:Core Function]] | ||
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");