VKVG  
Vulkan Vector Graphics

◆ vkvg_rel_curve_to()

void vkvg_rel_curve_to ( VkvgContext  ctx,
float  x1,
float  y1,
float  x2,
float  y2,
float  x3,
float  y3 
)

Adds a cubic Bézier spline to the path from the current point to position (x3, y3) in relative coordinate to the current point, using (x1, y1) and (x2, y2) as the control points relative to the current point. After this call the current point will be (x3, y3).

If there is no current point before the call to vkvg_rel_curve_to() => error:VKVG_STATUS_NO_CURRENT_POINT.

Parameters
ctxThe vkvg context pointer.
x1The X coordinate of the first control point.
y1The Y coordinate of the first control point.
x2The X coordinate of the second control point.
y2The Y coordinate of the second control point.
x3The X coordinate of the end of the curve.
y3The Y coordinate of the end of the curve.