Visit ComfyUI Online for ready-to-use ComfyUI environment
Converts hexadecimal color code to hue value for AI artists, aiding color manipulation and analysis.
The HexToHueNode is designed to convert a hexadecimal color code into its corresponding hue value, both in degrees and normalized form. This node is particularly useful for AI artists who need to manipulate or analyze colors in their projects. By converting a hex color to its hue, you can better understand the color's position on the color wheel, which can be essential for tasks such as color correction, color grading, and generating harmonious color schemes. The node simplifies the process of extracting hue information from a hex color, making it accessible even to those without a deep technical background.
The color_hex
parameter is a string that represents the hexadecimal color code you want to convert to a hue value. This parameter is essential as it serves as the input color for the conversion process. The default value is #00ff33
, which is a shade of green. The hex color code should be in the format #RRGGBB
, where RR
, GG
, and BB
are two-digit hexadecimal numbers representing the red, green, and blue components of the color, respectively.
The unique_id
parameter is a hidden parameter used internally to ensure the uniqueness of the node instance. This parameter is not required to be set by the user and is managed automatically by the system.
The string_hex
output parameter returns the original hexadecimal color code that was input into the node. This allows you to verify the input color and use it for further processing if needed.
The float_hue_degrees
output parameter provides the hue value of the input color in degrees. This value ranges from 0 to 360 and indicates the color's position on the color wheel. For example, 0 degrees corresponds to red, 120 degrees to green, and 240 degrees to blue.
The float_hue_norm
output parameter gives the normalized hue value, which is a floating-point number between -0.5 and 0.5. This normalized value is useful for certain mathematical operations and color manipulations where a normalized range is preferred.
The string_hue_degrees
output parameter returns the hue value in degrees as a string. This can be useful for displaying the hue value in user interfaces or for logging purposes.
The string_hue_norm
output parameter provides the normalized hue value as a string. Similar to string_hue_degrees
, this is useful for display and logging purposes.
color_hex
parameter to input any hex color code you want to analyze. Ensure the format is correct (#RRGGBB
) to avoid errors.float_hue_degrees
and float_hue_norm
outputs to understand the color's position on the color wheel and for further color manipulations.string_hue_degrees
and string_hue_norm
) are handy for displaying hue values in user interfaces or for logging purposes.#RRGGBB
).#
followed by six hexadecimal digits.© Copyright 2024 RunComfy. All Rights Reserved.