Aliased / pixelated rasterization in HTML Canvas

| Is there any way to force 2d canvas commands to draw pixelated (without anti-aliasing) in a way that's computationally efficient? E.g. I want to say:
And I want that to draw a line that is pixelated e.g.: [link] [留言] |
原文:https://www.a8q9.cn/en/article/en-aliased-pixelated-rasterization-in-html-canvas.html