This example shows that straight horizontal (and vertical) lines appear crisp when their lineWidth is an even number but not when it is an odd number. Therefore take care to only define them with a lineWidth that is an even number. See "A lineWidth example" under https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Canvas_tutorial/Applying_styles_and_colors.