VKVG  
Vulkan Vector Graphics

◆ vkvg_pattern_create_linear()

VkvgPattern vkvg_pattern_create_linear ( float  x0,
float  y0,
float  x1,
float  y1 
)

Create a new linear gradient along the line defined by (x0, y0) and (x1, y1). Before using the gradient pattern, a number of color stops should be defined using vkvg_pattern_add_color_stop.

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
VkvgPattern the newly created pattern, call vkvg_pattern_destroy when finished with it.