TftArcG()

Library Description ›› Shapes ›› Arc ››
Parent Previous Next

TftArcG(wX_Start As Word, wY_Start As Word, wX_Stop As Word, wY_Stop As Word, wRadius As Word, pCurve As Bit, wStartColor As Word, wEndColor As Word, bWidth As Byte, sbDirection As SByte)


wX_Start: X-coordinate of the starting point of the arc

wY_Start: Y-coordinate of the starting point of the arc

wX_Stop: X-coordinate of the ending point of the arc

wY_Stop: Y-coordinate of the ending point of the arc

wRadius: Radius of the arc (must be greater than the distance between the start and stop points)

pCurve: Direction of the arc:

• 0 = Concave

• 1 = Convex

wStartColor: Starting color for the gradient (16-bit color in 565 RGB format)

wEndColor: Ending color for the gradient (16-bit color in 565 RGB format)

bWidth: Arc thickness in pixels (default is 1 if not specified)

sbDirection: Direction in which additional pixels are added relative to the center point:

• 1 = Outward

• -1 = Inward

• Else = Ignored (no additional width)


This function draws an arc with a gradient color fill, taking extra processing time for gradient rendering. 


The arc's start and end points are defined by their coordinates, and the arc can have a concave or convex shape, with a specified radius and thickness.


Example:


TftSetUp(0)

TftResetScreen(BLACK)

TftArcG(30,80,290,80,200,0,YELLOW, BROWN,1,0)

TftArcG(10,60,200,50,160,1,BLUE,RED,6,-1)






Created with the Personal Edition of HelpNDoc: Revolutionize your documentation process with HelpNDoc's online capabilities