functionRedGreen_colorMap

Returns the "RedGreen" color map

Extends from Modelica.Mechanics.MultiBody.Interfaces.partialColorMap (Interface for a function returning a color map).

Information

Syntax  

ColorMaps.RedGreen();  
ColorMaps.RedGreen(n_colors=64);  

Description  

This function returns the color map "RedGreen." A color map  
is a Real[:,3] array where every row represents a color.  
With the optional argument "n_colors" the number of rows  
of the returned array can be defined. The default value is  
"n_colors=64" (it is usually best if n_colors is a multiple of 4).  
Image of the "RedGreen" color map:  




See also  
ColorMaps,  
colorMapToSvg,  
scalarToColor.  
## Copyright © EDF 2002 - 2025

## ThermoSysPro Version 4.2

Inputs

TypeNameDefaultDescription
Integern_colors (from partialColorMap)64Number of colors in the color map

Outputs

TypeNameDefaultDescription
Real[n_colors,3]colorMap (from partialColorMap)Color map to map a scalar to a color