\i A P G byte::mode word::ramp color::from_color color::to_color
| Parameter | Type | Range | Description |
|---|---|---|---|
| mode | byte | 0 ... 4 | gradient mode (see below) |
| ramp | word | 0 ... max[width, height] | pixels until to_color is reached (0 = maximum) |
| from_color | color | 0x000000 ... 0xFFFFFF | color value at beginning of gradient |
| to_color | color | 0x000000 ... 0xFFFFFF | color value at end of gradient |
Sets the active fill pattern to a gradient going from from_color to to_color. All subsequent filling will be done with a gradient dependent on mode, which can be:
| Mode | from red to blue | Description |
|---|---|---|
| 0 | ![]() |
horizontal gradient (ramp from left) |
| 1 | ![]() |
vertical gradient (ramp from top) |
| 2 | ![]() |
horizontal symmetrical gradient (ramp from left and right) |
| 3 | ![]() |
vertical symmetrical gradient (ramp from top and bottom) |
| 4 | ![]() |
buttonized (ramp from all directions) |
Note
| Response: | [ACK] |
Example
\iAPG\4\D20\#FFFFFF\#00FF00
All future filling will be done with a gradient that fades from white to blue for 20 pixels in all directions. Filling an area with this pattern will give it a three-dimensional "buttonized" look.
Not supported by: DPC3020, DPC2060, DPC10xx
See also:
Copyright © demmel products gmbh. All rights reserved.