Nodes/Comfyroll Studio/🎲 CR Random RGB Gradient
ComfyUI Node Runs on cloud

🎲 CR Random RGB Gradient

A seeded sequence of colors, one per row

By Suzie1Β·Created 3 years agoΒ·Updated 2 years agoΒ· 1,286
🎲 CR Random RGB Gradient
    • multiline_text
    • show_help
    β—„seed0β–Ί
    β—„rows5β–Ί

    The row-count-driven sibling of CR Random RGB. Where that node hands you exactly four independent random colors on four separate outputs, CR Random RGB Gradient generates as many colors as you ask for and returns them as a single sequence - one color per line, in the order generated from your seed.

    What it's for

    Anywhere you need a run of colors rather than a fixed handful - building a multi-stop palette, feeding a list-consuming downstream node that expects one color per iteration, or generating test data across a range of rows - this is the node for that. It sits alongside CR Random Multiline Colors in the pack's utility set; the difference is that Multiline Colors lets you pick the output format (RGB, hex, or matplotlib's xkcd names) while this node is fixed to RGB values specifically.

    How it works

    Give it a seed and a row count, and it generates that many RGB color values, one per line of output text. The same seed and row count always reproduce the identical sequence, so once you land on a run of colors you like, you can lock the seed in and keep it.

    Inputs and outputs that matter

    • seed (default 0) - controls the generated sequence. Change it for a different run of colors.
    • rows (default 5, up to 2048) - how many colors to generate in the sequence.

    Output is multiline_text, a plain string with one RGB color value per line, plus the pack-standard show_help link to this node's wiki page.

    How to install it

    Search "Comfyroll Studio" in ComfyUI Manager, or install by hand:

    cd ComfyUI/custom_nodes
    git clone https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes.git
    

    Restart ComfyUI. No models or extra dependencies required.

    Common issues & troubleshooting

    Not sure whether to use this or CR Random Multiline Colors. If you specifically want RGB-format values and don't need hex codes or matplotlib's xkcd color names, either works - this one is the narrower, RGB-only version. Reach for Multiline Colors instead if you want hex strings or named colors for a node that expects that format specifically.

    Downstream node won't accept the output directly. The output is one block of multiline text, not a native list type. If whatever consumes it needs an actual list to iterate over (rather than a single string with line breaks), route it through CR Multiline Text with split_string enabled first.

    Same seed, but the sequence looks different after changing rows. That's expected - rows and seed together determine the whole sequence, so changing how many colors you're asking for shifts the generation even at a fixed seed. If you need the first N colors to stay stable while lengthening the sequence, that stability isn't guaranteed here.

    Colors look too similar across the whole sequence, or too erratic. There's no smoothing or interpolation control exposed on this node - each row is an independent random draw from the seeded sequence, not a manually-tunable gradient curve. If you need precise control over exactly two colors blending smoothly across a canvas, CR Radial Gradient (a start/end color gradient with adjustable spread) is the more deliberate tool for that job.

    Pack doesn't load at all. That's an install-level issue, not this node - delete the ComfyUI_Comfyroll_CustomNodes folder and re-clone clean rather than debugging around it.

    Category🧩 Comfyroll Studio/πŸ› οΈ Utils/🎲 Random

    Inputs (2)

    NameTypeDefaultDescription
    seedINT00–18446744073709550000β€”
    rowsINT51–2048β€”

    Outputs (2)

    NameTypeDescription
    multiline_textSTRINGβ€”
    show_helpSTRINGβ€”