Pattern.getColorStopRgba

Gets the color and offset information at the given index for a gradient pattern. Values of index range from 0 to n-1 where n is the number returned by cairo.pattern.Pattern.getColorStopCount.

Note that the color and alpha values are not premultiplied.

class Pattern
getColorStopRgba
(
int index
,
out double offset
,
out double red
,
out double green
,
out double blue
,
out double alpha
)

Parameters

index int

index of the stop to return data for

offset double

return value for the offset of the stop, or null

red double

return value for red component of color, or null

green double

return value for green component of color, or null

blue double

return value for blue component of color, or null

alpha double

return value for alpha component of color, or null

Return Value

Type: cairo.types.Status

cairo.types.Status.Success, or cairo.types.Status.InvalidIndex if index is not valid for the given pattern. If the pattern is not a gradient pattern, cairo.types.Status.PatternTypeMismatch is returned.