Canvas has inconsistent pixel grid across browsers when using drawImage()
问题 I recognize that Canvas drawImage is inexplicably offset by 1 Pixel is a very similar issue, but I was already applying the advice given in that question's answer before I even came across this problem. I'm implementing a sprite sheet system for an HTML5-based game. Individual frames are defined simply: frame = new AnimationFrame(img, x, y, w, h); Inside the AnimationFrame constructor, all of the numeric parameters are truncated to integers. Then when I go to draw it on the canvas, I use what