Package: cairo

Function cairo:rel-move-to

Lambda List

cairo:rel-move-to (cr dx dy)

Arguments

cr -- a cairo:context-t instance
dx -- a number for the x offset
dy -- a number for the y offset

Details

Begin a new sub-path. After this call the current point will offset by (dx,dy).

Given a current point of (x,y),
(cairo:rel-move-to cr dx dy)  
is logically equivalent to
(cairo:move-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 :no-current-point status.

Notes

The numbers for the arguments are coerced to double floats before being passed to the foreign C function.
 

See also

2025-1-14