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.Package (Icon for standard packages).

Package Content

NameDescription
Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.jet jet Returns the "jet" color map
Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.hot hot Returns the "hot" color map
Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.gray gray Returns the "gray" color map
Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.spring spring Returns the "spring" color map
Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.summer summer Returns the "summer" color map
Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.autumn autumn Returns the "autumn" color map
Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.winter winter Returns the "winter" color map

Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.jet 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

NameDescription
n_colorsNumber of colors in the color map

Outputs

NameDescription
colorMap[n_colors, 3]Color map to map a scalar to a color

Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.hot 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

NameDescription
n_colorsNumber of colors in the color map

Outputs

NameDescription
colorMap[n_colors, 3]Color map to map a scalar to a color

Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.gray 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

NameDescription
n_colorsNumber of colors in the color map

Outputs

NameDescription
colorMap[n_colors, 3]Color map to map a scalar to a color

Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.spring 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

NameDescription
n_colorsNumber of colors in the color map

Outputs

NameDescription
colorMap[n_colors, 3]Color map to map a scalar to a color

Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.summer 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

NameDescription
n_colorsNumber of colors in the color map

Outputs

NameDescription
colorMap[n_colors, 3]Color map to map a scalar to a color

Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.autumn 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

NameDescription
n_colorsNumber of colors in the color map

Outputs

NameDescription
colorMap[n_colors, 3]Color map to map a scalar to a color

Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.winter 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

NameDescription
n_colorsNumber of colors in the color map

Outputs

NameDescription
colorMap[n_colors, 3]Color map to map a scalar to a color

Automatically generated Mon Sep 23 17:20:43 2013.