How to use the html5 Canvas tag

The html5 canvas is not different from the other html canvases.Such as :

Text

. It has the same build and shape and it looks like this : . When using the html5 canvas tag there are a few attributes you must use like : . Now to import the html5 canvas into js so you can draw shapes and text. The code looks like this :

var c = document.getElementById("canvas");
var ctx = c.getContext("2d");

Now you can learn to draw shapes in the next tutorial see you next time.

 
 

Tag cloud

make build easy simple arduino making homemade solar laser printed portable cheap mini building custom cardboard wooden create super lego turn paracord chocolate your paper light intel