gscrca
Purpose
Draws a circular arc between two angles.
C Syntax
int gscrca_ (cx, cy, cr, ba, ea)
int *cx, *cy, *cr, *ba, *ea;
FORTRAN Syntax
INTEGER function gscrca (cx, cy, cr, ba, ea)
INTEGER cx, cy, cr, ba, ea
Pascal Syntax
FUNCTION gscrca_ (
VAR cx, cy, cr, ba, ea : INTEGER
): INTEGER [PUBLIC|;
Description
The gscrca subroutine draws a counterclockwise circular
arc of the specified radius from the beginning point as
defined by an angle specification to the ending point as
defined by an angle specification.
The angle specifications are given in tenths of degrees,
from 0 to 3600. Values outside this range cause the
gscrca 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
circle.
For displays, the center is restricted to -2048
to 2048.
For printers and plotters, the center is
restricted to screen coordinates.
cr Defines the radius of the circle in device
coordinates.
ba Defines the start point of the circular arc as
an angle in tenths of degrees, from 0 to 3600.
ea Defines the end point of the circular arc as an
angle in tenths of degrees, from 0 to 3600.
If the beginning and ending angles are identical, a full
circle is drawn.
Return Value
GS_SUCC Successful.
GS_ANGL Invalid angle.
GS_RDUS Invalid radius specification.
GS_CORD Invalid coordinate.
GS_INAC Virtual terminal inactive.