🔧 Draw Text
essentials/text
DrawText+Example
JSON Example
{
"class_type": "DrawText+",
"inputs": {
"text": "Hello, World!",
"font": "ShareTechMono-Regular.ttf",
"size": 56,
"color": "#FFFFFF",
"background_color": "#00000000",
"shadow_distance": 0,
"shadow_blur": 0,
"shadow_color": "#000000",
"horizontal_align": "left",
"vertical_align": "top",
"offset_x": 0,
"offset_y": 0
}
}This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.
Inputs
| Name | Type | Status | Constraints | Default |
|---|---|---|---|---|
text | STRING | required | - | "Hello, World!" |
font | ENUM1 options
| required | - | - |
size | INT | required | min: 1, max: 9999, step: 1 | 56 |
color | STRING | required | - | "#FFFFFF" |
background_color | STRING | required | - | "#00000000" |
shadow_distance | INT | required | min: 0, max: 100, step: 1 | 0 |
shadow_blur | INT | required | min: 0, max: 100, step: 1 | 0 |
shadow_color | STRING | required | - | "#000000" |
horizontal_align | ENUM3 options
| required | - | - |
vertical_align | ENUM3 options
| required | - | - |
offset_x | INT | required | min: -16384, max: 16384, step: 1 | 0 |
offset_y | INT | required | min: -16384, max: 16384, step: 1 | 0 |
img_composite | IMAGE | optional | - | - |
Outputs
| Index | Name | Type | Is List | Connection Reference |
|---|---|---|---|---|
0 | IMAGE | IMAGE | No | ["{node_id}", 0] |
1 | MASK | MASK | No | ["{node_id}", 1] |
How to connect to these outputs
To connect another node's input to an output from this node, use the connection reference format:
["node_id", output_index]Where node_id is the ID of this DrawText+ node in your workflow, and output_index is the index from the table above.
Example
If this node has ID "5" in your workflow:
IMAGE (IMAGE):["5", 0]MASK (MASK):["5", 1]
Was this page helpful?