Visit ComfyUI Online for ready-to-use ComfyUI environment
Create custom color dictionaries for AI artists, ensuring accurate pairing and consistency in color management tasks.
The ColorDictionary (custom) node is designed to help you create a custom dictionary of colors by pairing color names with their corresponding color values. This node is particularly useful for AI artists who need to manage and utilize a specific set of colors in their projects. By allowing you to define your own color names and values, it provides flexibility and control over the color palette you work with. The node ensures that the color names and values are correctly paired, even if there is a mismatch in the number of names and colors provided, by trimming the lists to the same length. This feature helps maintain consistency and accuracy in your color management tasks.
color_names
is a parameter that accepts a list of strings, each representing a name for a color. This parameter allows you to define custom names for the colors you want to include in your dictionary. The names should be provided as a comma-separated string. The length of this list should ideally match the length of the colors
list to ensure proper pairing. If there is a mismatch, the node will automatically adjust the lists to the same length by trimming the longer list. This parameter does not have a minimum or maximum value but should be thoughtfully named to reflect the colors accurately.
colors
is a parameter that accepts a list of color values. Each color value should be provided in a format that can be interpreted as a color, such as RGB tuples. This parameter allows you to define the actual colors that correspond to the names provided in the color_names
parameter. Similar to color_names
, the length of this list should ideally match the length of the color_names
list. If there is a mismatch, the node will automatically adjust the lists to the same length by trimming the longer list. This parameter does not have a minimum or maximum value but should be carefully chosen to represent the desired colors accurately.
COLOR_DICT
is the output parameter that provides the resulting dictionary of color names and their corresponding color values. This dictionary is created by pairing each name from the color_names
list with its corresponding color value from the colors
list. The output is a single dictionary where each key is a color name, and each value is the corresponding color value. This output can be used in various tasks that require a custom set of colors, providing a structured and easily accessible way to manage and utilize your color palette.
color_names
and colors
lists are of the same length to avoid automatic trimming and potential loss of data.color_names
to make it easier to identify and use the colors in your projects.colors
list to ensure they are correctly interpreted as colors.color_names
and colors
lists are of the same length. If they are not, the node will automatically trim the longer list to match the length of the shorter list, but it is best to provide matching lists to avoid unintended data loss.© Copyright 2024 RunComfy. All Rights Reserved.