Method Cairo.Context()->line_to()


Method line_to

void line_to(float|int x, float|int y)

Description

Adds a line to the path from the current point to position (x, y) in user-space coordinates. After this call the current point will be (x, y).

If there is no current point before the call to line_to() this function will behave as move_to(x, y).

Parameter x

the X coordinate of the end of the new line

Parameter y

the Y coordinate of the end of the new line