Package: cairo

Function cairo:pattern-linear-points

Lambda List

cairo:pattern-linear-points (pattern)

Arguments

pattern -- a cairo:pattern-t instance

Return Value

x0 -- a number for the x coordinate of the first point
y0 -- a number for the y coordinate of the first point
y0 -- a number for the x coordinate of the second point
y1 -- a number for the y coordinate of the second point

Details

Gets the gradient endpoints for a linear gradient. Returns nil if the pattern is not a linear gradient pattern.

Notes

The numbers returned are double floats.
 

See also

2025-1-19