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

triangleBy

Draws, or fills, a triangle in the current ink colour by adding the three specified co-ordinate offsets to the current graphics cursor.
On return the graphics cursor will be left unchanged.
Syntax
GraphicDisplay. triangleBy(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