version 6.0
DR Draw oval (area; startH; startV; endH; endV; mode) Longint
| Parameter | Type | Description | |
| area | Longint | 4D Draw area | |
| startH | Number | Horizontal position of start | |
| startV | Number | Vertical position of start | |
| endH | Number | Horizontal position of end | |
| endV | Number | Vertical position of end | |
| mode | Integer | 0=Absolute | |
| 1=Relative | |||
| Function result | Longint | Object ID |
Description
The command DR Draw oval creates a new oval in area and returns the object's ID.
The new oval is created with the default line and fill attributes and positioned according to startH, startV, endH, and endV. All four coordinates are expressed in base units. Use the DR Scale to base function to convert from scale units to base units.
startH and startV are specified as offsets from the current origin.
endH and endV can be specified as offsets from the current origin (absolute) or offsets from startH and startV (relative).
If mode equals 0, endH and endV are absolute coordinates. If mode equals 1, endH and endV are relative coordinates. Positive values indicate a direction down or right. Negative values indicate a direction up or left.
Example
The following example creates a one unit circle with its center at the current origin and then changes the circle's pattern.
$ID := DR Draw oval (Area;-0.5;-0.5;0.5;0.5;0) DR SET FILL ATTRIBUTES (Area;$ID;3;0)
See Also
DR SET FILL ATTRIBUTES, DR SET LINE ATTRIBUTES.