Learn Create Your Own Split Screen

Next Page

The reason why rotation isn't doing as we might expect is that the HTML canvas rotates everything we then do around the zero point of the canvas.

What we probably want is for the image to rotate around its own centre.

Click PREV and try the arrow keys again, and assure yourself it really is rotating around the top left corner.