gb.display.drawLine

From Gamebuino Wiki
Revision as of 2014-06-24T18:29:03 by Rodot (talk | contribs) (Created page with "{{lowercase}} __NOTOC__ == Description == Draws a straight line from one point to another. The color used is defined using <code>gb.display.setColor()</code>. == Syntax =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

Example

See also