cmd_pxlon Function (ROM Call 0x37B)

AMS 1.01 or higher bascmd.h

void cmd_pxlon (CESI yValOrList, CESI xValOrList);

Executes TI-Basic 'PxlOn' command.

cmd_pxlon displays the Graph Screen and turns on the screen pixel at the screen coordinates (x,y). 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 parameters yValOrList and xValOrList should either point to two integer items on the expression stack, or to list of integer items which contain y and x coordinates respectively (both lists must have an equal number of elements). In the second case, a set of corresponding pixels will be turned on instead of just one pixel.

See also cmd_pton, which uses window-relative coordinates, and DrawPix for much faster low-level pixel drawing (independently of the Graph Screen).


Uses: GetValue, next_expression_index, gr_active, ForceFloat, GraphActivate, XCvtFtoP, YCvtFtoP, WinAttr, WinDupStat, WinPixSet, _bcd_math


See also: cmd_pxloff, cmd_pxlchg, cmd_pton, cmd_pxlline, cmd_pxlcircle, DrawPix