Nodes/DJZ-Nodes/Triangles Plus Generator V2
ComfyUI Node

Triangles Plus Generator V2

Palettes, sizes, and density — the one you actually want

By MushroomFleet·Created 2 years ago·Updated 5 months ago· 78
Triangles Plus Generator V2
    • IMAGE
    width1024
    height1024
    seed0
    background_color#000000
    color_palette
    size_preset
    count_preset

    Triangles Plus V2 is what happens when someone takes a three-knob procedural generator and asks "what if I could actually choose the colors?" Same seeded triangle-field drawing as V1, but now with a background color, five curated palettes, a size multiplier, and a density control. If you're going to use any Triangles node, this is the one.

    How it works

    Same core as V1 - seed both RNGs, lay triangles out in structured segments, draw with PIL - plus four new inputs that actually steer the output:

    • background_color - hex, default #000000, sets the canvas behind the triangles
    • color_palette - five options, and the palettes are named after where the author got the idea: kandinsky (that teal/coral/orange Bauhaus set), plus warm, cool, monochrome, and vibrant
    • size_preset - small/medium/large, a multiplier on the triangle dimensions
    • count_preset - sparse (4), medium (7), or dense (12) triangles per composition

    The triangle colors are drawn from the chosen palette, so "kandinsky + dense + large" and "monochrome + sparse + small" are different pieces of art, not just different seeds. The seed still scrambles the geometry and the exact color assignments, which is the right split: you control the family, the seed controls the instance.

    Inputs and outputs

    Required: width, height (64–4096, default 1024), seed, background_color, color_palette, size_preset, count_preset. Output: IMAGE at your dimensions.

    That's a real generator now - enough control to hit a brief ("dense, warm, dark background, ~1024²") while keeping the seed as the variation knob.

    Where it sits in a workflow

    Same jobs as V1, better dressed: background plates and thumbnails that match an art direction instead of whatever the RNG decided, img2img source material with a palette you can actually plan around, or a ControlNet depth source where the geometry style is the point. The kandinsky palette in particular reads as "designed" in a way random colors rarely do.

    Install

    Part of DJZ-Nodes by Drift Johnson. ComfyUI Manager → "DJZ-Nodes", or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/MushroomFleet/DJZ-Nodes
    cd DJZ-Nodes
    pip install -r requirements.txt
    

    Restart ComfyUI. PIL/numpy/torch only - nothing exotic.

    Gotchas

    A 4096² canvas with dense + large means 12 big triangles at high resolution; it's still fast in absolute terms, but it's the slowest config the node offers and there's no reason to default there. And count_preset maxes at 12 triangles, so if you want true geometric clutter you'll be compositing multiple passes. One more: the hex background accepts any valid hex, but give it something that contrasts with the palette or the triangles will vanish into it.

    CategoryDJZ-Nodes

    Inputs (7)

    NameTypeDefaultDescription
    widthINT102464–4096
    heightINT102464–4096
    seedINT00–4294967295
    background_colorSTRING#000000
    color_paletteCOMBO5 options: kandinsky, warm, cool, monochrome, vibrant
    size_presetCOMBO3 options: small, medium, large
    count_presetCOMBO3 options: sparse, medium, dense

    Outputs (1)

    NameTypeDescription
    IMAGEIMAGE