rect(3G) rect(3G)
rect, recti, rects - outlines a rectangular region
void rect(x1, y1, x2, y2)
Coord x1, y1, x2, y2;
void recti(x1, y1, x2, y2)
Icoord x1, y1, x2, y2;
void rects(x1,y1, x2, y2)
Scoord x1, y1, x2, y2;
All of the above routines are functionally the same. They differ only in
the type declarations of their parameters.
x1 expects the x coordinate of one of the corners of the rectangle.
y1 expects the y coordinate of one of the corners of the rectangle.
x2 expects the x coordinate of the opposite corner of the rectangle.
y2 expects the y coordinate of the opposite corner of the rectangle.
rect draws an unfilled rectangle in the x-y plane with z assumed to be
zero. The sides of the rectangle are parallel to the x and y axes. To
create a rectangle that does not lie in the x-y plane, draw the rectangle
in the x-y plane, then rotate and/or translate the rectangle.
A rectangle is drawn as a sequence of four line segments, and therefore
inherits all properties that affect the drawing of lines. These include
the current color, writemask, line width, stipple pattern, shade model,
line antialiasing mode, and subpixel mode. The stipple pattern is
initialized to bit zero of the current linestyle before the rectangle is
drawn, then shifted continuously through the segments of the rectangle.
After rect executes, the graphics position is undefined.
bgnclosedline, linewidth, linesmooth, lsrepeat, rectf, sbox,
scrsubdivide, setlinestyle, shademodel, subpixel
PPPPaaaaggggeeee 1111 [ Back ]
|