FilledTriangle

FilledTriangle:

    FilledTriangle( XPixelPosition1, YPixelPosition1, XPixelPosition2, YPixelPosition2, XPixelPosition3, YPixelPosition3 [,Optional LineColour] )

Explanation:

Draws a filled triangle on a GLCD with corners at XPixelPositionN, YPixelPositionN for N = 1, 2, 3.

The constant GLCD_PROTECTOVERRUN can be added to prevent filled 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>

    FilledTriangle(0, 0, 31, 63, 127, 0 )          ' <<< the FilledTriangle instruction

Key line: FilledTriangle(0, 0, 31, 63, 127, 0 ) — draws a solid 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
  • Triangle — the unfilled equivalent of this command
  • FilledBox — related command in the same category
  • FilledCircle — related command in the same category