< index < 2. Console emulator < 2.2 Drawing on the root console |
===================================== |
C++ : void TCODConsole::setBackgroundColor(TCODColor back) C : void TCOD_console_set_background_color(TCOD_console_t con,TCOD_color_t back) Py : console_set_background_color(con,back)This function changes the default background color for a console. The default background color is used by several drawing functions like clear, putChar, ...
C++ : TCODConsole::root->setBackgroundColor(myColor) C : TCOD_console_set_background_color(NULL, my_color) Py : litbcod.console_set_background_color(0, my_color)
Parameter | Description |
---|---|
con | In the C version, the offscreen console handler or NULL for the root console. |
back | The new default background color for this console. |