Package: cairo

Function cairo:translate

Lambda List

cairo:translate (cr tx ty)

Arguments

cr -- a cairo:context-t instance
tx -- a number coerced to a double float for the amount to translate in the x direction
ty -- a number coerced to a double float for the amount to translate in the y direction

Details

Modifies the current transformation matrix (CTM) by translating the user-space origin by (tx,ty). This offset is interpreted as a user-space coordinate according to the CTM in place before the new call to the cairo:translate function. In other words, the translation of the user-space origin takes place after any existing transformation.
 

See also

2025-1-29