rect() — Silicon Graphics Beta Release
NAME
rect - outlines a rectangular region
SPECIFICATION
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*4 x1, y1, x2, y2
Pascal
procedure rect(x1, y1, x2, y2: Coord);
procedure recti(x1, y1, x2, y2: Icoord);
DESCRIPTION
rect draws a rectangle using the current linestyle, linewidth, color, and writemask. The sides of the rectangle are parallel to the x and y coordinate system. Since a rectangle is a two-dimensional shape, rect takes only 2D arguments, and sets the z coordinate to zero. The points (x1, y1) and (x2, y2) are the opposite corners of the rectangle.
SEE ALSO
poly, rectf, rpdr, rpmv
Version 2.3 — July 04, 1985