rectangle


graphic primitive rectangle

rectangle
obj
image
menu        message
see
See also

rectangle

rectangle(x1,y1,x2,y2)

       Trace the rectangle whose two opposite vertices are (x1,y1) and (x2,y2).
Options:
alea(a): density of random pixels.
col(r,v,b): color (r,v,b) (white default).
col(r1,v1,b1,r2,v2,b2): gradient color from [r1,v1,b1] (center) to [r2,v2,b2] (edge).
illum(c): 1 opaque (default), 0 line.
image(id): writes the rectangle in the image id.
rand(r1,v1,b1,r2,v2,b2):no reproductible random colors in the interval [r1,v1,b1] * [r2,v2,b2].
transp(t1,t2): interpolated transparency from t1 (center) to t2 (edge).
Examples:
rectangle(0,0,200,100)col(1); displays the red rectangle of sides 200,100 in (0,0).
rectangle(-100,-100,100,100)col(1,0,0,0,1,0)transp(0,1); displays rhe square side 200, gradient color from red (center) to green (edge) and gradient transparency from opaque (center) to transparent (edge).

rectangle obj

rectangle obj(id)

        Returns the rectangle property of the object id.

rectangle obj(id)=r1,r2,...

        Changes this property.

rectangle image

rectangle(x1,y1,x2,y2)image(id)

       Writes rectangle (x1,y1,x2,y2) white in image id. Options:
col(r,v,b,a) color (r,v,b,a) (1,1,1,0 default).
normal normalized coordinates (between 0.0 and 1.0).
poi(x0,r0)radius(rx,ry): equivalent to rectangle(x0-rx,y0-ry,x0+rx,y0+ry).
Note:
(x1,y1,x2,y2) are relative coordinates in the image (origin is the bottom left corner).

rectangle menu

rectangle menu("MEN")

Returns the colors of the rectangles of the menu MEN.

rectangle menu("MEN")=r,g,b,...

Changes these colors. If r<0: no rectangle.

rectangle message

rectangle message(id)

        Returns the color of the rectangles of the message id.

rectangle message(id)=r,g,b

        Changes this color. If r<0: no rectangle.

rectangle see

rectangle see

        Returns the color of the see window.

rectangle see=r,g,b

        Changes this color. If r<0: no rectangle.

See also:

frame image
screen image
pixel image
segment image
image screen