Table Of Contents

Integer To Color Value (G Dataflow)

Last Modified: October 26, 2017

Convert colors in the form of an unsigned 32-bit integer into a cluster composed of the three colors in mode (R, G, B), (H, S, L), (H, S, V), or (H, S, I).

You can enter these colors as a single value, a 1D array, a 2D array, or a combination of the above.

This node ignores any information contained in the alpha channel of a color value.

connector_pane_image
datatype_icon

U32 value

Color value encoded as an unsigned 32-bit integer.

datatype_icon

1D U32 value array

Set of color values encoded as a 1D array of unsigned 32-bit integers.

datatype_icon

2D U32 value array

Set of color values encoded as a 2D array of unsigned 32-bit integers.

datatype_icon

color mode

Number from 0 to 3 that defines the image color format to use for the operation.

Choose from the following values:

Name Value Description
RGB 0

No change. The input and output values are the same.

HSL 1

Convert to HSL

HSV 2

Convert to HSV

HSI 3

Convert to HSI

Default: RGB

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Default: No error

datatype_icon

color value

Numeric cluster containing the color value resulting from the input U32 value.

This cluster can contain the values (R, G, B), (H, S, L), (H, S, V), or (H, S, I), depending on the value of Color Mode. The cluster is composed of the following elements:

datatype_icon

Red (or Hue) value

First color plane value, depending on the Color Mode.

datatype_icon

Green (or Sat) value

Second color plane value, depending on the Color Mode.

datatype_icon

Blue (or Light or Val) value

Third color plane value, depending on the Color Mode.

datatype_icon

1D color value array

1D array containing the color value resulting from the input 1D U32 Array.

This array can contain the values (R, G, B), (H, S, L), (H, S, V), or (H, S, I), depending on the status of the set Color Mode.

datatype_icon

Red (or Hue) value

First color plane value, depending on the Color Mode.

datatype_icon

Green (or Sat) value

Second color plane value, depending on the Color Mode.

datatype_icon

Blue (or Light or Val) value

Third color plane value, depending on the Color Mode.

datatype_icon

2D color value array

2D array of clusters containing the color value resulting from the input 2D U32 Array.

This array can contain the values (R, G, B), (H, S, L), (H, S, V), or (H, S, I), depending on the value of Color Mode.

datatype_icon

Red (or Hue) value

First color plane value, depending on the Color Mode.

datatype_icon

Green (or Sat) value

Second color plane value, depending on the Color Mode.

datatype_icon

Blue (or Light or Val) value

Third color plane value, depending on the Color Mode.

datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported

Web Server: Not supported in VIs that run in a web application


Recently Viewed Topics