Package: cairo

Function cairo:mesh-pattern-line-to

Lambda List

cairo:mesh-pattern-line-to (pattern x y)

Arguments

pattern -- a cairo:pattern-t instance
x -- a number coerced to a double float for the x coordinate of the end of the new line
y -- a number coerced to a double float for the y coordinate of the end of the new line

Details

Adds a line to the current patch from the current point to position (x,y) in pattern-space coordinates.

If there is no current point before the call to the cairo:mesh-pattern-line-to function this function will behave as
(cairo:mesh-pattern-move-to pattern x y)  
After this call the current point will be (x,y).

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.
 

See also

2025-1-19