Nodes/zsq_prompt/Image RGB
ComfyUI Node

Image RGB

The color picker node that just returns three numbers

By windfancy·Created 2 years ago·Updated 5 months ago· 2
Image RGB
    • color
    Red0
    Green0
    Blue0

    Image RGB (imageRGB) from the zsq_prompt pack is about as small as a node gets: three sliders (Red, Green, Blue), one output, no pixels involved. It turns three 0–255 integers into a single COLOR value. That's it. If that sounds pointless, you're half right - its entire purpose is to be a convenient, reusable color picker for other nodes in the pack that accept a COLOR input, so you don't have to scatter three raw integers around your graph.

    How it works

    You set Red, Green, Blue (each 0–255), and the node returns the tuple (Red, Green, Blue) as a COLOR-typed value. It does not create an image, touch the GPU, or do any processing. It's pure plumbing - a nice, labeled way to carry a color around the graph.

    COLOR is a custom data type from this pack, so the practical constraint is: it only wires into other nodes that understand COLOR. That's the honest limitation to know before you build a whole workflow around it.

    Inputs and outputs that matter

    • Red / Green / Blue - the three color channels, 0–255 each, slider display. That's the entire input set.
    • Output: color (COLOR) - the tuple you can hand to downstream color-aware nodes.

    Where you'd use it

    Honestly? Sparingly. This node earns its keep when another node in the pack wants a COLOR value - a tint, a reference color for an adapter, a fill you've parameterized once and reuse in a few places. Instead of retyping the same RGB triple in three different nodes, one imageRGB feeds them all. Change it in one spot and every consumer updates.

    The likely reason this got a page: people searching for "comfyui rgb color node" land here and need to know whether it's a color-image generator. It is not. For an actual colored image, the pack's sibling ImageEmpty builds a solid-color IMAGE tensor. For a color reference that other tools understand, keep this one.

    Installing zsq_prompt

    Everything in this pack installs together. ComfyUI Manager → search zsq_prompt → install, then restart. Or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/windfancy/zsq_prompt
    

    Restart ComfyUI. The pack pulls in heavy dependencies - transformers, opencv-python, opencv-contrib-python, scikit-image, timm, onnx, ultralytics - none of which this particular node needs, but which are part of the shared install. If Manager ever flags "conflicting with zsq_prompt" on a downloaded workflow, that's dependency-overlap noise; it's only meaningful once the pack is actually present. No model downloads required.

    Gotchas

    • The COLOR type is pack-specific. Don't expect it to wire into arbitrary third-party nodes that take, say, an INT triple - type matching will refuse it.
    • 0–255 range, not 0–1. Easy to confuse if you're used to normalized color values elsewhere.
    • There's no hex or HSV mode. It's RGB or nothing.
    CategoryZSQ/Image

    Inputs (3)

    NameTypeDefaultDescription
    RedINT00–255
    GreenINT00–255
    BlueINT00–255

    Outputs (1)

    NameTypeDescription
    colorCOLOR