HTML5 Canvas Example on Linear Gradients