Respond to window resize events to scale the canvas