< index
< 2. Console emulator
< 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.
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
colThe cell's new foreground color. You can use color constants.
insert a comment