VKVG  
Vulkan Vector Graphics

◆ vkvg_pattern_get_linear_points()

vkvg_status_t vkvg_pattern_get_linear_points ( VkvgPattern  pat,
float *  x0,
float *  y0,
float *  x1,
float *  y1 
)

If supplied pattern is not a linear gradient, VKVG_STATUS_PATTERN_TYPE_MISMATCH is set for pattern.

Parameters
x0x coordinate of the start point
y0y coordinate of the start point
x1x coordinate of the end point
y1y coordinate of the end point
Returns
VKVG_STATUS_SUCCESS, or VKVG_STATUS_PATTERN_TYPE_MISMATCH if the pattern is not a linear gradient.