h = c.height = window.innerHeight; ctx.fillStyle = 'black'; ctx.fillRect( 0, 0, w, h ); opts.cx = w / 2; opts.cy = h / 2; dieX = w / 2 / opts.len; dieY = h / 2 / opts.len; } ); pt>