π’ CR Draw Pie
Draw a pie or arc wedge as an image
- IMAGE
- show_help
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;customreads the hex fields.zoom(0β10, default 1) androtation(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.
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| width | INT | 51264β4096 | β |
| height | INT | 51264β4096 | β |
| pie_start | FLOAT | 30.00β9999 | β |
| pie_stop | FLOAT | 330.00β9999 | β |
| shape_color | COMBO | 30 options: custom, white, black, red, green, blue, +24 | |
| back_color | COMBO | 30 options: custom, white, black, red, green, blue, +24 | |
| x_offset | INT | 0-2048β2048 | β |
| y_offset | INT | 0-2048β2048 | β |
| zoom | FLOAT | 1.000β10 | β |
| rotation | FLOAT | 0.00β3600 | β |
| shape_color_hexopt | STRING | #000000 | β |
| bg_color_hexopt | STRING | #000000 | β |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | β |
| show_help | STRING | β |