VKVG  
Vulkan Vector Graphics

◆ vkvg_set_source_rgb()

void vkvg_set_source_rgb ( VkvgContext  ctx,
float  r,
float  g,
float  b 
)

Set current source to the solid opaque color defined by the rgb components. The color components are floating point numbers in the range 0 to 1.

The default source pattern is opaque black, (that is, it is equivalent to vkvg_set_source_rgb(ctx,0,0,0)).

Parameters
ctxa valid vkvg Context
rthe red component of the color.
gthe green component of the color.
bthe blue component of the color.
athe alpha component holding the transparency for the current color.