Sometimes you want to render a visual on the fly, or even animate it. Perhaps the visual is a complex path where the set of x,y coordinates dictate what to render. Or perhaps the visual is a graph ...
- Copyright (C) 2012 David Geary. This code is from the book - Core HTML5 Canvas, published by Prentice-Hall in 2012.