TftParallelogramNTS()

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

Syntax

TftParallelogramNTS(wX_Corner As Word, wY_Corner As Word, wSideH As Word, wSideI As Word, wAngle As Word, pSolid As Bit, wColor As Word)

Parameters

Parameter

Description

wX_Corner

X-coordinate of Corner 1

wY_Corner

Y-coordinate of Corner 1

wSideH

Length of the horizontal side

wSideI

Length of the inclined side

wAngle

Angle between the horizontal and inclined sides in degrees

pSolid

Parallelogram fill type:
0: No fill
1: Solid fill

wColor

Fill or outline color in 16-bit RGB565 format

Overview

Draws a parallelogram with the given starting corner, horizontal and inclined side lengths, and the angle between them. 

If pSolid is set to 1, the parallelogram is filled with the specified color. If pSolid is 0, only the outline is drawn.

Example

TftSetUp(0, 0)

TftResetScreen(BLACK)

TftParallelogramNTS(50,40, 150, 80, 30, 0, GREEN)

TftParallelogramNTS(70,140, 150, 80, 30, 1, VIOLET)

TftParallelogramNTS()

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