Archive of the Gamebuino Classic wiki, recovered from the Wayback Machine (capture 2015-03-23). Read-only.
gb.display.drawTriangle
Description
Draws 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.drawTriangle(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