COLOR function
Synopsis
This function
returns a color object from the specified name or from the values
of red, green and blue components.
Variations
COLOR(
ColorName)
Returns a color object from the
specified name.
Details |
Examples |
Details and examples
Parameters
ColorName
Specifies the name of the color to return. Possible names are:
transparent, white, black, red, yellow, green, lightgreen,
darkgreen, greenyellow, cyan, blue, aliceblue, deepskyblue,
skyblue, magenta, aqua, brown, gray, darkgray, gold, orange,
darkorange, purple, and olive.
Supported types: String.
Returns
Examples
1. |
The following example returns a black color
COLOR("black")
The following example will conditionally set the color to green
if the
Status step result is a Pass, or set the color to red if
the
Status step result is not a Pass.
IF(Status.Result
= Pass, COLOR("Green"), COLOR("Red"))
|
COLOR(
Red,
Green,
Blue)
Returns a color object from the
values of red, green and blue components.
Details |
Examples |
Details and examples
Parameters
Red
Specifies the red-component of the color to return.
Supported types: Numeric.
Green
Specifies the green-component of the color to return.
Supported types: Numeric.
Blue
Specifies the blue-component of the color to return.
Supported types: Numeric.
Returns
Examples
1. |
The following example returns a black color
COLOR(0, 0,
0)
The following example will conditionally set the color to green
if the
Status step result is a Pass, or set the color to red if
the
Status step result is not a Pass.
IF(Status.Result
= Pass, COLOR(0, 255, 0), COLOR(255, 0, 0))
|