TftStar()

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

Syntax

TftStar(wX_Center As Word, wY_Center As Word, bOuterRadius As Byte, bInnerRadius As Byte, bPoints As Byte, bStartAngle As Byte, pSolid As Bit, wColor As Word)

Parameters

Parameter

Description

wX_Center

star center X-coordinate

wY_Center

star center Y-coordinate

bOuterRadius

distance from center to each outer point

bInnerRadius

distance from center to each inner valley

bPoints

number of points on the star (e.g. 5 for a 5-pointed star)

bStartAngle

starting angle for the first outer point, in degrees

pSolid

0 = outline only, 1 = filled

wColor

16-bit RGB565 color

Overview

Draws a star shape with the given parameters

Example

TftSetUp(0, 0)

TftResetScreen(BLACK)

TftStar(50,50,40,10,5,90,0,RED)

TftStar(150,50,40,10,5,45,1,GREEN)

TftStar(250,50,40,10,7,10,1,BLUE)

TftStar(80,150,60,30,9,80,0,PURPLE)

TftStar(190,150,60,20,7,10,1,BROWN)

TftStar()

Created with the Personal Edition of HelpNDoc: Upgrade Your Documentation Process with a Help Authoring Tool