[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.3.3 RECTEXT

Syntax: RECTEXT width height [ xoffset yoffset ]

The rectangle extension, RECTEXT, is similar to the SQUAREXT extension. It draws a white rectangle outline on a black background. RECTEXT requires two positive integers, width and height, which specifies the size of the rectangle to draw. It can also take the integer position arguments, xoffset and yoffset to move the rectangle from the origin (center of the picture). If either width or height is zero, then no rectangle will be drawn.

In the complete testlist below (RECTEXT.IN), each %I command creates one picture, which consists of a rectangle outline drawn in white on a black background with a width of 30 pixels and a height of 60 pixels, in varying positions around the origin.

 
%X[rectext.cxr]
%M2%C2
%I[1,30,60,-50,-50]
%I[1,30,60,50,-50]
%I[1,30,60,50,50]
%I[1,30,60,-50,50]
#B[1,20]#R
#B[2,20]#R
#B[3,20]#R
#B[4,20]#R

This example creates pictures like these:

images/rect1
images/rect2
images/rect3
images/rect4

RECTEXT Implementation  



This document was generated on November, 24 2008 using texi2html