TftArcS()

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

Syntax

TftArcS(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, fStartSegment As Float, fEndSegment As Float, sbOffset As SByte)

Parameters

Parameter

Description

wX_Start

X-coordinate of the full arc's start point.

wY_Start

Y-coordinate of the full arc's start point.

wX_Stop

X-coordinate of the full arc's stop point.

wY_Stop

Y-coordinate of the full arc's stop point.

wRadius

Radius of the arc (should be greater than the distance between the start and stop points).

pCurve

Arc curvature direction:
0 = Concave
1 = Convex

wColor

16-bit RGB565 color for the arc's segment.

fStartSegment

Fraction (0 to 1) indicating the start position of the arc segment.

fEndSegment

Fraction (0 to 1) indicating the end position of the arc segment.

sbOffset

Offsets the arc segment along the radius by sbOffset pixels, creating a parallel arc segment to the original.

Overview

This function draws a 1-pixel thick segment of an arc. 


The arc is defined by the start and stop points, with a specified radius. The arc can be concave or convex, and the segment can be drawn as a portion of the full arc based on the fStartSegment and fEndSegment fractions.
The sbOffset parameter creates a parallel offset, effectively drawing a "parallel arc segment" at a specified distance from the original arc.

Example

TftSetUp(0, 0)

TftResetScreen(BLACK)

TftArcS(30,80,290,80,200,0,RED,0,0.3,-10)

TftArcS(30,80,290,80,200,0,GREEN,0.4,0.6, 0)

TftArcS(30,80,290,80,200,0,BLUE,0.7,1,10)

TftArcS()

Created with the Personal Edition of HelpNDoc: Full-featured EPub generator