< index < 2. Console emulator < 2.2 Drawing on the root console |
===================================== |
C++ : void TCODConsole::vline(int x,int y, int l, TCOD_bkgnd_flag_t flag = TCOD_BKGND_SET) C : void TCOD_console_vline(TCOD_console_t con,int x,int y, int l, TCOD_bkgnd_flag_t flag) Py : console_vline(con,x,y,l,flag)Draws an vertical line in the console, using ASCII code TCOD_CHAR_VLINE (179), and the console's default background/foreground colors.
Parameter | Description |
---|---|
con | In the C version, the offscreen console handler or NULL for the root console. |
x,y | Coordinates of the line's upper end in the console. 0 <= x < console width 0 <= y < console height |
l | The length of the line in cells 1 <= l <= console height - y |