VKVG  
Vulkan Vector Graphics

◆ vkvg_pattern_get_color_stop_rgba()

vkvg_status_t vkvg_pattern_get_color_stop_rgba ( VkvgPattern  pat,
uint32_t  index,
float *  offset,
float *  r,
float *  g,
float *  b,
float *  a 
)

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 vkvg_pattern_get_color_stop_count().

Parameters
pata valid pattern pointer.
indexindex of the stop to return data for.
offseta valid float pointer to old the stop offset.
ra valid float pointer to old the red component.
ga valid float pointer to old the green component.
ba valid float pointer to old the blue component.
aa valid float pointer to old the alpha component.
Returns
VKVG_STATUS_SUCCESS, VKVG_STATUS_PATTERN_TYPE_MISMATCH if the pattern is not a gradient, VKVG_STATUS_INVALID_INDEX if index is out of bounds.