๐ผ> RGB Color
Pick a color with sliders, get back the integer other nodes want
- int
A surprising number of ComfyUI nodes want a "color" as a single packed integer rather than something you can eyeball, and there's no vanilla node for building one by hand. RGB Color fixes that specific annoyance: three sliders, one number out.
How it works
You set red, green and blue independently, each 0โ255 like any standard color picker, and the node does the packing math for you and hands back a single INT. It's part of ComfyUI_yanc's small utility grab-bag - nodes the author built because he personally needed them, per the pack's own README, and this is about as minimal and useful as that gets.
It pairs naturally with Get Mean Color, also in this pack, which does the reverse job - reads a color out of an image instead of letting you specify one. Between the two you've got a full loop: sample a color from somewhere in your graph, or dial one in manually, and hand it to whatever downstream node needs it.
The inputs and outputs that matter
red,green,blue- three INT sliders, 0โ255 each, all defaulting to 0 (which is black - don't be surprised if your first drag of the node outputs pure black until you raise something).int(INT) - the single packed output. Wire it into any node whose input expects a color as an integer.
That's the whole node. No hex string, no per-channel passthrough - just the one packed value.
How to install it
Via ComfyUI Manager: search "yanc" or "ComfyUI_yanc" and install, then restart. Or manually:
cd ComfyUI/custom_nodes
git clone https://github.com/ALatentPlace/ComfyUI_yanc
then restart ComfyUI. No extra dependencies, no model files - this whole pack is arithmetic and image filters, not anything that needs a download.
Common issues & troubleshooting
A downstream node wants a hex string, not an int. This node only outputs the packed integer - if whatever you're feeding actually expects text like #FF8800, you'll need a converter somewhere in between; RGB Color alone won't get you there.
Everything's black and you don't know why. All three channels default to 0. It's not broken, it just needs you to actually move a slider - the most common "why isn't this doing anything" moment with any of this pack's simpler utility nodes.
You're not sure your downstream node reads color ints the same way this one packs them. Different tools pack RGB into an integer in different bit orders (RGB vs BGR, with or without an alpha byte). If a color comes out visibly wrong on the other end - swapped channels, wrong hue entirely - that's the usual suspect. Test with a color you can recognize instantly, like pure red (255, 0, 0), rather than debugging with a subtle tone.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| red | INT | 00โ255 | โ |
| green | INT | 00โ255 | โ |
| blue | INT | 00โ255 | โ |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| int | INT | โ |