void Graphics::fillTriangle( int16_t x0 , int16_t y0 , int16_t x1 , int16_t y1 , int16_t x2 , int16_t y2 )
Graphics::fillTriangle draws a filled triangle between three points, (x0, y0), (x1, y1) and (x2, y2).
none
#include <Gamebuino-Meta.h>void setup() { gb.begin(); }
void loop() { while(!gb.update()); gb.display.clear();
// draw a green triangle gb.display.setColor(GREEN); gb.display.fillTriangle(0, 10, 10, 0, 20, 10); }