I already looked in these thread 1 and thread 2, but I still got the flickering when the mouse move.
My code:
function draw(){
var img = new Image();
img.src = "/Sample/Icons/sample.png";
img.onload = function () {
ctx.drawImage(img, X1, Y1, 25, 25);
};
}
Hopefully someone can give me an idea or solution on how to solve my flickering problem.