Polybench® Reference
Converts a floating point sample value to a color sample value from the selected color palette.

Signal To Color


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

Output color: Color samples


Find more information about changing properties here: link

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

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

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.

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.

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 relation between input value and output color
Use a rainbow scheme to map input values to output colors
Use the Pyro scheme to map input values to output colors. This scheme uses colors 'between' red to yellow
Convert input values to gray-scale colors
Use the fixed input value to color table, which is displayed in the Fixed Color Table tab.

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

Every object has the Caption property. This property is very important, because it is the name by which Polybench recognizes this object.
It is allowed to give multiple objects the same name, as long as the objects are of the same type. In that case, a reference to this caption includes all the objects with the same caption.
In Polybench, every object can be addressed by an Address specifier, which starts with the dollar sign, for example: $My Page.My Object. 'My Page' would be the Caption of a page, and 'My Object' the Caption of an object on that page.

type: See description
Optional documentation of this object.

It is good practice to write in short notes why you have used this object, and why its properties are set the way they are set. 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: link

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.


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.