cmd_pxlvert Function (ROM Call 0x37D)

AMS 1.01 or higher bascmd.h

void cmd_pxlvert (CESI x, CESI drawmode);

Executes TI-Basic 'PxlVert' command.

cmd_pxlvert displays the Graph Screen and draws, erases, or inverts a vertical line on it. The parameters x and drawmode should point to two integer items on the expression stack, which represent respectively the x coordinate of the line and the drawing mode. The x coordinate is an absolute pixel coordinate (independent of the current window settings), where 0 is the left border of the Graph Screen. The parameter drawmode should point to one of the following values:

1Draws the line.
0Erases the line.
-1Inverts pixels along the line.

See also cmd_linehorz, which uses window-relative coordinates, and DrawLine (or DrawClipLine) for much faster low-level line drawing (independently of the Graph Screen).


Uses: GetValue, gr_active, GraphActivate, MakeWinRect, WinAttr, WinLine


See also: cmd_linevert, DrawLine, DrawClipLine, cmd_pxlhorz, cmd_pxlline