UniGraphics Library Fork to support mbed os 6.3 Release for ILI9341
Dependents: TFT_ILI9341_UniGraphic TFT_ILI9341_os6
Diff: Graphics/GraphicsDisplay.h
- Revision:
- 2:59188908eb60
- Parent:
- 0:bb2bda4f5846
--- a/Graphics/GraphicsDisplay.h Thu Oct 08 17:58:07 2020 -0500 +++ b/Graphics/GraphicsDisplay.h Thu Oct 08 18:11:03 2020 -0500 @@ -186,6 +186,26 @@ */ virtual void fillrect(int x0, int y0, int x1, int y1, unsigned short color); + /** draw a empty triangle + * + * @param x0,y0 1st vertice of triangle + * @param x1,y1 2nd vertice of triangle + * @param x2,y2 3rd vertice of triangle + * @param color 16 bit color + * + */ + virtual void triangle(int x0, int y0,int x1, int y1, int x2, int y2, unsigned short color); + + /** draw a filled triangle + * + * @param x0,y0 1st vertice of triangle + * @param x1,y1 2nd vertice of triangle + * @param x2,y2 3rd vertice of triangle + * @param color 16 bit color + * + */ + virtual void fillTriangle(int x0, int y0, int x1, int y1, int x2, int y2, unsigned short color); + /** setup cursor position for text * * @param x x-position (top left)