| cmd_pxlhorz | Function (ROM Call 0x378)

AMS 1.01 or higher | bascmd.h

void cmd_pxlhorz (CESI y, CESI drawmode);

Executes TI-Basic 'PxlHorz' command.

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

1 | Draws the line.
0 | Erases the line.
-1 | Inverts 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_linehorz, DrawLine, DrawClipLine, cmd_pxlvert, cmd_pxlline