Package Modelica.​Mechanics.​MultiBody.​Visualizers.​Colors.​ColorMaps
Library of functions returning color maps

Information

This package contains functions that return color maps. A color map is a Real[:,3] array where every row represents a color. Currently the following color maps are returned from the respective function:

Extends from Modelica.​Icons.​FunctionsPackage (Icon for packages containing functions).

Package Contents

NameDescription
autumnReturns the "autumn" color map
grayReturns the "gray" color map
hotReturns the "hot" color map
jetReturns the "jet" color map
springReturns the "spring" color map
summerReturns the "summer" color map
winterReturns the "winter" color map

Function Modelica.​Mechanics.​MultiBody.​Visualizers.​Colors.​ColorMaps.​jet
Returns the "jet" color map

Information

Syntax

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

Description

This function returns the color map "jet." 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 "jet" color map:

See also

ColorMaps, colorMapToSvg, scalarToColor.

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

Inputs

TypeNameDescription
Integern_colorsNumber of colors in the color map

Outputs

TypeNameDescription
RealcolorMap[n_colors,3]Color map to map a scalar to a color

Function Modelica.​Mechanics.​MultiBody.​Visualizers.​Colors.​ColorMaps.​hot
Returns the "hot" color map

Information

Syntax

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

Description

This function returns the color map "hot." 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 "hot" color map:

See also

ColorMaps, colorMapToSvg, scalarToColor.

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

Inputs

TypeNameDescription
Integern_colorsNumber of colors in the color map

Outputs

TypeNameDescription
RealcolorMap[n_colors,3]Color map to map a scalar to a color

Function Modelica.​Mechanics.​MultiBody.​Visualizers.​Colors.​ColorMaps.​gray
Returns the "gray" color map

Information

Syntax

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

Description

This function returns the color map "gray." 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 "gray" color map:

See also

ColorMaps, colorMapToSvg, scalarToColor.

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

Inputs

TypeNameDescription
Integern_colorsNumber of colors in the color map

Outputs

TypeNameDescription
RealcolorMap[n_colors,3]Color map to map a scalar to a color

Function Modelica.​Mechanics.​MultiBody.​Visualizers.​Colors.​ColorMaps.​spring
Returns the "spring" color map

Information

Syntax

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

Description

This function returns the color map "spring." 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 "spring" color map:

See also

ColorMaps, colorMapToSvg, scalarToColor.

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

Inputs

TypeNameDescription
Integern_colorsNumber of colors in the color map

Outputs

TypeNameDescription
RealcolorMap[n_colors,3]Color map to map a scalar to a color

Function Modelica.​Mechanics.​MultiBody.​Visualizers.​Colors.​ColorMaps.​summer
Returns the "summer" color map

Information

Syntax

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

Description

This function returns the color map "summer." 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 "summer" color map:

See also

ColorMaps, colorMapToSvg, scalarToColor.

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

Inputs

TypeNameDescription
Integern_colorsNumber of colors in the color map

Outputs

TypeNameDescription
RealcolorMap[n_colors,3]Color map to map a scalar to a color

Function Modelica.​Mechanics.​MultiBody.​Visualizers.​Colors.​ColorMaps.​autumn
Returns the "autumn" color map

Information

Syntax

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

Description

This function returns the color map "autumn." 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 "autumn" color map:

See also

ColorMaps, colorMapToSvg, scalarToColor.

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

Inputs

TypeNameDescription
Integern_colorsNumber of colors in the color map

Outputs

TypeNameDescription
RealcolorMap[n_colors,3]Color map to map a scalar to a color

Function Modelica.​Mechanics.​MultiBody.​Visualizers.​Colors.​ColorMaps.​winter
Returns the "winter" color map

Information

Syntax

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

Description

This function returns the color map "winter." 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 "winter" color map:

See also

ColorMaps, colorMapToSvg, scalarToColor.

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

Inputs

TypeNameDescription
Integern_colorsNumber of colors in the color map

Outputs

TypeNameDescription
RealcolorMap[n_colors,3]Color map to map a scalar to a color