FILLRECT_GRADIENT
|
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>])
|
||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||
|
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: |
|
||||||||||||||||||||||||
|
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: |
|