FontOptions.getCustomPaletteColor

Gets the custom palette color for the color index for the font options object.

class FontOptions
getCustomPaletteColor
(
uint index
,
out double red
,
out double green
,
out double blue
,
out double alpha
)

Parameters

index uint

the index of the color to get

red double

return location for red component of color

green double

return location for green component of color

blue double

return location for blue component of color

alpha double

return location for alpha component of color

Return Value

Type: cairo.types.Status

cairo.types.Status.Success if a custom palette color is returned, cairo.types.Status.InvalidIndex if no custom color exists for the color index.