TftCircleG()

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

Syntax

TftCircleG(wX_Center As Word, wY_Center As Word, bRadius As Word, wStartColor As Word, wEndColor As Word, bGradient As Byte)

Parameters

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:
0: Horizontal (Left to Right)
1: Vertical (Bottom to Top)
2: Radial (Center to Peripheral)

Overview

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).

Notes

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, 0)

TftResetScreen(BLACK)

TftCircleG(80,60,50,YELLOW,BROWN,0)

TftCircleG(230,60,50,GREEN,PINK,1)

TftCircleG(155,170,40,CYAN,RED,2)

TftCircleG()

Created with the Personal Edition of HelpNDoc: Create Professional CHM Help Files with HelpNDoc's Easy-to-Use Tool