JavaScript: The Definitive Guide
25.39. CanvasRenderingContext2D.translate( ): translate the user coordinate system of the canvas
25.39.1. Synopsis
void translate(float dx, float dy) 25.39.1.1. Arguments
25.39.2. 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. 25.39.3. See Also
CanvasRenderingContext2D.rotate( ), CanvasRenderingContext2D.scale( ) |
Категории