canvas { image-rendering: crisp-edges; image-rendering: pixelated; } /* JavaScript */ /* context.imageSmoothingEnabled = false; */