Nodes/Comfyroll Studio/🟒 CR Draw Pie
ComfyUI Node Runs on cloud

🟒 CR Draw Pie

Draw a pie or arc wedge as an image

By Suzie1Β·Created 3 years agoΒ·Updated 2 years agoΒ· 1,287
🟒 CR Draw Pie
    • IMAGE
    • show_help
    β—„width512β–Ί
    β—„height512β–Ί
    β—„pie_start30.0β–Ί
    β—„pie_stop330.0β–Ί
    β—„shape_colorβ–Ύβ–Ί
    β—„back_colorβ–Ύβ–Ί
    β—„x_offset0β–Ί
    β—„y_offset0β–Ί
    β—„zoom1.00β–Ί
    β—„rotation0.0β–Ί
    β—„shape_color_hex#000000β–Ί
    β—„bg_color_hex#000000β–Ί

    Need a pie slice, a Pac-Man wedge, or a partial disc as a clean graphic? This node draws one. You set the start and stop angles, the colors, where it sits, and it hands back a normal IMAGE. No model, no diffusion - it's a Pillow shape-drawing routine, so it's instant and exact.

    It's from Comfyroll Studio (Suzie1 / RockOfFire), in the Graphics β†’ Shape group with Draw Shape and the random-shape-pattern nodes. It's a graphic primitive - useful as a mask, a design element, or a base to composite over.

    How it works

    A pie is an arc swept between two angles and filled. pie_start and pie_stop are the angles in degrees (defaults 30 and 330, which leaves the classic Pac-Man mouth open at the bottom). Set them to 0 and 360 for a full disc; narrow the gap for a thin wedge. The wedge is drawn in shape_color on a back_color background, both from a 30-entry named-color dropdown (with custom unlocking the matching hex field).

    Then there's a small transform stack so you don't have to draw it dead-center: x_offset / y_offset move it, zoom scales it (0–10), and rotation spins the whole thing (0–3600 degrees, so you can over-rotate freely). All of that happens on a canvas sized by width and height.

    The inputs that matter

    • width / height (default 512, up to 4096) - canvas size.
    • pie_start / pie_stop (degrees, defaults 30 / 330) - the arc. This is the pair you'll actually set; the gap between them is your wedge.
    • shape_color / back_color - wedge and background colors from the dropdown; custom reads the hex fields.
    • zoom (0–10, default 1) and rotation (0–3600, default 0) - scale and spin.

    Optional shape_color_hex and bg_color_hex (default #000000) hold the custom colors.

    Output is an IMAGE (plus the show_help wiki link you don't wire).

    Where you'd actually reach for it

    It's a design element, not a picture. A pie wedge makes a quick progress dial, a radial mask, or a geometric accent for a poster or thumbnail. Because it's a flat two-color shape, it doubles as a mask - feed it where you want a wedge-shaped region selected. And with the offset/zoom/rotation controls, you can place several of them (across separate nodes) into a composed layout without any external editor.

    Honestly, if you need arbitrary shapes rather than specifically a pie, Draw Shape in the same pack is the more general tool. Reach for Draw Pie when the wedge is the point.

    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 downloads - Pillow draws it.

    Common issues

    The one that bites is pack loading, not pie drawing. On newer ComfyUI builds Comfyroll's Graphics module can fail to import at startup - Comfyroll Studio: Failed to load Graphics nodes followed by NameError: name 'CR_...' is not defined, after which no CR nodes appear. It's a real, reported issue: read the first console error (the true cause) and update the pack via Manager.

    Per-node: if nothing shows up, check your angles. Set pie_start and pie_stop to the same value and there's no arc to fill, so you get a blank background. And a custom color rendering black means the matching hex field is still on its #000000 default.

    Category🧩 Comfyroll Studio/πŸ‘Ύ Graphics/🟣 Shape

    Inputs (12)

    NameTypeDefaultDescription
    widthINT51264–4096β€”
    heightINT51264–4096β€”
    pie_startFLOAT30.00–9999β€”
    pie_stopFLOAT330.00–9999β€”
    shape_colorCOMBO30 options: custom, white, black, red, green, blue, +24
    back_colorCOMBO30 options: custom, white, black, red, green, blue, +24
    x_offsetINT0-2048–2048β€”
    y_offsetINT0-2048–2048β€”
    zoomFLOAT1.000–10β€”
    rotationFLOAT0.00–3600β€”
    shape_color_hexoptSTRING#000000β€”
    bg_color_hexoptSTRING#000000β€”

    Outputs (2)

    NameTypeDescription
    IMAGEIMAGEβ€”
    show_helpSTRINGβ€”