Introduction to Canvas – Part II

This article is the second part to Introduction to Canvas, so I recommend reading it if you haven’t yet. In this article, we’ll see a bit more of how canvas works and how to do transforms and blending. Drawing To recap, this is the basic usage of the canvas object: <!-- Create the canvas object, with defined width and height --> <canvas id="container" width="640" height="480"></canvas> // Get the canvas object var canvas = document.querySelector('#container') // Get the rendering context, which we will use to (Read more...)