Definition: | bk_color(integer i) |
Description: | Set the console window background color to one of the 16 standard colors. Any new characters that you print will have the new background color. |
Comments: | The 16 standard colors (values 0..15, see psym.e or graphics.e) may be used:
BLACK, BLUE, BRIGHT_BLUE, BROWN, CYAN, BRIGHT_CYAN, GRAY, GREEN, BRIGHT_GREEN, MAGENTA, BRIGHT_MAGENTA, RED, BRIGHT_RED, WHITE, BRIGHT_WHITE, YELLOW To restore the original background color when your program finishes, you must call e.g. bk_color(BLACK). |
Example: |
bk_color(BLACK) |
Example Program: | demo\color.ex |
See Also: | text_color |