Method Cairo.MeshPattern()->line_to()
- Method
line_to
void
line_to(float
|int
x
,float
|int
y
)- Description
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 line_to() this function will behave as move_to(x, y).
After this call the current point will be (x, y).
- Note
If pattern has no current patch or the current patch already has 4 sides, pattern will be put into an error status with a status of STATUS_INVALID_MESH_CONSTRUCTION.
- Parameter
x
the X coordinate of the end of the new line
- Parameter
y
the Y coordinate of the end of the new line