Visit ComfyUI Online for ready-to-use ComfyUI environment
Convert and select color values easily for AI art projects with flexible HEX to RGB conversion for precise color control.
The LayerUtility: ColorPicker node is designed to help you easily select and convert color values for your AI art projects. This node allows you to input a color in hexadecimal (HEX) format and choose the output mode, either as a HEX string or as a decimal (DEC) RGB value. This flexibility makes it a valuable tool for artists who need precise control over color representation in their digital artwork. By converting colors between different formats, you can ensure consistency and accuracy in your color choices, enhancing the overall quality and coherence of your art pieces.
The color
parameter allows you to input the color you wish to work with. This parameter accepts a color value in hexadecimal (HEX) format, which is a common way to represent colors in digital art and web design. The default value is set to #FFFFFF
, which represents white. You can change this to any valid HEX color code to suit your needs.
The mode
parameter lets you choose the output format for the color value. You have two options: HEX
and DEC
. If you select HEX
, the output will be the same HEX string you input. If you select DEC
, the node will convert the HEX color to its decimal RGB (Red, Green, Blue) values. This is useful if you need the color in a different format for various applications or further processing.
The value
output parameter provides the color value in the format specified by the mode
input parameter. If mode
is set to HEX
, the output will be the HEX string of the color. If mode
is set to DEC
, the output will be a string representing the RGB values in decimal format. This output is essential for ensuring that the color is in the correct format for your specific use case.
HEX
mode when you need to maintain the color in its original hexadecimal format, which is useful for web design and certain digital art applications.DEC
mode if you need the color in RGB format for applications that require decimal values, such as certain image processing tasks or software that uses RGB inputs.#
followed by six hexadecimal digits (e.g., #FF5733
).mode
parameter is set to a value that is not supported.mode
parameter is set to either HEX
or DEC
. Any other value will result in an error.© Copyright 2024 RunComfy. All Rights Reserved.