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

=====================================
Drawing an vertical line
=====================================

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.
ParameterDescription
conIn the C version, the offscreen console handler or NULL for the root console.
x,yCoordinates of the line's upper end in the console.
0 <= x < console width
0 <= y < console height
lThe length of the line in cells 1 <= l <= console height - y
insert a comment