Resize a canvas for drawing at the appropriate resolution for the
current device. This prevents blurry rendering on retina displays.
Note: This function scales the context to match the device's
pixel ratio. When resolution > 1 the width and height
properties on canvas will be scaled too.
Resize a canvas for drawing at the appropriate resolution for the current device. This prevents blurry rendering on retina displays.
Note: This function scales the context to match the device's pixel ratio. When
resolution > 1
thewidth
andheight
properties oncanvas
will be scaled too.