-
Notifications
You must be signed in to change notification settings - Fork 8
triangle
Anobium edited this page Oct 18, 2020
·
1 revision
Triangle:
Triangle(XPixelPosition1, YPixelPosition1, XPixelPosition2, YPixelPosition2, XPixelPosition3, YPixelPosition3 [,Optional LineColour] )
Explanation:
Draws a Triangle on a GLCD at XPixelPositionN
, YPixelPositionN
.
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 )