Generate color
Generates a random color
Evaluation
This expression evaluates to a function of the form:
(seed) -> any
The function is consistent with generator semantics of the Random Data step.
Processing
Given a seed value, the function returns a pseudo-random dict value of the following form:
{
:name string,
:hsl [long, double, double],
:rgb [long, long, long],
:rgb_percent [double, double, double],
:hex string
}
An concrete value might look like:
{
:hsl [240, 1.0, 0.5],
:name 'blue',
:rgb [0, 0, 255],
:rgb_percent [0.0, 0.0, 1.0],
:hex '#0000FF'
}
Settings
Name | Type | Description |
---|---|---|
Color set |
string |
The color pool to choose from:
|
Chance of nil |
double |
Probability in range of 0.0 to 1.0 that the generator will return nil instead of generating a value. |