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

lineBy

Draws a line from the current graphics cursor to the current graphics cursor plus the specified x,y offsets in the current ink colour.
On return the graphics cursor is set to the end of the line.
Syntax
GraphicDisplay. lineBy(x,y)
Where GraphicDisplay is the name you have given to the device in Project Designer.
Parameters
TypeNameDescription
'x'
The x value across the screen.
'y'
The y value down the screen.
Returns
None
Example
To draw a rectangle that is 10 pixels wide and 10 high using the current graphics cursor as the top left corner:
display.lineBy(10, 0); // Top
display.lineBy(0, 10); // Right
display.lineBy(-10, 0); // Bottom
display.lineBy(0, -10); // Left

 

 

Valid XHTML 1.0 Transitional