Zako-Deco (装饰版块)
14 Poster Decorations Without Leaving ComfyUI
- color
- 图层
The difference between a poster and a caption slapped on an image is usually decoration: a corner line here, a gradient wash, a divider that tells the eye where the title ends. Zako-Deco is the node in the Zako-EmbedText pack that supplies those finishing touches, so your text-on-image output looks designed instead of annotated. It's the quiet middle sibling - Zako-Text does the talking, Zako-Composer does the rendering, and Zako-Deco is what makes either of them look intentional.
How it works
Same architecture as its siblings: ZakoDeco takes your style choices, bundles them into a lightweight ZAKO_LAYER dict, and hands it off to the composer to draw. Nothing is rendered here - the node is a description, the compositing happens later with Pillow.
The 14 styles split into three behavior groups, and this is the main thing to internalize because it trips people up:
- Global-layout styles - 四角线 (corner lines), 十字 (cross), 边框 (frame), 圆点 (dots), 引号 (quote marks), 加号 (plus marks), 渐变遮罩 (gradient mask). These anchor themselves to the canvas and ignore the center coordinates entirely.
- Positioned shapes - 分隔线 (divider), 圆形 (circle), 菱形 (diamond), 三角形 (triangle), 星形 (star), 方框 (box). These use
x,y, andscaleto place and size themselves. - 色块 (color block) - a rectangle placed by
x/yand sized bypanel_w/panel_hin canvas fractions. The tooltip notes it goes down to 0.003, which is a hairline.
The styles input is a MultiCombo, so you can stack several - say frame + corner lines + gradient mask in one node, which keeps the layer count down.
The inputs that matter
- styles - the MultiCombo picker. Defaults to 四角线. Start here.
- color - the line and shape color, defaulting to a tasteful gold
#c8a95f. - x / y / scale - only meaningful for the positioned shapes and color block. If you're using a global style and wonder why moving x/y does nothing, that's working as designed.
- strength - opacity for the gradient mask and color block (0–1).
- panel_w / panel_h - the color block's width and height as canvas fractions; the 0.003 floor is how you make thin rules.
- angle - rotates the whole decoration layer around center, ±180°.
Output is a single 图层 (layer) socket that plugs into Zako-Composer's layers input.
Installing it
The whole pack installs in one step - no dependencies, no models, no requirements.txt to fight with. ComfyUI Manager: search Zako-EmbedText and install. Or:
cd ComfyUI/custom_nodes
git clone https://github.com/xiaoshengyvlin/Zako-EmbedText
Restart ComfyUI. Because the pack is written against the V3 node API, a recent ComfyUI is required for the nodes to show up at all.
Gotchas worth knowing
Layer order is draw order in the composer, so a deco layer plugged into a higher-numbered input slot will paint over your text. Put ornaments you want behind text in a low slot. Also remember strength only affects the gradient and color block - line art is drawn at full opacity, and there's no separate line-width input, so if a divider looks too heavy you thin it with scale or swap to a hairline color block.
It's a small node in a small pack, but for poster work it covers most of what you'd normally open an editor for - and it does it in the graph, reproducibly, at any canvas size.
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| styles | COMBO | 四角线 | 可多选。四角线/十字/边框/圆点/引号/加号/渐变遮罩 为全局布局(忽略中心坐标);分隔线/圆形/菱形/三角形/星形/方框 以中心坐标定位;色块用中心坐标+色块宽度/高度 |
| color | COLOR | #c8a95f | 装饰线条与图形的颜色 |
| strength | FLOAT | 0.600–1 | 渐变遮罩与色块的不透明度(0.0 ~ 1.0) |
| angle | FLOAT | 0-180–180 | 线条与形状装饰的旋转角度(-180 ~ 180 度);分隔线/菱形等中心定位形状绕自身中心旋转,四角线/边框等全局布局绕画布中心旋转;渐变遮罩与色块不旋转 |
| x | FLOAT | 0.5000–1 | 分隔线/圆形/菱形/三角形/星形/方框/色块 的中心 X(画布比例) |
| y | FLOAT | 0.5000–1 | 分隔线/圆形/菱形/三角形/星形/方框/色块 的中心 Y(画布比例) |
| scale | FLOAT | 1.000.05–4 | 分隔线/圆形/菱形/三角形/星形/方框 的大小倍率 |
| panel_w | FLOAT | 1.0000.002–1 | 色块样式:宽度占画布比例(支持 0.003 级细线) |
| panel_h | FLOAT | 0.2200.002–1 | 色块样式:高度占画布比例(支持 0.003 级细线) |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| 图层 | ZAKO_LAYER | — |