Package: cairo

Function cairo:pattern-color-stop-rgba

Lambda List

cairo:pattern-color-stop-rgba (pattern index)

Arguments

pattern -- a cairo:pattern-t instance
index -- an integer for the index of the stop to return data for

Return Value

offset -- a number for the offset of the stop
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 and offset information at the given index for a gradient pattern. Returns nil if pattern is not a gradient pattern of if index is not valid for the given pattern.

Values of index are 0 to 1 less than the number returned by the cairo:pattern-color-stop-count function.

Notes

The numbers returned are double floats.
 

See also

2025-1-14