Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.comfy.org/llms.txt

Use this file to discover all available pages before exploring further.

This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
The ColorToRGBInt node converts a color specified in hexadecimal format (like #FF5733) into a single integer value. It takes the red, green, and blue components from the color string and combines them into one RGB integer.

Inputs

ParameterData TypeRequiredRangeDescription
colorSTRINGYesN/AA color value in the hexadecimal format #RRGGBB. Must be exactly 7 characters long and start with #.
Note: The input color string must follow the format #RRGGBB exactly. If the string is not 7 characters long or does not start with #, the node will raise an error.

Outputs

Output NameData TypeDescription
rgb_intINTThe calculated RGB integer value. This is derived from the formula: (Red * 65536) + (Green * 256) + Blue.

Source fingerprint (SHA-256): afbbdddb59eddf9e2cc8ab51765affff1676a589c2a2989ff90038ad0119dc9f