< index
< 2. Console emulator
< 2.2 Drawing on the root console

=====================================
Reading the background color of a cell
=====================================

C++ : TCODColor TCODConsole::getBack(int x, int y) const
C   : TCOD_color_t TCOD_console_get_back(TCOD_console_t con,int x, int y)
Py  : console_get_back(con,x,y)

This function returns the current background color of a cell.
ParameterDescription
conIn the C version, the offscreen console handler or NULL for the root console.
x,yCoordinates of the cell in the console.
0 <= x < console width
0 <= y < console height
insert a comment