β Shape of Star
A star shape that scales from subtle sparkle to full cartoon burst
- SHAPE
Want a five-pointed star behind a hero character? A four-pointed sparkle for a product shot? A 40-pointed sun-flare? Shape of Star [DPaint] handles all of it with one slider, because a star is just a polygon whose points alternate between an outer radius and an inner radius. It's part of the Dream Painter pack (alt-key-project/comfyui-dream-painter), an MIT-licensed kit for drawing simple vector geometry that guides image generation - the README's own framing is "quick-and-dirty, not intended to produce the final artwork." You draw the star as a map for the model, then let the sampler do the texturing.
What it actually does
The node walks around a center point in equal angular steps, placing one vertex at the outer radius and the next at the inner radius, alternating, until it closes the polygon. The math is dead simple: size points means size * 2 vertices, half on the outer circle, half on the inner.
The inputs that matter:
- size - the number of star points, 3 to 100. 5 is the classic star; 4 gives that cross/star-shape sparkle look; 20+ turns into a gear or a sunburst.
- outer_diameter / inner_diameter - the two radii that define the star's silhouette. The ratio is what gives a star its character: with inner close to outer you get something approaching a regular polygon (more like a sawblade), and with inner much smaller you get a skinny, dramatic pointy star. Defaults are 0.75 / 0.35, a good middle.
- center_x / center_y - where the star sits, default 0.5/0.5, in the normalized 0β1 coordinate space Dream Painter uses.
Output is a SHAPE socket. Like every shape in the pack, it renders nothing by itself - wire it into Draw Shape As Bitmap [DPaint] to rasterize (with fill: yes it's a solid star; fill: no gives a spiky outline, which can be the better ControlNet condition if you want the star's edges to structure the image rather than a white blob). From there Bitmap To Image & Mask [DPaint] hands you an IMAGE for a ControlNet or a MASK for region work.
Installing it
Ships with the whole pack, so same drill as the rest:
cd ComfyUI/custom_nodes
git clone https://github.com/alt-key-project/comfyui-dream-painter
cd comfyui-dream-painter
pip install -r requirements.txt
or search "Dream Painter" in ComfyUI Manager and restart. No model downloads, no keys, no heavy dependencies - Pillow, scipy, numpy (pinned <2.0.0; the one real gotcha is pip may downgrade a numpy 2 environment to satisfy it, which can annoy other packs).
Common gotchas
A couple of small ones. First, outer_diameter and inner_diameter are both absolute, so if you shrink one and not the other the star's overall size changes - adjust them together unless you're chasing a specific look. Second, with a high size and near-equal diameters the star quietly becomes a gear/sunburst, which is fine but usually not what you searched a star node for. Preview the rendered bitmap before it touches a sampler - geometry this cheap regenerates instantly, so tweak freely.
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| size | INT | 53β100 | β |
| outer_diameter | FLOAT | 0.75 | β |
| inner_diameter | FLOAT | 0.35 | β |
| center_x | FLOAT | 0.50 | β |
| center_y | FLOAT | 0.50 | β |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| SHAPE | SHAPE | β |