0
當改變窗口大小不會填補畫布梯度...調整大小的瀏覽器窗口填充畫布動態
window.addEventListener('resize', resizeCanvas, false);
function resizeCanvas() {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
draw();
}
resizeCanvas();
http://codepen.io/tworog/pen/jVoYrz
請幫助。