< index < 2. Console < 2.2 Drawing on the root console | ===================================== Modifying the foreground color of a cell ===================================== |

    C++ : void TCODConsole::setFore(int x, int y, const TCODColor &col)
    C   : void TCOD_console_set_fore(TCOD_console_t con,int x, int y, TCOD_color_t col)
    Py  : console_set_fore(con, x, y, col)

This function modifies the foreground color of a cell, leaving other properties (background color and ASCII code) unchanged.

Parameter | Description
--- | ---
con | In the C version, the offscreen console handler or NULL for the root console.
x,y | Coordinates of the cell in the console. 0 <= x < console width 0 <= y < console height
col | The cell's new foreground color. You can use color constants.