1. NodeBox 1
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Documentation
  4. Forum
  5. Blog

Reference | beginpath()

beginpath(x=None, y=None)

DescriptionUsing the beginpath() and endpath() commands allows creating custom shapes. The two parameters of beginpath() set the location of the first point (origin) in the path. These parameters are optional. When not supplied, a starting location for the path should be given with the moveto() command. After calling the beginpath() command, a series of other path commands usually follow, for example moveto(), lineto(), or curveto(). Finally, the endpath() command draws the path to the screen.
Tutorial Paths

beginpath(10, 10)
lineto(40, 10)