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

triangleAt

Draws, or fills, a triangle in the current ink colour between the three specified co-ordinates.
On return the graphics cursor will be set to x1,y1.
Syntax
GraphicDisplay. triangleAt(x1,y1,x2,y2,x3,y3,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.
'x3'
The x value for point number 3.
'y3'
The y value for point number 3.
'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