Visit ComfyUI Online for ready-to-use ComfyUI environment
Extract and generate color palettes from images using various modes and clustering algorithms for AI artists.
The Image Color Palette node is designed to extract and generate color palettes from images, providing a powerful tool for AI artists to analyze and utilize the color schemes present in their artwork. This node can create a palette based on various modes such as Linear, Brightness, Tonal, and BrightnessAndTonal, allowing for flexible and customized color extraction. By leveraging clustering algorithms like KMeans, it can identify dominant colors and present them in a visually appealing format. This node is particularly useful for creating consistent color themes, enhancing visual coherence, and inspiring new color combinations in your creative projects.
This parameter takes the input image from which the color palette will be generated. The image should be in a format that can be processed by the node, typically a PIL image object. The quality and content of the image will directly impact the resulting color palette.
This parameter specifies the number of colors to be included in the generated palette. It determines how many dominant colors will be extracted from the image. The default value is 16, but you can adjust this number based on your needs. Increasing the number of colors can provide a more detailed palette, while decreasing it can highlight the most prominent colors.
This parameter defines the method used to arrange the colors in the palette. Options include "Linear", "Brightness", "Tonal", and "BrightnessAndTonal". Each mode offers a different approach to sorting and displaying the colors, affecting the visual representation of the palette. The default mode is "Linear".
This boolean parameter determines whether the generated palette should be reversed. When set to True, the order of the colors in the palette will be inverted. The default value is False.
This output parameter provides the generated color palette as an image. The palette image visually represents the extracted colors, arranged according to the selected palette mode. It can be used directly in your projects or as a reference for color selection.
This output parameter returns a list of color values in string format, typically in hexadecimal representation. These strings can be used for various purposes, such as defining color schemes in design software or web development.
colors
values to find the optimal number of colors for your palette. A higher number of colors can capture more details, while a lower number can emphasize the most dominant hues.palette_mode
parameter to explore different ways of organizing your palette. For example, the "Brightness" mode can help you understand the lightness distribution of colors in your image.reverse_palette
to True to invert the order of the colors.<mode>
palette_mode
parameter.palette_mode
parameter is set to one of the supported values: "Linear", "Brightness", "Tonal", or "BrightnessAndTonal".convert('RGB')
method in PIL to achieve this.<path>
© Copyright 2024 RunComfy. All Rights Reserved.