HTML Canvas: How to draw a flipped/mirrored image?

  1. You can do this by transforming the context with myContext.scale(-1,1) before drawing your image, however

  2. This is going to slow down your game. It’s a better idea to have a separate, reversed sprite.

Leave a Comment