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)
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 565 RGB format
bWidth: Triangle outline thickness in pixels:
• 0: No additional width (1-pixel outline)
• Other values specify the outline width
sbDirection: Direction of additional outline width:
• 1: Outward
•-1: Inward
• Other values are ignored if there is no additional 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) 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) |
Created with the Personal Edition of HelpNDoc: Streamline your documentation process with HelpNDoc's HTML5 template