I have a and canvas, which is drawn using:
context.lineWidth = 1; context.strokeStyle = \"gray\
in order to get rid of the blurryness you need to set the size of the canvas in two manners: first withcanvas.width = yourwidthhere; and canvas.height = yourheighthere; second by setting the css attribute either by js or a stylesheet
canvas.width = yourwidthhere;
canvas.height = yourheighthere;