Nodes/Comfyroll Studio/🟩 CR Polygons
ComfyUI Node Runs on cloud

🟩 CR Polygons

Generate a hexagon or triangle grid pattern from scratch

By Suzie1Β·Created 3 years agoΒ·Updated 2 years agoΒ· 1,296
🟩 CR Polygons
    • IMAGE
    • show_help
    β—„modeβ–Ύβ–Ί
    β—„width512β–Ί
    β—„height512β–Ί
    β—„rows5β–Ί
    β—„columns5β–Ί
    β—„face_colorβ–Ύβ–Ί
    β—„background_colorβ–Ύβ–Ί
    β—„line_colorβ–Ύβ–Ί
    β—„line_width2β–Ί
    β—„face_color_hex#000000β–Ί
    β—„bg_color_hex#000000β–Ί
    β—„line_color_hex#000000β–Ί

    Not every node in a diffusion pipeline needs a model. CR Polygons is one of a handful of Comfyroll nodes that generates an image entirely procedurally - no checkpoint, no sampling, no prompt, just a grid of hexagons or triangles drawn with the parameters you give it. It's a pattern generator, useful for backgrounds, textures, and design elements that don't need to be "AI generated" at all, just consistent and controllable.

    What it's for

    Geometric backgrounds show up constantly in graphic design work - banner backgrounds, texture overlays, decorative panels - and generating them procedurally is both faster and more precisely controllable than trying to get a diffusion model to draw a clean, regular hexagon grid. This node draws exactly that: a tiled pattern of either hexagons or triangles, sized and colored the way you specify, output as a plain image ready to use on its own or as an input to something else in your graph (a background layer under CR Page Layout, for instance, or a base texture to composite other elements onto).

    How it works

    You set a canvas size (width Γ— height) and a grid density (rows Γ— columns), pick hexagons or triangles as the shape, and the node tiles that shape across the canvas at the resulting size. Face color, background color, and line color are all independently configurable, along with the line width for the polygon outlines.

    Inputs and outputs that matter

    • mode - hexagons or triangles. This is the whole personality of the output.
    • width / height (default 512, up to 4096) - canvas size.
    • rows / columns (default 5, up to 512) - grid density. Higher values mean smaller, more numerous shapes across the same canvas.
    • face_color, background_color, line_color - each a dropdown of roughly 30 named colors plus "custom." Pick custom on any of them and set the matching optional hex field (face_color_hex, bg_color_hex, line_color_hex) instead.
    • line_width (default 2, up to 512) - outline thickness. Set to 0 for a borderless, purely color-filled pattern.

    Output is the generated IMAGE, plus the standard show_help link out 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 and nothing extra to download - this node is pure procedural drawing.

    Common issues & troubleshooting

    Colors don't match what you picked from the dropdown. If any of the three color fields is set to "custom," the node reads from the matching _hex field instead - and those default to black. A forgotten "custom" selection shows up as an unexpected black fill or outline.

    Shapes look distorted rather than regular hexagons/triangles. This comes down to the relationship between width/height and rows/columns - a non-square canvas with equal row and column counts will stretch the shapes to fit. If you want proportionally correct hexagons or triangles, keep the aspect ratio of your canvas consistent with your grid density, or accept the stretch as a deliberate style choice.

    Pattern looks too busy or too sparse. That's rows/columns - turn them down for larger, fewer shapes, or up for a denser, smaller-tiled look. There's no "auto-fit" here; it's a direct grid count, not a target shape size.

    Outline missing even with a line color set. Check line_width - it defaults to 2, but if it's been set to 0, no outline draws regardless of the color chosen.

    Pack doesn't show up in the node list at all. That's an install issue rather than something specific to this node - delete the ComfyUI_Comfyroll_CustomNodes folder and re-clone cleanly rather than digging into a partial install.

    Category🧩 Comfyroll Studio/πŸ‘Ύ Graphics/🌈 Pattern

    Inputs (12)

    NameTypeDefaultDescription
    modeCOMBO2 options: hexagons, triangles
    widthINT51264–4096β€”
    heightINT51264–4096β€”
    rowsINT51–512β€”
    columnsINT51–512β€”
    face_colorCOMBO30 options: custom, white, black, red, green, blue, +24
    background_colorCOMBO30 options: custom, white, black, red, green, blue, +24
    line_colorCOMBO30 options: custom, white, black, red, green, blue, +24
    line_widthINT20–512β€”
    face_color_hexoptSTRING#000000β€”
    bg_color_hexoptSTRING#000000β€”
    line_color_hexoptSTRING#000000β€”

    Outputs (2)

    NameTypeDescription
    IMAGEIMAGEβ€”
    show_helpSTRINGβ€”