|
float | gcgBlinkingAlpha () |
| Computes a value between 0 and 1 in function of time that can be used as opacity value to simulate blinking objects. More...
|
|
bool | gcgHeatColor (float normheat, VECTOR3 color) |
| Returns a color given a normalized "heat" value between 0 and 1. Uses a palette that partitions the unity with the colors dark blue, blue, bluish cyan, cyan, greenish cyan, green, greenish yellow, yellow, orange and red. All parameters have float type. More...
|
|
bool | gcgHeatColor (double normheat, VECTOR3d color) |
| Returns a color given a normalized "heat" value between 0 and 1. Uses a palette that partitions the unity with the colors dark blue, blue, bluish cyan, cyan, greenish cyan, green, greenish yellow, yellow, orange and red. All parameters have double type. More...
|
|
This section presents functions and classes for color computation.
◆ gcgBlinkingAlpha()
float gcgBlinkingAlpha |
( |
| ) |
|
Computes a value between 0 and 1 in function of time that can be used as opacity value to simulate blinking objects.
- Returns
- A value between 0 and 1 in function of time that is suitable to simulate blinking objects.
- Since
- 0.01.0
◆ gcgHeatColor() [1/2]
bool gcgHeatColor |
( |
float |
normheat, |
|
|
VECTOR3 |
color |
|
) |
| |
Returns a color given a normalized "heat" value between 0 and 1. Uses a palette that partitions the unity with the colors dark blue, blue, bluish cyan, cyan, greenish cyan, green, greenish yellow, yellow, orange and red. All parameters have float type.
- Parameters
-
[in] | normheat | value to be mapped into a 'heat' color. Values smaller than zero are clamped to 0. Values bigger than 1 are clamped to 1. |
[out] | color | the resulting color heat. |
- Returns
- true if the color is computed.
◆ gcgHeatColor() [2/2]
bool gcgHeatColor |
( |
double |
normheat, |
|
|
VECTOR3d |
color |
|
) |
| |
Returns a color given a normalized "heat" value between 0 and 1. Uses a palette that partitions the unity with the colors dark blue, blue, bluish cyan, cyan, greenish cyan, green, greenish yellow, yellow, orange and red. All parameters have double type.
- Parameters
-
[in] | normheat | value to be mapped into a 'heat' color. Values smaller than zero are clamped to 0. Values bigger than 1 are clamped to 1. |
[out] | color | the resulting color heat. |
- Returns
- true if the color is computed.