Method Cairo.MeshPattern()->set_control_point()


Method set_control_point

void set_control_point(int(2bit) point_num, float|int x, float|int y)

Description

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 MeshPattern.

Note

If point_num is not valid, pattern will be put into an error status with a status of STATUS_INVALID_INDEX. If pattern has no current patch, pattern will be put into an error status with a status of STATUS_INVALID_MESH_CONSTRUCTION.

Parameter point_num

the control point to set the position for

Parameter x

the X coordinate of the control point

Parameter y

the Y coordinate of the control point