2017-09-28 9 views

答えて

0

これは私の最終的なコードのために動作しますが、私は方法がわからない:

blocksctx.save(); 
blocksctx.beginPath(); 

blocksctx.rect((rX-29)*10,0,-7000,6000); 
blocksctx.rect((rX+30)*10,0,7000,6000); 

//why same rects twice times??? otherwise it's not working correctly 
blocksctx.rect(0,(rY-29)*10,6000,-7000);blocksctx.rect(0,(rY-29)*10,6000,-7000); 
blocksctx.rect(0,(rY+30)*10,6000,7000);blocksctx.rect(0,(rY+30)*10,6000,7000); 

blocksctx.clip(); 
関連する問題