第三方插件
ComfyUI_essentials
Draw Text
节点中英文对比
按当前节点配置,分别展示中文与英文节点结构。
中文节点
Draw Text
text
font
size
color
background_color
shadow_distance
shadow_blur
shadow_color
horizontal_align
vertical_align
offset_x
offset_y
direction
英文节点
Draw Text
text
font
size
color
background_color
shadow_distance
shadow_blur
shadow_color
horizontal_align
vertical_align
offset_x
offset_y
direction
参数说明
依据当前节点关联的 `NodesItems` 数据展示输入、输出与控件说明。
输入参数
img_composite
img_composite
可选参数,若提供该图像,则文字将叠加绘制在该图像上;否则在透明背景上绘制。
输出参数
IMAGE
IMAGE
输出绘制完文字的图像
遮罩
MASK
文字区域的遮罩图(白色部分为文字,黑色为背景)。
控件参数
text
text
输入要绘制的文字
默认值:"Hello, World!"
font
font
用户可选字体。
从custom_nodes\ComfyUI_essentials\fonts文件夹下选择.ttf 或 .otf文件
size
size
文字大小
默认值:56
范围:1 ~ 9999
color
color
文字颜色(HEX 格式)
默认值:#FFFFFF
background_color
background_color
文字绘制区域背景颜色。
默认值:#00000000(全透明背景)。
shadow_distance
shadow_distance
文字阴影偏移距离。
默认值:0
shadow_blur
shadow_blur
文字阴影模糊程度。
默认值:0
shadow_color
shadow_color
阴影颜色。
默认值:#000000
horizontal_align
horizontal_align
水平对齐方式。
["left", "center", "right"]
vertical_align
vertical_align
垂直对齐方式。
["top", "center", "bottom"]
offset_x
offset_x
x轴偏移量
offset_y
offset_y
y轴偏移量
direction
direction
文字方向
"ltr":从左向右
"rtl":从右向左
详细说明
结合节点用途、参数和调用方式,给出更完整的说明内容。
暂无节点说明
同类节点导航
继续浏览同一分类下的相邻节点,方便串联学习。