Context.relLineTo
void relLineTo(double dx, double dy)Relative-coordinate version of [cairo.context.Context.lineTo]. Adds a line to the path from the current point to a point that is offset from the current point by (dx, dy) in user space. After this call the current point will be offset by (dx, dy).
Given a current point of (x, y), cairo_rel_line_to(cr, dx, dy) is logically equivalent to cairo_line_to(cr, x + dx, y + dy).
It is an error to call this function with no current point. Doing so will cause cr to shutdown with a status of [cairo.types.Status.NoCurrentPoint].
Parameters
dx | the X offset to the end of the new line |
dy | the Y offset to the end of the new line |