TftArc()

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

Syntax

TftArc(wX_Start As Word, wY_Start As Word, wX_Stop As Word, wY_Stop As Word, wRadius As Word, pCurve As Bit, wColor As Word, bWidth As Byte, sbDirection As SByte, bFillFactor As Byte)

Parameters

Parameter

Description

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

wColor

Arc color in 16-bit RGB565 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

Overview

bFillFactor — Factor to fill missing pixels due to floating-point rounding when drawing thicker arcs:

Draws an arc with a specified start and stop point, radius, and curvature direction. 


The arc can have additional thickness and be filled with extra pixels for smoother rendering.

Example

TftSetUp(0, 0)

TftResetScreen(BLACK)

TftArc(30,80,290,80,200,0,GREEN,1,1,100)

TftArc(10,60,200,50,160,1,RED,6,-1,100)

TftArc()

Created with the Personal Edition of HelpNDoc: Converting Word Docs to eBooks Made Easy with HelpNDoc