π« CR Color Bars
Generate a two-color stripe pattern as an image
- IMAGE
- show_help
Sometimes you don't want the model to make an image - you want a flat, predictable graphic. Stripes. This node draws a clean two-color bar pattern at whatever size you ask for, and hands it back as a normal IMAGE you can feed anywhere: as a background to composite text onto, as a base layer for a poster, or as raw material for a ControlNet or a latent to noodle with.
It's from Comfyroll Studio (Suzie1 / RockOfFire), living in the pack's Graphics β Pattern group alongside gradients, checkers, and starbursts. No diffusion involved - it's a plain Pillow drawing routine, so it's instant and deterministic.
How it works
You give it a canvas size and two colors, and it fills the frame with alternating bars. The orientation decides the direction - vertical, horizontal, diagonal, or alt_diagonal - and bar_frequency sets how many bars pack into the frame (1 to 200; higher means thinner, denser stripes). The offset nudges the pattern's phase so the bars don't have to start flush against the edge.
Colors come from a dropdown of 30 named presets (white, black, red, and so on). Pick custom on either color and the node reads the matching hex field instead, so you can dial in exact brand colors.
The inputs that matter
width/height(default 512, up to 4096) - the output canvas size.color_1/color_2- the two bar colors, from the 30-color dropdown. Set either tocustomto use a hex value.orientation- vertical, horizontal, diagonal, or alt_diagonal.bar_frequency(1β200, default 5) - how many bars fit across the frame.
Two optional strings, color1_hex and color2_hex (default #000000), hold the custom colors that kick in when you choose custom above.
Output is an IMAGE (plus the show_help wiki link, which you don't wire). It's a standard image tensor - treat it like any other.
Where you'd actually reach for it
This is a building block, not a finish. Two-tone bars make solid backdrops for banners and title cards, especially paired with Comfyroll's text nodes on top. Diagonal stripes are a quick "caution tape" or retro-poster vibe. And because the output is deterministic, it's genuinely useful as test input - a known pattern to check that a downstream node is doing what you think.
How to install it
- ComfyUI Manager: search
Comfyroll Studio, install, restart. - Manual:
cd ComfyUI/custom_nodes && git clone https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes.git, then restart.
No model downloads - the graphics nodes draw with Pillow, which ships with ComfyUI.
Common issues
The one real gotcha with Comfyroll's Graphics nodes is loading, not drawing. On newer ComfyUI builds the pack's Graphics module occasionally fails to import at startup - the console shows Comfyroll Studio: Failed to load Graphics nodes followed by a cascade of NameError: name 'CR_...' is not defined, and then none of the CR nodes show up. This is a real, reported failure. Fix it by scrolling to the first error in the console (the actual cause, usually an import/dependency hiccup) and updating the pack through the Manager, which pulls the maintainers' compatibility patches.
Past that: if a custom color comes out black, you forgot to fill the matching hex field - the dropdown says custom but the hex still reads its #000000 default. And a very high bar_frequency on a small canvas just produces a muddy grey once the bars get thinner than a pixel; back it off.
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| mode | COMBO | 1 options: 2-color | |
| width | INT | 51264β4096 | β |
| height | INT | 51264β4096 | β |
| color_1 | COMBO | 30 options: custom, white, black, red, green, blue, +24 | |
| color_2 | COMBO | 30 options: custom, white, black, red, green, blue, +24 | |
| orientation | COMBO | 4 options: vertical, horizontal, diagonal, alt_diagonal | |
| bar_frequency | INT | 51β200 | β |
| offset | FLOAT | 0.000β20 | β |
| color1_hexopt | STRING | #000000 | β |
| color2_hexopt | STRING | #000000 | β |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | β |
| show_help | STRING | β |