cmd_pxlcircle Function (ROM Call 0x377)

AMS 1.01 or higher bascmd.h

void cmd_pxlcircle (CESI y, CESI x, CESI radius, CESI drawmode);

Executes TI-Basic 'PxlCircle' command.

cmd_pxlcircle displays the Graph Screen and draws, erases, or inverts a circle on it. The parameters y, x, radius and drawmode should point to four integer items on the expression stack, which represent respectively the coordinates of the center of the circle (note that the order of x and y is swapped), the radius, 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 radius is also measured in pixels. The parameter drawmode should point to one of the following values:

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

See also cmd_circle, which uses window-relative coordinates, and DrawClipEllipse for much faster low-level circle/ellipse drawing (independently of the Graph Screen).


Uses: GetValue, gr_active, GraphActivate, WinAttr, WinEllipse


See also: cmd_circle, DrawClipEllipse