Name
CRC.translate() — adds a translation to the current transform
Synopsis
void translate(floatdx
, floatdy
)
Arguments
dx, dy
The amounts to translate in the X and Y dimensions
Description
translate()
adds horizontal and vertical
offsets to the transformation matrix of the canvas. The arguments
dx
and dy
are
added to all points in any subsequently defined paths.
See Also
Get Canvas Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.