Nodes/ComfyAngel/Solid Color πŸͺ½
ComfyUI Node

Solid Color πŸͺ½

A flat-color canvas when you just need pixels to exist

By ThepExcelΒ·Created 8 months agoΒ·Updated about a month agoΒ· 14
Solid Color πŸͺ½
    • image
    β—„color#FFFFFFβ–Ί
    β—„width512β–Ί
    β—„height512β–Ί
    β—„batch_size1β–Ί

    Solid Color is the most boring node in ComfyAngel, and boring is the point. It generates an IMAGE tensor that is one flat color - no sampler, no VAE, no noise. You give it a hex value and a size and it hands back pixels. In a graph full of nodes that want to be impressive, this one just wants to be a canvas.

    That canvas turns out to be useful more often than you'd think. It's the placeholder you drop in while you're wiring up a composite before the generation side works. It's the backdrop you layer a logo or watermark over. It's the neutral base you run a post-processing pass on to check your filter chain without touching a model. And it's a convenient way to get an image of an exact size - which is the trick ComfyUI makes you work for: an Empty Latent only exists in latent space, and decoding it is overkill when all you need is a flat field.

    How it works

    The mechanism is about as deep as it looks. The hex color is parsed, the value is normalized to 0–1, a numpy array of height Γ— width is filled with it, and that becomes a BHWC tensor. If batch_size is above 1 the single frame is repeated into a batch of that many. Color parsing handles both #FFFFFF and #FFF shorthand, and if it can't parse what you gave it, it falls back to white rather than erroring - a quiet safety net, though it means a typo gives you a white image instead of an error you'd notice.

    Inputs and outputs

    • color - hex string, default #FFFFFF. # optional, 3-digit shorthand OK.
    • width / height - image size, default 512 Γ— 512, up to 8192.
    • batch_size - optional, default 1, max 64. Repeated frames for feeding batch operations downstream.

    The single image output is RGB with no alpha channel, and it keeps the batch dimension even when batch_size is 1.

    Gotchas worth knowing

    Because the output is 3-channel RGB, you can't use this node to produce a transparent backdrop - if you need alpha you'll be compositing with a mask instead. And while batch_size is there, most of the time you leave it at 1; the only reason to bump it is when a downstream node explicitly wants a batch of identical frames. One more: this node takes the color as a plain text field - the fancy visual color picker in ComfyAngel lives on the separate Color Picker node, not here, so expect to type your hex.

    Installing

    Install via ComfyUI Manager (search ComfyAngel) or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/ThepExcel/ComfyAngel
    

    Restart ComfyUI afterward. The pack's only real dependency is Pillow, and there are no model downloads - the whole thing is lightweight.

    CategoryComfyAngel/Widget

    Inputs (4)

    NameTypeDefaultDescription
    colorSTRING#FFFFFFβ€”
    widthINT5121–8192β€”
    heightINT5121–8192β€”
    batch_sizeoptINT11–64β€”

    Outputs (1)

    NameTypeDescription
    imageIMAGEβ€”