VKVG  
Vulkan Vector Graphics

◆ vkvg_pattern_add_color_stop()

vkvg_status_t vkvg_pattern_add_color_stop ( VkvgPattern  pat,
float  offset,
float  r,
float  g,
float  b,
float  a 
)

for each color step in the gradient, call this method and provide an absolute position between 0 and 1 and a color.

Parameters
patthe gradient pattern to add a color step.
offsetlocation along the gradient's control vector, value ranging from zero (start of the gradient) to one.
rthe red component of the color step
gthe green component of the color stop
bthe blue component of the color stop
athe alpha chanel of the color stop