 |
cmd_pxlline |
Function (ROM Call 0x379) |
Executes TI-Basic 'PxlLine' command.
cmd_pxlline displays the Graph Screen and draws, erases, or inverts a line
segment on it.
The parameters y1, x1, y2, x2, and
drawmode should point to five integer items on the expression stack,
which represent respectively the coordinates of the starting point (note that
the order of x and y coordinates is swapped), the ending point, and the
drawing mode. The coordinates are absolute pixel coordinates (independent of
the current window settings), where (0,0) is the top left corner 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_line, which uses window-relative
coordinates, and DrawLine (or
DrawClipLine) for much faster
low-level line drawing (independently of the Graph Screen).
Graph Screen).
Uses: GetValue, gr_active, GraphActivate, MakeWinRect, WinAttr, WinLine
See also: cmd_line, DrawLine, DrawClipLine, cmd_pxlcircle, cmd_pxlhorz, cmd_pxlvert, cmd_pxlon, cmd_pxloff, cmd_pxlchg