Package: cairo

Function cairo-rel-line-to

Lambda List

cairo-rel-line-to (cr dx dy)

Arguments

cr -- a cairo-t context
dx -- a double float x offset to the end of the new line
dy -- a double float y offset to the end of the new line

Details

Relative-coordinate version of the cairo-line-to function. 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 :no-current-point.
 

See also

2021-12-12