Name
cpattern:LineTo -- add line to patch
Synopsis
cpattern:LineTo(x, y)
Function
Adds a line to the current patch from the current point to position (x, y) in pattern-space coordinates.

If there is no current point before the call to cpattern:LineTo() this function will behave as cpattern:MoveTo() with the arguments x and y.

After this call the current point will be (x, y).

Note: If the pattern is not a mesh pattern then it will be put into an error status with a status of #CAIRO_STATUS_PATTERN_TYPE_MISMATCH. If the pattern has no current patch or the current patch already has 4 sides, it will be put into an error status with a status of #CAIRO_STATUS_INVALID_MESH_CONSTRUCTION.

Inputs
x
the X coordinate of the end of the new line
y
the Y coordinate of the end of the new line

Show TOC