Package: cairo

Function cairo:mesh-pattern-control-point

Lambda List

cairo:mesh-pattern-control-point (pattern index point)

Arguments

pattern -- a cairo:pattern-t instance
index -- an unsigned integer for the patch number to return data for
point -- an unsigned integer for the control point number to return data for

Return Value

x -- a double float with the x coordinate of the control point
y -- a double float with the y coordinate of the control point

Details

Gets the control point point of patch index for a mesh pattern. Returns nil if index or point is not valid for pattern.

The index argument can range 0 to 1 less than the number returned by the cairo:mesh-pattern-patch-count function.

Valid values for point are from 0 to 3 and identify the control points as explained for the cairo:pattern-create-mesh function.
 

See also

2025-1-19