Name
cpattern:SetControlPoint -- set control point
Synopsis
cpattern:SetControlPoint(point_num, x, y)
Function
Set an internal control point of the current patch.

Valid values for point_num are from 0 to 3 and identify the control points as explained in cairo.PatternMesh().

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 point_num is not valid, the pattern will be put into an error status with a status of #CAIRO_STATUS_INVALID_INDEX. If the pattern has no current patch, it will be put into an error status with a status of #CAIRO_STATUS_INVALID_MESH_CONSTRUCTION.

Inputs
point_num
the control point to set the position for
x
the X coordinate of the control point
y
the Y coordinate of the control point

Show TOC