Nodes/CRT-Nodes/SolidColor
ComfyUI Node

SolidColor

A blank canvas node, and why you actually need one

By PGCRT·Created 2 years ago·Updated about 24 hours ago· 128
SolidColor
    • image
    • mask
    width512
    height512
    colorWhite

    This is about as simple as ComfyUI nodes get, and that's the whole appeal. You pick a width, a height, and a color from a dropdown, and out comes a flat image of exactly that color - plus a matching mask. No sampler, no model, no VRAM cost worth mentioning. It's a paint bucket in node form.

    The obvious question is why you'd need this when you could just load any image file. The answer is everywhere in ComfyUI once you start looking: testing a compositing chain before you have real output to composite, building a placeholder background for a ControlNet or inpaint workflow while you sort out the rest of the graph, generating a clean white or black card for a chroma-key-style overlay, or just wiring up a quick canvas at a specific resolution to sanity-check that your downstream nodes handle that aspect ratio correctly. Anywhere a workflow expects an IMAGE input and you don't want to think about where it comes from, SolidColor is the fastest way to give it one.

    The inputs and outputs that matter

    There are exactly three inputs, and all three are required - there's no optional complexity hiding anywhere:

    • width and height - plain pixel dimensions, 1 to 16384, default 512×512.
    • color - a dropdown of 20 named colors (White, Black, Red, Dark Gray, Cyan, and so on), defaulting to White.

    That's it. No RGB sliders, no hex input, no alpha channel - if you need an exact custom color rather than one of the 20 presets, this isn't the node for that job (a Constant Color / hex-input node elsewhere would be). What you get back is an image output at your chosen size and color, and a matching mask output - a solid mask the same shape, which is handy if you want to feed both a placeholder image and a corresponding "everything" or "nothing" mask into the same pipeline without wiring up a separate mask generator.

    How to install it

    SolidColor ships as part of the much larger CRT-Nodes pack (PGCRT), which bundles well over a hundred nodes spanning image FX, video sampling, audio tools, and text utilities. The easiest route is ComfyUI Manager: search for CRT-Nodes and install. Manually, it's the standard drill:

    cd ComfyUI/custom_nodes
    git clone https://github.com/PGCRT/CRT-Nodes.git
    pip install -r CRT-Nodes/requirements.txt
    

    then restart ComfyUI. Worth knowing before you do: that requirements.txt pulls in a fairly heavy stack for the whole pack - opencv-contrib-python, ultralytics, spandrel, librosa, pedalboard and more - even though SolidColor itself needs none of it. You're not installing "a solid color node," you're installing the entire CRT-Nodes suite and getting this one node as a side effect. If disk space or a crowded Python environment is a concern, that's the tradeoff to weigh, not anything specific to this node.

    Common issues & troubleshooting

    There's genuinely not much that goes wrong here - it's a flat-fill generator, not a pipeline with failure modes. The one thing worth flagging is dependency conflicts from the pack as a whole: CRT-Nodes installs its requirements into your shared ComfyUI Python environment like every other custom node pack does, and if you've got a lot of other custom nodes already installed, a version clash somewhere in that big requirements list is the more likely source of an "import failed" error than anything about SolidColor specifically. If the node doesn't show up after installing, check your ComfyUI console log for an import error on the CRT-Nodes package rather than assuming SolidColor itself is broken - it's a two-line node, there isn't much in it to break.

    CategoryCRT/Image

    Inputs (3)

    NameTypeDefaultDescription
    widthINT5121–16384
    heightINT5121–16384
    colorCOMBOWhite20 options: White, Light Gray, Gray, Dark Gray, Black, Red, +14

    Outputs (2)

    NameTypeDescription
    imageIMAGE
    maskMASK