gsell
Purpose
Draws an ellipse.
C Syntax
int gsell_ (cx, cy, ma, mi, ang)
int *cx, *cy, *ma, *mi, *ang;
FORTRAN Syntax
INTEGER function gsell (cx, cy, ma, mi, ang)
INTEGER cx, cy, ma, mi, ang
Pascal Syntax
FUNCTION gsell_ (
VAR cx, cy, ma, mi, ang : INTEGER
): INTEGER [PUBLIC|;
Description
The gsell subroutine draws an ellipse of the specified
axes and angle. The axes are expressed in number of
pixels.
The angle specifications are given in tenths of degrees,
from 0 to 3600. Values outside this range cause the
gsell subroutine to fail.
The relevant attributes are:
o Color map
o Plane mask
o Line color index
o Line style
o Logical operation.
Parameters
cx, cy Define the coordinates of the center of the
ellipse.
ma, mi Define half of the non-zero major and minor
axes of the ellipse.
ang Defines the angle between the major axis and
the x-axis. If it is zero, the major axis is
on the x-axis and the minor axis is on the
y-axis. The angle is expressed in tenths of
degrees, from 0 to 3600.
Return Value
GS_SUCC Successful.
GS_CORD Invalid coordinate.
GS_ELMM Invalid major or minor axis.
GS_INAC Virtual terminal inactive.
GS_ANGL Invalid angle.
GS_NMEM Insufficient resources.