Nodes/ComfyUI-DeepStereo/DeepStereo: Color Picker
ComfyUI Node

DeepStereo: Color Picker

The DeepStereo color picker is the boring node that stops you mangling hex codes

By SanDiegoDude·Created about a year ago·Updated about a year ago· 3
DeepStereo: Color Picker
    • hex_color
    • red
    • green
    • blue
    color_modergb_sliders
    red0
    green0
    blue255
    preset_colorblue
    hex_input0000FF
    include_hashtrue

    You will not build a workflow around this node, and that's fine. The DeepStereo color picker is a small helper that exists because this pack's other nodes take colors as plain text strings - background_color, blend_color, dot_bg_color - and nothing is easier to fat-finger than a hex code. It turns a color choice into a hex_color string plus its red, green and blue channels as integers, so you can feed the same value into several places without retyping it.

    How it works

    There's one required input, color_mode, and three ways to actually pick the color:

    • rgb_sliders - use the red, green, blue integer inputs (0–255). Defaults are 0, 0, 255, i.e. blue.
    • preset_colors - fifteen named colors from red through white (including cyan, magenta, orange, purple, the dark variants, and a couple of grays). One dropdown, done.
    • hex_input - type a 6-digit hex code yourself, no # (so 0000FF, not #0000FF).

    Here's the nice part: no matter which mode you pick, you get the same four outputs - hex_color (STRING), plus red, green, blue (INT). That means you can build a workflow using sliders, then swap to a preset or raw hex without rewiring anything.

    The only knob that will actually bite you is include_hash, default on. It controls whether the hex_color output starts with a #. Some of the DeepStereo nodes' string inputs accept a hash fine (they strip it), so for most uses just leave it alone - but if you're feeding hex_color into something picky, that's the switch.

    Wiring it up

    Drop the hex_color string into any color-string input in the pack - like RandomDotStereogramGenerator's background_color or ImageEffectsTransformer's blend_color - and you get a single source of truth for the color instead of matching hex codes by eye. The red/green/blue integer outputs are there for when you're wiring into a node that takes separate channels. It's utility plumbing, but it's the kind that keeps a workflow readable.

    Installing it

    It ships inside the ComfyUI-DeepStereo pack, so there's nothing extra to fetch:

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

    Then restart ComfyUI. Or, if you use ComfyUI Manager, search for ComfyUI-DeepStereo and let it handle clone plus dependencies (opencv-python, numpy, tqdm). One heads-up: the pack README's own install snippet points at a placeholder yourusername/... URL - the real repo is the one above.

    That's the whole node. It won't make you a better stereogram artist, but it'll stop you typing #80o080 into a texture node and wondering why the pattern went brown.

    CategoryDeepStereo/Utility

    Inputs (7)

    NameTypeDefaultDescription
    color_modeCOMBOrgb_sliders3 options: rgb_sliders, preset_colors, hex_input
    redoptINT00–255
    greenoptINT00–255
    blueoptINT2550–255
    preset_coloroptCOMBOblue15 options: red, green, blue, cyan, magenta, yellow, +9
    hex_inputoptSTRING0000FF6-digit hex code without #
    include_hashoptBOOLEANtrueInclude # in hex output

    Outputs (4)

    NameTypeDescription
    hex_colorSTRING
    redINT
    greenINT
    blueINT