TftTriangle()

Library Description ›› Shapes ›› Triangle ››
 visits
Parent Previous Next

Syntax

TftTriangle(wX_0 As Word, wY_0 As Word, wX_1 As Word, wY_1 As Word, wX_2 As Word, wY_2 As Word, pSolid As Bit, wColor As Word, bWidth As Byte, sbDirection As SByte)

Parameters

Parameter

Description

wX_0

X-coordinate of Corner 0

wY_0

Y-coordinate of Corner 0

wX_1

X-coordinate of Corner 1

wY_1

Y-coordinate of Corner 1

wX_2

X-coordinate of Corner 2

wY_2

Y-coordinate of Corner 2

pSolid

Triangle fill type:
0: No fill
1: Solid fill

wColor

Fill or outline color in 16-bit RGB565 format

bWidth

Triangle outline thickness in pixels:
0: No additional width (1-pixel outline)

Overview

sbDirection — Direction of additional outline width:

Draws a triangle defined by three vertices.

If pSolid is set to 1, the triangle will be filled with the specified color. If set to 0, only the outline will be drawn.

The outline can also have additional width, which can be directed either inward or outward.

Example

TftSetUp(0, 0)

TftResetScreen(BLACK)

TftTriangle(10,20,30,70,60,40,0,GREEN, 5,1)

TftTriangleNS(60,70,80,180,110,120,RED)

TftTriangleNE(140,120,260,200,130,100,WHITE)

TftTriangle()

Created with the Personal Edition of HelpNDoc: Make CHM Help File Creation a Breeze with HelpNDoc