Package: cairo

Function cairo:pattern-rgba

Lambda List

cairo:pattern-rgba (pattern)

Arguments

pattern -- a cairo:pattern-t instance

Return Value

red -- a number for the red component of the color
green -- a number for the green component of the color
blue -- a number for the blue component of the color
alpha -- a number for the alpha component of the color

Details

Gets the color for a solid color pattern. Returns nil if the pattern ist not a solid color pattern.

Notes

The numbers returned are double floats.
 

See also

2025-1-19