# NodeBox

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

# Reference | align()

Syntax |
    align(align=LEFT)
Description | Sets the alignment of text in a block. Text in a block wraps across multiple lines when the width parameter of the text() command is specified. The parameter for align() can be either LEFT, RIGHT, CENTER, JUSTIFY.
Returns | the current alignment
Example |
    align(RIGHT)
    txt = open("shrubbery.txt").read()
    text(txt, 10, 25, width=100)