VKVG  
Vulkan Vector Graphics

◆ vkvg_pattern_create_radial()

VkvgPattern vkvg_pattern_create_radial ( float  cx0,
float  cy0,
float  radius0,
float  cx1,
float  cy1,
float  radius1 
)

Creates a new radial gradient between the two circles defined by (cx0, cy0, radius0) and (cx1, cy1, radius1). Before using the gradient pattern, a number of color stops should be defined using vkvg_pattern_add_color_stop.

Parameters
cx0x coordinate for the center of the start circle, the inner circle. Must stand inside outer circle.
cy0y coordinate for the center of the start circle, the inner circle. Must stand inside outer circle.
radius0radius for the center of the start circle, the inner circle. Can't be greater than radius1
cx1x coordinate for the center of the end circle, the outer circle.
cy1y coordinate for the center of the end circle, the outer circle.
radius1radius for the center of the end circle, the outer circle.
Returns
VkvgPattern the newly created pattern to be disposed when finished by calling vkvg_pattern_destroy.