TftCircleQ()

Library Description ›› Shapes ›› Circle ››
Parent Previous Next

TftCircleQ(wX_Center As Word, wY_Center As Word, bRadius As Byte, pSolid As Bit, wColor As Word, bWidth As Byte, sbDirection As SByte)


wX_Center: X-coordinate of the circle's center

wY_Center: Y-coordinate of the circle's center

bRadius: Radius of the circle (in pixels)

pSolid: Circle fill:

• 0: No fill

• 1: Solid fill

wColor: Fill or outline color in 16-bit 565 RGB format

bWidth: Circle outline width in pixels:

• 0: No additional width (i.e., 1 pixel wide)

• Other values: Circle outline width in pixels

sbDirection: Position of the additional width with respect to the circle:

• 1: Outward

• -1: Inward

• Else: Ignored (no additional width)


Draws a circle using optimized, quick routines. 


This method is less computationally intensive than others, but it may result in slight deformation for smaller radii and less precise outline widths.


Note:

• The smaller the radius, the more the circle may appear deformed.

• The bWidth parameter is less accurate, which may lead to missing pixels when drawing the circle outline.


Example:


TftSetUp(0)

TftResetScreen(BLACK)

TftCircleNE(40,40,30,RED)

TftCircleNS(110,40,30,GREEN)

TftCircleN(180,40,30,0,BLUE,4,-1)

TftCircleQE(40,120,30,RED) 

TftCircleQS(110,120,30,GREEN) 

TftCircleQ(180,120,30,0,BLUE,4,-1)






Created with the Personal Edition of HelpNDoc: Say Goodbye to Documentation Headaches with a Help Authoring Tool