<<

Contents

Search

>>

 

FILLRECT_GRADIENT

 

 

Function

 

 

Syntax:

FILLRECT_GRADIENT(<Row>,<Column>,<Height in Rows>,<Width in Columns>,<Red-1>,<Green-1>,<Blue-1>,<Red-2>,<Green-2>,<Blue-2>,<Direction>[,<Handle>])

 

<Row>

= <NUM-EXPRESSION>

<Column>

= <NUM-EXPRESSION>

<Height in Rows>

= <NUM-EXPRESSION>

<Width in Columns>

= <NUM-EXPRESSION>

<Red-1>

= <NUM-EXPRESSION>

<Green-1>

= <NUM-EXPRESSION>

<Blue-1>

= <NUM-EXPRESSION>

<Red-2>

= <NUM-EXPRESSION>

<Green-2>

= <NUM-EXPRESSION>

<Blue-2>

= <NUM-EXPRESSION>

<Direction>

= <NUM-EXPRESSION>

<Handle>

= <NUM-EXPRESSION>

 

 

Meaning:

Fills a rectangle on the screen with a linear color gradient pattern from color <Red-1>,<Green-1>,<Blue-1> to color <Red-2>,<Green-2>,<Blue-2>.

 

<Row> and <Column> specify the upper left corner and <Height in Rows> and <Width in Columns> specify the height and width of the rectangle in rows and columns.

 

If <Red-1> < 0 or <Green-1> < 0 or <Blue-1> < 0 or <Red-2> < 0 or <Green-2> < 0 or <Blue-2> < 0 , a rectangle of the same size previously drawn at the same position is deleted again.

 

<Handle> specifies to which window the instruction refers. <Handle> can contain the window depth or the handle of a split window or a WINDOWCALL window. If the parameter <Handle> is missing, the instruction refers to the current mask.

 

FILLRECT_GRADIENT returns the value –1, if a not existing rectangle is to be deleted again, otherwise always 1.

 

Attention: In Html programs 1 is returned when NOREPAINT is active.

 

Parameter:

Row

Row of upper left corner

Column

Column of upper left corner

Height in Rows

Height of rectangle in rows

Width in Columns

Width of rectangle in columns

Red-1

Color-1: Red value

Green-1

Color-1: Green value

Blue-1

Color-1: Blue value

Red-2

Color-2: Red value

Green-2

Color-2: Green value

Blue-2

Color-2: Blue value

Direction

Defines the gradient direction:

1 = from left to right

2 = from top to bottom

3 = from top right to bottom left

4 = from center outwards

5 = from left to right centered

6 = from top to bottom centered

7 = from center circular outwards

8 = corners

else = from top left to bottom right

Handle

Window depth or handle of a split window or handle of a WINDOWCALL Window

 

Sample:

/* Rectangle on position 3,2.5 with gradient from red to blue

H% = FILLRECT_GRADIENT(3,2.5,3.5,30,255,0,0,0,0,255,1)

...

/* Delete the rectangle

H% = FILLRECT_GRADIENT(3,2.5,3.5,30,-1,-1,-1,-1,-1,-1,1)

 

See also:

FILLRECT

CIRCLE

POLYGON

DRAWLINE