I have a canvas that I want to be maximum 400px x 400px. When I scale down the canvas (e.g. for mobile devices) I'm noticing there is a very slight blur to any text or images I've drawn.
E.g. Resize the result window in this jsfiddle I created, and look very closely at the text: http://jsfiddle.net/6xjz70d5/13/
The code I'm using for resizing the canvas is:
function resize(){
width = window.innerWidth;
if(width<=400){
canvas.style.width = width+'px';
canvas.style.height = width+'px';
}
}
How can I scale down what I've drawn to the canvas without this blur?