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 -- the double float x coordinate of the first control point
y1 -- the double float y coordinate of the first control point
x2 -- the double float y coordinate of the second control point
y2 -- the double float y coordinate of the second control point
x3 -- the double float x coordinate of the end of the curve
y3 -- the double float 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 function cairo-mesh-pattern-curve-to, 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).

Note

If pattern is not a mesh pattern then pattern will be put into an error status with a status of :pattern-type-mismatch. 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 :invalid-mesh-construction.
 

See also

2020-12-25