Color Blend
Generate color signal from real input
Description
Connections
Parameters
The Color Blend component converts a real input signal to a color signal that drives the optional Dynamic Color input of Multibody Visualization components.
The parameters Value 0 and Value 1 specify the endpoints of the range of values that are interpolated to colors.
The parameters Color 0 and Color 1 correspond to Value 0 and Value 1, respectively.
Input values between Value 0 and Value 1 are interpolated to a color. The interpolation uses the cylindrical coordinates of the HSV color space, with hue increasing from Color 0 to Color 1. A value outside this range is limited to the nearer endpoint.
For example, to map temperatures from 0 to 100 to colors from blue to red, set Color 0 to red, color 1 to blue, value 0 to 100 and value 1 to 0.
Name
Modelica ID
u
Real input
y
Output corresponding to color
Default
Units
Color 0
red
Color when input is value0
color0
Color 1
blue
Color when input is value1
color1
Value 0
0
Value associated with color0
value0
Value 1
1
Value associated with color1
value1
See Also
Multibody Visualization
Download Help Document