Name
ccontext:RelLineTo -- add relative line
Synopsis
ccontext:RelLineTo(dx, dy)
Function
Relative-coordinate version of ccontext: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), calling this function with dx, dy is logically equivalent to calling ccontext:LineTo() with x+dx and y+dy.

It is an error to call this function with no current point. Doing so will cause the context to shutdown with a status of #CAIRO_STATUS_NO_CURRENT_POINT.

Inputs
dx
the X offset to the end of the new line
dy
the Y offset to the end of the new line

Show TOC