TftCircleG(wX_Center As Word, wY_Center As Word, bRadius As Word, wStartColor As Word, wEndColor As Word, bGradient As Byte)
|
Parameter |
Description |
|
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 RGB565 format |
|
wEndColor |
End color for the gradient in 16-bit RGB565 format |
|
bGradient |
Direction for the gradient: |
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).
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.
|
TftSetUp(0, 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: Create Professional CHM Help Files with HelpNDoc's Easy-to-Use Tool