A draw callback. The 2D context it receives is already transformed to device
pixels, so draw in CSS-pixel coordinates (0..width, 0..height) and it
renders crisply at any device-pixel ratio. The context is freshly transformed
and cleared before each invocation.
A draw callback. The 2D context it receives is already transformed to device pixels, so draw in CSS-pixel coordinates (
0..width,0..height) and it renders crisply at any device-pixel ratio. The context is freshly transformed and cleared before each invocation.