Paragraph
Render multi-line wrapped text
Paragraph
Render multi-line wrapped text
Overview
The Paragraph node renders text that wraps within a bounding box. Unlike the Text node, it uses a fixed font size and wraps text to multiple lines. Use it for longer content like descriptions, quotes, or body text.
Usage Tips
- Set bounding box size to control where text wraps
- Adjust line_height for tighter (1.0) or looser (2.0) spacing
- Use alignment: “left”, “center”, or “right”
- Font size stays fixed - text wraps instead of scaling
Common Pairings
- Solid Canvas - Create a background for paragraph text
- Merge - Add paragraphs to image compositions
- Rectangle - Create a colored text box behind the paragraph
Gotchas
- Text that doesn’t fit in the bounding box is clipped
- Font size doesn’t auto-scale - adjust manually if text overflows
- Line breaks in text content are respected
Technical Reference
Outputs
| Name | Type | Description |
|---|---|---|
output | Image | Rendered paragraph as image |
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
params_size | size | map[height:600 width:800] | Bounding box dimensions |
params_text | text | Lorem ipsum... | Paragraph text content |
params_font | text | Arial | Font name |
params_font_size | number | 16 | Font size in points |
params_line_height | number | 1.5 | Line height multiplier |
params_align | text | left | Text alignment: left, center, right |
params_colour | color | #000000 | Text color |
params_shadow_colour | color | #00000088 | Shadow color (transparent for no shadow) |
params_shadow_offset_x | number | 2 | Shadow horizontal offset in pixels |
params_shadow_offset_y | number | 2 | Shadow vertical offset in pixels |
params_shadow_blur | number | 4 | Shadow blur radius |
params_stroke_colour | color | #000000FF | Stroke/outline color (transparent for no stroke) |
params_stroke_width | number | 2 | Stroke width in pixels |