Nodes/comfyui-panels/Draw Panels Edges Dashed
ComfyUI Node

Draw Panels Edges Dashed

Panel borders, but with a sketchier feel

By bmad4ever·Created 12 months ago·Updated 2 months ago· 41
Draw Panels Edges Dashed
  • panels
  • canvas
  • stroke_color
  • IMAGE
  • MASK
stroke_width8.0
dash_length24.0
gap_length16.0
color_alpha255
upscale4

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.

CategoryBmad/Panels

Inputs (8)

NameTypeDefaultDescription
panelsPOLYGON
canvasPOLYGON
stroke_widthFLOAT8.01–256
dash_lengthFLOAT24.01–256
gap_lengthFLOAT16.01–256
color_alphaINT2551–255
stroke_colorCOLOR#000000
upscaleINT41–8The lines are drawn upscaled by this factor to anti-alias the jaggies away.

Outputs (2)

NameTypeDescription
IMAGEIMAGE
MASKMASK