2016-09-26 2 views

답변

0

게임 콘텐츠를 렌더링하기 전에 캔버스를 지우십시오.

// ctx is the 2d context and canvas is the canvas element 
ctx.clearRect(0,0,canvas.width,canvas.height); 

또는 일련의 색상을 원하는 경우에 당신은 당신이 점점 및 하드웨어를 통해 수행 된 산책로를 제거합니다

ctx.fillStyle = "#000000"; // black 
ctx.fillRect(0,0,canvas.width,canvas.height); 

두 가지 방법을 사용할 수 있습니다 때문에 매우 빠르다.

관련 문제