GCGlib  0.04.228
GCG Graphics Engine
Color computation

Functions

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...
 

Detailed Description

This section presents functions and classes for color computation.

Function Documentation

◆ 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]normheatvalue to be mapped into a 'heat' color. Values smaller than zero are clamped to 0. Values bigger than 1 are clamped to 1.
[out]colorthe 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]normheatvalue to be mapped into a 'heat' color. Values smaller than zero are clamped to 0. Values bigger than 1 are clamped to 1.
[out]colorthe resulting color heat.
Returns
true if the color is computed.