rect(3) — Silicon Graphics R1c
NAME
rect - outline a rectangular region
SYNOPSIS
C
rect(x1, y1, x2, y2)
Coord x1, y1, x2, y2;
recti(x1, y1, x2, y2)
Icoord x1, y1, x2, y2;
FORTRAN
subroutine rect(x1, y1, x2, y2)
real x1, y1, x2, y2
subroutine recti(x1, y1, x2, y2)
integer x1, y1, x2, y2
Pascal
procedure rect(x1, y1, x2, y2: Coord);
procedure recti(x1, y1, x2, y2: Icoord);
DESCRIPTION
A rectangle is determined by two points specifying opposite corners. The sides of the rectangle are parallel to the x and y axes of the object space coordinate system. The z coordinate is set to zero. Rect takes four arguments: x1, y1, x2, and y2. A rectangle is outlined with four line segments, using the current linestyle, linewidth, color, and writemask.
SEE ALSO
poly, rectf
Version 2.3 — July 04, 1985