Purpose
Opcode format | Opcode [ASCII] (Hex) | Operand Format | Comments |
Single-byte, readable operand | [R] (52) | [<ws>]<IX>,<IY><ws><IR> | Absolute coordinates. |
Extended ASCII | (Circle | <ws><IX>,<IY><ws><IR><ws><IStart>,<IEnd>[<ws>]) | Absolute coordinates. |
Single-byte, binary operand | [r] (72) | <LX><LY><ULR> | Full circle, relative coordinates. |
- | [Ctrl-R] (12) | <SX><SY><USR> | Full circle, relative coordinates. |
- | (92) | <LX><LY><ULR><USstart><USEnd> | A partial or full circle, relative coordinates. |
R Radius (in logical coordinates) of the circle to be drawn
Start, End The angles (in 360/65,536ths of a degree) that describe a "pie-slice" of the full circle to be rendered; legal values range from 0 to 65,535
When the "Fill Mode" attribute is active, the Draw Circle function renders the interior of a circle in a solid color, based on the Polygon drawing attributes which include "Color", and "Visibility."
Some of the circle opcodes take Start and End arguments, which allow a portion of the specified circle to be rendered. This is shown in figure 1. With "Fill Mode" off, Start and End define a circular arc, and with "Fill Mode" on, a circular wedge is rendered. The Start and End values are integers that represent 360/65,536ths of a degree.
Figure 1. Portion of circle rendered by Start and End arguments
Notes
When "Fill Mode" is active, a visually apparent outlining edge of the circle is not rendered. The filled Draw Circle function may be followed by an additional unfilled Draw Circle call to render the desired edge. For an example and further information, see the "Notes" section of the Draw Polyline/Polygon function.