NodeBox

Create visual output with Python programming code
Home Download Reference Tutorial Library Gallery About

tx.paragraph()

Syntax

paragraph(string, x, y, w, debug=False)

Description

Draws a text paragraph in which each individual character is attracted to or emitted from the center(), depending on how you set the spacing(), nudge(), shiver() commands. This way you could create paragraphs that grow more wobbly to the right, that shiver slightly along the baseline, and more experimental things.

Each word passes through the word() command before being drawn, and each character through the paragraph() command.

Example

font("Dolly-Bold", 11)
import tx
string = "A very normal looking paragraph... on the surface..."
tx.paragraph(string, 20, 30, 150)