Draw Panels Edges Dashed
Panel borders, but with a sketchier feel
- panels
- canvas
- stroke_color
- IMAGE
- MASK
Not every comic page wants solid black rules. Dashed borders read as rougher, sketchier, or intentionally unfinished - great for storyboard-style pages, dream sequences, or any panel you want to visually de-emphasize. Draw Panels Edges Dashed is the pack's solid-line node with the line broken into dashes.
It's a straight variant of Draw Panels Edges: same panels-in / canvas-in / image-and-mask-out shape, same supersampled rendering, but instead of one continuous stroke per panel outline, the outline is drawn as alternating dash and gap segments. The one mechanical detail worth knowing: the dash/gap lengths you enter are approximate. The node adjusts them near your values so the dash pattern closes the loop evenly around each panel - otherwise you'd get an ugly partial dash where the outline meets itself.
The inputs that matter
Everything from the solid version, plus two that matter most:
panels- the polygon list.canvas- the page rectangle.dash_length- default 24, the on-portion of the pattern in pixels.gap_length- default 16, the off-portion.stroke_width- default 8.stroke_color- default#000000;color_alpha- default 255.upscale- default 4, the anti-aliasing supersample factor.
Outputs are an IMAGE (RGBA) and a MASK, same as the solid version.
Installing it
Part of comfyui-panels - ComfyUI Manager, search "comfyui-panels", or:
cd ComfyUI/custom_nodes
git clone https://github.com/bmad4ever/comfyui_panels
Restart, install deps (shapely, matplotlib, opencv-python), no models.
Where people get burned
Same two gotchas as the solid node: the COLOR widget needs bmad or MTB nodes installed, and the canvas must match your target image resolution. On the dashes specifically - if the pattern looks uneven or the loop close is ugly, that's why the node adjusts your lengths; fight it too hard (extreme dash-to-gap ratios) and the adjustment has less room to save you. Also, dashed lines on very small panels can start looking like noise; raise dash_length relative to panel size if that happens.
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| panels | POLYGON | — | |
| canvas | POLYGON | — | |
| stroke_width | FLOAT | 8.01–256 | — |
| dash_length | FLOAT | 24.01–256 | — |
| gap_length | FLOAT | 16.01–256 | — |
| color_alpha | INT | 2551–255 | — |
| stroke_color | COLOR | #000000 | — |
| upscale | INT | 41–8 | The lines are drawn upscaled by this factor to anti-alias the jaggies away. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |
| MASK | MASK | — |