2017-09-28 2 views

Répondre

0

Cela fonctionne pour mon code final, mais je ne sais pas comment:

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();