gb.display.fillTriangle

From Gamebuino Wiki
Revision as of 2014-08-05T01:47:50 by Matrix828 (talk | contribs) (Creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

Draws and fills a triangle at a specified location. The color used is defined using gb.display.setColor(). If you specify values that cause parts of the triangle to be off screen, then they will not be rendered.

Syntax

gb.display.fillTriangle(x0, y0, x1, y1, x2, y2);

Parameters

  • x0: horizontal coordinate of the 1st corner.
  • y0: vertical coordinate of the 1st corner.
  • x1: horizontal coordinate of the 2nd corner.
  • y1: vertical coordinate of the 2nd corner.
  • x2: horizontal coordinate of the 3rd corner.
  • y2: vertical coordinate of the 3rd corner.

Returns

none

Example

See also