This partial function defines the interface of a function that returns a color map. Predefined color map functions are defined in package Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.
partial function partialColorMap extends Modelica.Icons.Function; input Integer n_colors = 64 "Number of colors in the color map"; output Real colorMap[n_colors, 3] "Color map to map a scalar to a color"; end partialColorMap;