From 8daa7809fe4228fc4bc65396c6d31da19fa969b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=83=E6=BE=84=E5=90=9B?= <93966670+leozongmac@users.noreply.github.com> Date: Sat, 4 Apr 2026 00:07:00 +0800 Subject: [PATCH] Update README with installation and usage information Added installation instructions, features, and usage details for ComfyUI-Color-Palette. --- README.md | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f56ac66..a9e9780 100644 --- a/README.md +++ b/README.md @@ -1 +1,32 @@ -# ComfyUI-Color-Palette \ No newline at end of file +# ComfyUI-Color-Palette + +A custom node for ComfyUI that extracts the main color palette from an uploaded image and calculates the percentage of each color. + +## Installation + +1. Navigate to your ComfyUI `custom_nodes` directory: + ```bash + cd ComfyUI/custom_nodes/ + ``` + +2. Clone this repository (or create a new folder `ComfyUI-Color-Palette` and copy the files into it): + ```bash + git clone ComfyUI-Color-Palette + cd ComfyUI-Color-Palette + ``` + +3. Install the required dependencies: + ```bash + pip install -r requirements.txt + ``` + +4. Restart ComfyUI. + +## Features +- Extracts the top N dominant colors from an image using K-Means clustering. +- Generates a visual color palette image. +- Outputs detailed hex codes and percentage distributions as text. + +## Usage +Find the node in the ComfyUI menu under: **image -> analysis -> 🎨 Image Color Palette Analyzer**. +Connect an image input, set the number of colors you want to extract, and view the output image and text data.