Method Cairo.Context()->rel_line_to()


Method rel_line_to

void rel_line_to(float|int dx, float|int dy)

Description

Relative-coordinate version of line_to(). 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), rel_line_to(dx, dy) is logically equivalent to line_to(x + dx , y + dy).

It is an error to call this function with no current point.

Parameter dx

the X offset to the end of the new line

Parameter dy

the Y offset to the end of the new line