VKVG  
Vulkan Vector Graphics

◆ vkvg_set_dash()

void vkvg_set_dash ( VkvgContext  ctx,
const float *  dashes,
uint32_t  num_dashes,
float  offset 
)

Sets the dash pattern to be used by the next vkvg_stroke(). A dash pattern is specified by dashes, an array of positive values. Each value provides the length of alternate "on" and "off" portions of the stroke. The offset specifies an offset into the pattern at which the stroke begins.

Parameters
ctxa valid vkvg Context
dashesa pointer on an array of float values defining alternate lengths of on and off stroke portions.
num_dashesthe length of the dash array.
offsetan offset into the dash pattern at which the stroke should start.