WebbotLib AVR library
WebbotLib It just does it
  C++ documentation  C documentation

rectangleBy

Draws, or fills, a rectangle in the current ink colour by adding the two specified co-ordinate offsets to the current graphics cursor to give the top left and bottom right corners.
On return the graphics cursor will be left unchanged.
Syntax
GraphicDisplay. rectangleBy(x1,y1,x2,y2,fill)
Where GraphicDisplay is the name you have given to the device in Project Designer.
Parameters
TypeNameDescription
'x1'
The x value for point number 1.
'y1'
The y value for point number 1.
'x2'
The x value for point number 2.
'y2'
The y value for point number 2.
'fill'
FALSE to draw the outline or TRUE to fill the shape.
Returns
None
Note
Note that drawing beyond the edges of the screen will have an 'unknown' effect.

 

 

Valid XHTML 1.0 Transitional