
Very smooth radial gradients in the canvas, in an easy to use JavaScript class. Subtle gradients across a wide area can be produced without noticeable banding.
A new HTML5 Canvas and JavaScript tutorial. We extend our earlier simple example of dragging objects in the canvas with the mouse. Here, we use a timer-based animation technique with smooth motion, show how to change the layering order of the dislpay objects, and fill the objects with a nice gradient.