NodeBox

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

cornu.path()

Syntax

path(coordinates, close=False, tweaks=20)

Description

Returns a cornu path object from a list of (x,y)-tuples. The x and y coordinates range between 0.0 and 1.0, describing a point's position relative to the drawing area's size(). When the close parameter is set to True, draws a closed path. The number of tweaks makes the curve more elegant, but slows down the command as well.

See the documentation on paths to see what you can do with path objects.