Skip to main content

🔧 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

NameTypeStatusConstraintsDefault
textSTRINGrequired-"Hello, World!"
fontENUM
1 options
  • ShareTechMono-Regular.ttf
required--
sizeINTrequiredmin: 1, max: 9999, step: 156
colorSTRINGrequired-"#FFFFFF"
background_colorSTRINGrequired-"#00000000"
shadow_distanceINTrequiredmin: 0, max: 100, step: 10
shadow_blurINTrequiredmin: 0, max: 100, step: 10
shadow_colorSTRINGrequired-"#000000"
horizontal_alignENUM
3 options
  • left
  • center
  • right
required--
vertical_alignENUM
3 options
  • top
  • center
  • bottom
required--
offset_xINTrequiredmin: -16384, max: 16384, step: 10
offset_yINTrequiredmin: -16384, max: 16384, step: 10
img_compositeIMAGEoptional--

Outputs

IndexNameTypeIs ListConnection Reference
0IMAGEIMAGENo["{node_id}", 0]
1MASKMASKNo["{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?