function redrawCanvas() {
  console.log('re-drawing canvas');
  canvas.width = innerWidth;
  canvas.height = innerHeight;

  init();
}
// once window stops re-sizing after delay re-paint canvas
once window stops re-sizing after delay re-paint canvas
once window stops re - sizing after delay re - paint canvas
function redrawCanvas() {
  console.log('re-drawing canvas');
  canvas.width = innerWidth;
  canvas.height = innerHeight;
  init();
}
function redrawCanvas ( ) { console . log ( 're-drawing canvas' ) ; canvas . width = innerWidth ; canvas . height = innerHeight ; init ( ) ; }
once window stops re-sizing after delay re-paint canvas
once window stops re - sizing after delay re - paint canvas