Snippet The following snippet shows how to create a div called as canvas (can be any name) and then in javascript we get the handle to canvas by calling document.getElementById method. Finally we get the 2D context from the same. Once the context is obtained, using javascript commands we can draw on the canvas. <html]] […]
↧