# NodeBox

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

# Bezier

## Description

The Bezier library (nicknamed PathMatics) provides powerful mathematical functionality for Bezier paths, from simple things like evaluating the length of a path to complicated things like inserting points on a path or constructing a smooth path from a list of on-curve points. Bezier math is not the easiest thing to grasp, but all the commands in this library are simple and straightforward, and they work magic on a textpath().

Note that the Bezier library is always in development, so you might experience occasional errors while working with it. Please report any errors (tomdesmedt@trapdoor.be).

A special thanks goes to professor F. De Smedt at the Free University of Brussels for his integration and interpolation algorithms.

## Download

| bezier.zip (5KB) Last updated for NodeBox 1.8.2 If you have NodeBox 1.8.4 or up, the library is integrated by default. See the tutorial.

## Commands in the Bezier library

- contours()
- length()
- point()
- split()
- findpath()

## Example

A basic example of path math: the point() command tells us where to put circles on the textpath, playing around with curves and their control handles constructs the whirly background.