<canvas> tag. Today I’m going to discuss how I did that. I’m basically discussing my learning experience here. I’m not really sure who is going to find this useful, to be honest, but I’m going for it anyway.
So first we obviously have to set up our canvas. I decided to make mine 256x256 pixels, and divide it into eight tiles per side. This makes the tiles 32x32 pixels.
<canvas width="256" height="256" id="can">you don't support canvas</canvas>
This creates a blank 256x256 canvas with a transparent background whose ID is “can.” The text inside the tag is what shows up to people whose browsers don’t support the tag.