FontOptions.getCustomPaletteColor

cairo.types.Status getCustomPaletteColor(uint index, out double red, out double green, out double blue, out double alpha)

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

Parameters

indexthe index of the color to get
redreturn location for red component of color
greenreturn location for green component of color
bluereturn location for blue component of color
alphareturn location for alpha component of color

Returns

cairo.types.Status.Success if a custom palette color is

returned, cairo.types.Status.InvalidIndex if no custom color exists for the color index.