|
◆ 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
-
pat | a valid pattern pointer. |
index | index of the stop to return data for. |
offset | a valid float pointer to old the stop offset. |
r | a valid float pointer to old the red component. |
g | a valid float pointer to old the green component. |
b | a valid float pointer to old the blue component. |
a | a 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.
|