TftCircleG(wX_Center As Word, wY_Center As Word, bRadius As Byte, wStartColor As Word, wEndColor As Word, bGradient As Byte)
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)
wStartColor: Start color for the gradient in 16-bit 565 RGB format
wEndColor: End color for the gradient in 16-bit 565 RGB format
bGradient: Direction for the gradient:
• 0: Horizontal (Left to Right)
• 1: Vertical (Bottom to Top)
• 2: Radial (Center to Peripheral)
Draws a solid circle filled with a gradient color.
The gradient can be applied in three directions: horizontal, vertical, or radial (from the center to the perimeter).
Note:
Radial gradients are computationally demanding, as the circle is drawn pixel by pixel. This method is much slower than other gradient types, particularly for larger circles.
Example:
TftSetUp(0) TftResetScreen(BLACK) TftCircleG(80,60,50,YELLOW,BROWN,0) TftCircleG(230,60,50,GREEN,PINK,1) TftCircleG(155,170,40,CYAN,RED,2) |
Created with the Personal Edition of HelpNDoc: Benefits of a Help Authoring Tool