scale method
The
CanvasRenderingContext2D.scale()
method of the Canvas 2D API adds a scaling transformation to the canvas
units
horizontally and/or vertically.
By default, one unit on the canvas is exactly one pixel. A scaling transformation modifies this behavior. For instance, a scaling factor of 0.5 results in a unit size of 0.5 pixels; shapes are thus drawn at half the normal size. Similarly, a scaling factor of 2.0 increases the unit size so that one unit becomes two pixels; shapes are thus drawn at twice the normal size.
Implementation
external void scale(
num x,
num y,
);