OBJSetColorGradient sets the color for a color gradient for a drawing object or a diagram.
Return Value
If the function succeeds, the return value bool is TRUE (1); otherwise it is FALSE (0).
Parameters
hobj identifies a line, text, rectangle, ellipse or layer (diagram) object.
is a vector with 3 elements:
| Value | Meaning |
|---|---|
| rvRGB1[1] | (Bottom) Red (0 to 255) |
| rvRGB1[2] | (Bottom) Green (0 to 255) |
| rvRGB1[3] | (Bottom) Blue (0 to 255) |
is a vector with 3 elements:
| Value | Meaning |
|---|---|
| rvRGB2[1] | (Top) Red (0 to 255) |
| rvRGB2[2] | (Top) Green (0 to 255) |
| rvRGB2[3] | (Top) Blue (0 to 255) |
Example
hRB = RBCreate(); // Create Rectangle
OBJSetBkMode(hRB, OPAQUE);
OBJSetFillMode(hRB, 1); // Color Gradient
OBJSetColorGradient(hRB, [0,0,0], [255,255,255]);
See also
id-824681