AD Color Image
Generate a solid-color plate for backgrounds and masks
- reference_image
- image
Makes a flat, solid-color image at whatever size you ask for. Sounds trivial, and it is - but you reach for it more often than you'd expect. Backgrounds to composite over, base plates for layering, blank canvases, quick test inputs, a colored fill for a mask region. Every compositing workflow needs a solid color somewhere, and this is the cleanest way to conjure one.
Where it fits
A lot of ComfyUI work is compositing: overlay a subject on a background, build up layers, generate a base to draw or inpaint on. You constantly need a plain colored surface as the bottom layer or a placeholder. Rather than loading a PNG of a white square from disk, you generate exactly the size and color you need on the spot. It also makes a handy test signal - a known solid image is useful for sanity-checking that the rest of a pipeline is wired right.
How it works
You set width and height, pick a color, and it outputs an image filled with that color. The color dropdown has the common names plus a custom option; choose custom and it uses the hex_color field instead. alpha controls opacity for cases where you want a semi-transparent plate. There's also an optional reference_image - feed one in and the node can match its dimensions, so you don't have to type the width and height by hand when you're making a plate to sit behind an existing image.
The inputs that matter
- width / height - the output size in pixels. Or skip these and use
reference_imageto match an existing image. - color - a named color, or
customto use your own hex. - hex_color - your exact color when
coloris set tocustom. Ignored otherwise, which is the one gotcha here. - alpha - opacity, 0 to 1. Leave at 1 for a fully solid fill.
The single output is image - wire it into a composite, a background input, or straight to a Preview to eyeball the color.
Common issues
The thing that catches people: hex_color only does anything when color is set to custom. Type a hex value while color is still on white and you'll get white and wonder why. Pick custom first. Otherwise this is about as bulletproof as a node gets - the main "problem" is remembering it exists when you're hunting for a background source. If you're matching an existing image, use reference_image rather than eyeballing the dimensions; it's exact and saves a step.
Installing ComfyUI-Addoor
ComfyUI-Addoor (葵花宝典) is a utility and image pack from developer Eagle-CN. ComfyUI Manager: Install Custom Nodes → search "ComfyUI-Addoor" → install → restart. Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/Eagle-CN/ComfyUI-Addoor.git
cd ComfyUI-Addoor
pip install -r requirements.txt
Restart and find it under 🌻 Addoor / image.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| width | INT | 5121–8192 | — |
| height | INT | 5121–8192 | — |
| color | COMBO | white | 10 options: white, black, red, green, blue, yellow, +4 |
| hex_color | STRING | #FFFFFF | — |
| alpha | FLOAT | 1.000–1 | — |
| reference_imageopt | IMAGE | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |