# scalarToColor_validityRange


Syntax  

//Real T, T_min, T_max, colorMap[:,3];  
Colors.scalarToColor(T, T_min, T_max, colorMap);  

Description  

This function returns an rgb color Real[3] that corresponds to the value of "T".  
The color is selected from the colorMap by interpolation so that  
"T_min" corresponds to "colorMap[1,:]" and  
"T_max" corresponds to "colorMap[end,:]".  

See also  
ColorMaps,  
colorMapToSvg,  
PipeWithScalarField.  

## Copyright © EDF 2002 - 2025

## ThermoSysPro Version 4.2

    