Expression painter:lineto(x,y) appends a line segment to the current path, starting from the current point and ending at coordinates (x,y). The segment end point then becomes the new current point.

The behavior of this function is undefined when the current point is not set

See also: PostScript operator lineto.