Nodes/comfy_Pond_Nodes/🐳屏幕吸管取色
ComfyUI Node

🐳屏幕吸管取色

Pick a color from anywhere on screen — no screenshot, no manual hex

By Pondowner857·Created about a year ago·Updated 21 days ago· 45
🐳屏幕吸管取色
    • hex
    picked_color#FF0000

    Screen Color Picker (🐳屏幕吸管取色) is the laziest way to get a color into ComfyUI: click a button on the node, hover over any pixel on your screen, click, and a hex string comes out the other side. No eyedropper in the UI to fiddle with, no hex value to type, no screenshot to load as an image. If you've ever matched a color by squinting at a screenshot and typing #7b4a2f, this is the node that stops you doing that.

    The trick is that it isn't doing anything clever server-side - the actual picking is the browser's native EyeDropper API, and the pack's JavaScript just wraps it. The node itself takes one widget input, picked_color (a string, defaulting to #FF0000), and outputs a single hex string in #RRGGBB form, normalized to uppercase. When you click the 🔍 button on the node, the JS opens the system eye-dropper, grabs the picked pixel, writes it back into the picked_color widget, and that's what gets output when the graph runs. There's no API call, no key, nothing to download - the heavy lifting is Chrome or Edge shipping an eye-dropper.

    Wiring it in

    Because the output is just a plain color string, it plugs into any input in this pack (or any other pack) that accepts a hex color - for example background_color on Simple Border Remover (🐳图像边框移除), or the text color on the image-text composite nodes. Grab a color, wire the string, done. It's also handy for color-matching jobs: pick the reference color from your reference image, then feed it somewhere that needs a target.

    The browser gotcha

    The one real trap here is browser support. EyeDropper needs Chrome 95+ or Edge 95+. If you're on Firefox or Safari, the node will throw an alert telling you exactly that, and the button does nothing. You also can't pick a color while the graph is running - the eye-dropper opens a modal-ish native overlay, so pick your colors before you hit Run. Hitting ESC cancels the pick, which is normal, not a bug.

    Installing it

    This ships in the Pond Nodes pack, so you install the whole collection:

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

    Then restart ComfyUI. Or search "comfy_Pond_Nodes" in ComfyUI Manager and hit install - same result. The pack's requirements.txt installs a long list (ultralytics, opencv-python, scipy, onnxruntime, realesrgan, psutil, pynvml, ...), which is overkill for this one node - but the pack is a grab-bag, and if you only want the picker you can get away with just ComfyUI itself. Note the README's warning that this pack conflicts with comfyui_HiDream-Sampler (endless console spam), so if you see that, it's the other plugin.

    One honest caveat: the node only remembers the color you picked last. If you want several saved colors, drop a few of these on the canvas, or pair it with the pack's plain Color Picker (🐳取色器), which gives you a real color widget to adjust in place.

    Category🐳Pond/color

    Inputs (1)

    NameTypeDefaultDescription
    picked_colorSTRING#FF0000

    Outputs (1)

    NameTypeDescription
    hexSTRING