gb.display.drawLine

From Gamebuino Wiki
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

Personal tools
Namespaces

Variants
Actions
Navigation
Misc
Toolbox