rect() — Silicon Graphics
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;
rects(x1,y1, x2, y2)
Scoord 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
subroutine rects(x1, y1, x2,y2)
integer*2 x1, y1, x2, y2
Pascal
procedure rect(x1, y1, x2, y2: Coord);
procedure recti(x1, y1, x2, y2: Icoord);
procedure rects(x1, y1, x2, y2: Scoord);
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 axes. Since a rectangle is a two-dimensional shape, rect takes only 2D arguments, and sets the z coordinate to zero (0). The points (x1, y1) and (x2, y2) are the opposite corners of the rectangle.
SEE ALSO
poly, rectf, rpdr, rpmv IRIS Graphics Programming, Section 3.5, Rectangles
Version 2.5 — April 22, 1987