" />

gb.display.drawLine

DESCRIPTION


Draws a straight line from one point to another. The color used is defined using gb.display.setColor().

SYNTAX


gb.display.drawLine(x0, y0, x1, y1);

PARAMETERS


  • x0: horizontal coordinate of the first point. Should be between 0 (left of the display) and LCDWIDTH (right of the display)
  • y0: vertical coordinate of the first point. Should be between 0 (top of the display) and LCDHEIGHT (bottom of the display)
  • x1: horizontal coordinate of the second point.
  • y1: vertical coordinate of the second point.

RETURNS


none

0