" />

gb.display.fillTriangle

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

0