ComfyUI Node Runs on cloud

Color (RGB)

The color picker this pack expects

By bmad4ever·Created 3 years ago·Updated 9 months ago· 70
Color (RGB)
    • COLOR
    r0
    g0
    b0

    A lot of nodes in comfyui_bmad_nodes take a COLOR input - Color Clip, Draw Contour(s), the color-analysis chain - but nothing in core ComfyUI outputs a bare COLOR value. So how do you get one? Three RGB sliders and this node.

    Color (RGB) is the pack's color source: set r, g, b as ints from 0 to 255 and it returns a single COLOR. That's it. It exists because the author needed a canonical way to build colors inside the graph, and it turns out to be the thing you'll wire into half the pack's image nodes.

    How it works

    No tricks here. The three inputs are plain INTs, each 0–255 with step 1. The node packages them into a COLOR value (internally a list [r, g, b]) and hands it downstream. There's also a hex variant in the pack (Color (hexadecimal)) if you think in #RRGGBB strings instead of sliders - same idea, different input style.

    Where it shows up in practice:

    • Color Clip / Color Clip (advanced) - the color you're matching, and the color_a/color_b replacement colors.
    • Draw Contour(s) - the outline/fill color for the contours being drawn.
    • FindComplementaryColor and friends, indirectly, via the color dicts.

    So a typical setup is Color (RGB)Color Clip's color port. Change the sliders and the clipped color changes.

    What beginners get wrong

    Almost nothing, honestly - but two small things. First, the outputs of these image nodes are often masks as images; the color you pick here controls which color gets clipped, not which color the mask is. Don't expect a "red slider" to make the mask red unless you also set target/complement accordingly.

    Second, the node outputs COLOR, not a number and not an image. If you're reaching for it to feed a KSampler or a normal image port, it won't connect - COLOR only matches COLOR sockets. That's by design, and it's the same reason the pack provides list helpers like ExtendColorList for collecting several of them.

    Install

    Standard pack install:

    cd ComfyUI/custom_nodes
    git clone https://github.com/bmad4ever/comfyui_bmad_nodes
    cd comfyui_bmad_nodes
    pip install -r requirements.txt
    

    or install "comfyui_bmad_nodes" via ComfyUI Manager and restart. No models, no dependencies beyond the pack's shared requirements. It's a two-second node, but it's the glue that makes the pack's color inputs usable - keep one around when you're building a Color Clip workflow.

    CategoryBmad/image

    Inputs (3)

    NameTypeDefaultDescription
    rINT00–255
    gINT00–255
    bINT00–255

    Outputs (1)

    NameTypeDescription
    COLORCOLOR