π² CR Random RGB
Four independent random colors from one seed
- rgb_1
- rgb_2
- rgb_3
- rgb_4
- show_help
The most stripped-down of Comfyroll's random-color nodes. No character-set options, no row count, no format picker - CR Random RGB has exactly one input and generates exactly four random colors, each on its own dedicated output. If CR Random Multiline Colors is for when you need a batch of colors as a list, this one is for when you need a handful of distinct colors wired individually into different places on the graph.
What it's for
A lot of Comfyroll's graphics nodes take multiple separate color inputs at once - CR Page Layout wants a font color, a border color, and a background color; a multi-element composition might need a color per element. Rather than running a batch-color generator and then splitting a list into individual values, CR Random RGB gives you four ready-to-wire outputs directly, one seed producing all four at once.
How it works
Give it a seed, and it deterministically generates four separate RGB color values from that seed. Same seed in, same four colors out, every time - change the seed to get a different set of four.
Inputs and outputs that matter
seed(default 0) - the only input. Controls all four generated colors together; there's no way to re-roll just one of the four independently without changing the seed for all of them.
Outputs: rgb_1, rgb_2, rgb_3, rgb_4 - four separate string outputs, each an independent random RGB value, ready to wire directly into four different color-consuming inputs elsewhere in your graph. Plus the standard show_help link to this node's wiki page.
How to install it
Search "Comfyroll Studio" in ComfyUI Manager, or install manually:
cd ComfyUI/custom_nodes
git clone https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes.git
Restart ComfyUI. No models or extra dependencies for this node.
Common issues & troubleshooting
Only need one or two colors, not four. That's fine - just leave the outputs you don't need unwired. There's no penalty for using two of the four outputs and ignoring the rest.
Downstream node won't accept the color string directly. These outputs are plain RGB value strings. If whatever you're feeding them into expects a hex string or a named color from Comfyroll's own ~30-color dropdown format instead, this node's output won't match that format directly - it's built for RGB specifically, not as a universal color type across the pack's other nodes.
Want a specific number of colors other than exactly four. This node is fixed at four outputs by design - if you need more (or a variable, configurable count), use CR Random Multiline Colors instead, which generates a row-count-controlled batch as a list rather than four hardcoded slots.
All four colors look similar or all end up in the same tonal range. That's a property of the specific seed you're on more than a bug - try a different seed if a particular one keeps giving you a narrow-looking palette.
Pack doesn't show up in the node menu at all. That's an install problem, not this node specifically - delete the ComfyUI_Comfyroll_CustomNodes folder and reinstall clean rather than debugging a partial install.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| seed | INT | 00β18446744073709550000 | β |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| rgb_1 | STRING | β |
| rgb_2 | STRING | β |
| rgb_3 | STRING | β |
| rgb_4 | STRING | β |
| show_help | STRING | β |