Navigation:  thinBasic Modules > UI (User Interface) > Dedicated Control Functions > Canvas Control >

Canvas_GradientFill

Previous pageReturn to chapter overviewNext page

 

Description

 

Fill the currently selected canvas target with a gradient color.

 

Syntax

 

n = Canvas_GradientFill(hWnd, CtrlID, eColorFrom, eColorTo, eDirection)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Window handle

CtrlID

Number

No

Control ID

eColorFrom

Number

No

RBG starting color

eColorTo

Number

No

RGB ending color

eDirection

Number

No

One of the following directions:

%Canvas_GradientFill_Hor

%Canvas_GradientFill_Vert

 

Remarks

 

Restrictions

 

See also

 

Examples