# NodeBox

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

# Reference | moveto()

Syntax |
    moveto(x, y)
Description | The moveto() command must be called between beginpath() and endpath(). The two parameters set the location of a new origin point for the path. This would be the same as lifting the pen from a paper and putting it down somewhere else to continue drawing.
Example |
    beginpath()
    moveto(10, 10)
    lineto(40, 10)
    moveto(10, 10)
    lineto(40, 80)
    endpath()