Package: cairo

Function cairo-pattern-get-color-stop-rgba

Lambda List

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

Arguments

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

Return Value

offset -- a double float with the offset of the stop
red -- a double float red component of color
green -- a double float green component of color
blue -- a double float blue component of color
alpha -- a double float alpha component of color
status -- :success, or :invalid-index if index is not valid for the given pattern, if the pattern is not a gradient pattern, :pattern-type-mismatch is returned

Details

Gets the color and offset information at the given index for a gradient pattern. Values of index are 0 to 1 less than the number returned by the function cairo-pattern-get-color-stop-count.
 

See also

2020-12-25