Package: cairo

Function cairo:mesh-pattern-curve-to

Lambda List

cairo:mesh-pattern-curve-to (pattern x1 y1 x2 y2 x3 y3)

Arguments

pattern -- a cairo:pattern-t instance
x1 -- a number for the x coordinate of the first control point
y1 -- a number for the y coordinate of the first control point
x2 -- a number for the x coordinate of the second control point
y2 -- a number for the y coordinate of the second control point
x3 -- a number for the x coordinate of the end of the curve
y3 -- a number for the y coordinate of the end of the curve

Details

Adds a cubic Bézier spline to the current patch from the current point to position (x3,y3) in pattern-space coordinates, using (x1,y1) and (x2,y2) as the control points.

If the current patch has no current point before the call to the cairo:mesh-pattern-curve-to function, this function will behave as if preceded by a call
(cairo:mesh-pattern-move-to pattern x1 y1)  
After this call the current point will be (x3,y3).

Notes

If the pattern argument is not a mesh pattern then pattern will be put into an error status with a :pattern-type-mismatch value. If pattern has no current patch or the current patch already has 4 sides, pattern will be put into an error status with a :invalid-mesh-construction value.

Lisp Implementation

The arguments are coerced to double floats before being passed to the foreign C function.
 

See also

2025-1-19