Triangle:
Triangle(XPixelPosition1, YPixelPosition1, XPixelPosition2, YPixelPosition2, XPixelPosition3, YPixelPosition3 [,Optional LineColour] )
Explanation:
Draws an unfilled triangle on a GLCD with corners at XPixelPositionN, YPixelPositionN for N = 1, 2, 3.
The constant GLCD_PROTECTOVERRUN can be added to prevent triangles from
re-drawing at the screen edges. Ensure the GLCD_WIDTH and GLCD_HEIGHT
constants are set correctly when using this additional constant.
Example:
#include <glcd.h>
Triangle(0, 0, 31, 63, 127, 0 ) ' <<< the Triangle instructionKey line: Triangle(0, 0, 31, 63, 127, 0 ) — draws an unfilled triangle spanning the top-left corner, a point partway down the left side, and the top-right corner of
a 128x64 display.
See Also:
- GLCD Overview — category overview
- FilledTriangle — the filled equivalent of this command
- Box — related command in the same category

