Web programming: the <canvas> tag
The tutor tells about a recent discovery regarding web graphics.
With web programming, the technology is changing so quickly, it’s worth looking around once and awhile to see what’s new. One place I like to check out is w3schools.com; I’ve been going there over five years to get pointers about HTML, JavaScript, CSS, and other web techniques.
Recently I saw there mention of the canvas element. What interested me is that it talks about drawing graphics using JavaScript, within a <canvas> element.
When I last looked into JavaScript graphics, it mainly involved using a library add-on to the JavaScript language. Within the <canvas> element, however, it seems that the graphics commands are native.
I thought I’d give the <canvas> element a try, so I produced this simple demo. Apparently, ie users may need ≥ie9 to view it.
Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.
Leave a Reply
You must be logged in to post a comment.