Polybench® for biosignals / reference 1.34.1
Converts a floating point sample value to a color sample value from the selected color palette.

Signal To Color

Overview

Use this operator to convert a floating point signal into a color from a pre-set color scheme. A number of viewer operators enable you to specify the pen color via a Color signal. This operator provides this color signal.

Operator ports

Input S[0,1]: Floating point values

Input Control: Floating point values

Output color: Color samples

Properties

Find more information about changing properties here: "Properties Viewer"

PenOnEvent
type: See description
Event code of the event that should be filtered from the input signal to make the color visible.


PenOffEvent
type: See description
Event code of the event that should be filtered from the input signal to make the color invisible.


LinearColorHigh
type: Undefined
Base color for high values, used for the Linear color scheme. The output sample gets this color, if the input sample has value 1, and is black on the value 0.


LinearColorLow
type: Undefined
Base color for low values, used for the Linear color scheme. This color cannot be changed. Input samples with value 0 will result in this color.


ColorScheme
type: Select from the list
Color scheme that is used to convert input values to colors at the output
Select one of those presets:
Linear
Linear relation between input value and output color
Rainbow
Use a rainbow scheme to map input values to output colors
Pyro
Use the Pyro scheme to map input values to output colors. This scheme uses colors 'between' red to yellow
Grayscale
Convert input values to gray-scale colors
FixedColors
Use the fixed input value to color table, which is displayed in the Fixed Color Table tab.


Caption
type: Word or phrase
The name of the object in the project. This name must not contain '.', '$' nor '@' characters.

For more information about the rules and usage of the Caption property, please refer to "Caption property - background and usage".

Documentation
type: See description
Optional documentation of this object. If this object is an operator, the Documentation text is displayed below the operator symbol.


Extra dialog to change properties of this object: Fixed Color Table


Variable Parameters

Find more information about Variable Parameters here: "Variable Parameters"

PenState
type: See description
The state of the color pen at the output, which can be On (value is 1) or Off (value is 0). Use this parameter to monitor the current pen state.

Details

The following color schemes can be selected in the ColorScheme property:
Note that the Fixed Colors scheme uses the color table in the second tab of the properties. Below, an example table is displayed.



The Signal to Color operator can also set its output colors to transparent (invisble) by using an event. By default, this event is PenOff, and to make the color visible again PenOn. This means that if you add an event to the input signal (see Event Marker operators) with the event code PenOff, then the output color is invisible from the moment the event was detected.
Normal state of the operator is that colors are visible.