Create dynamic diagonal gradient using javascript for html5 canvas?
<p>Is there a way to create a diagonal gradient doing something like this?  My attempts only give me a vertical or horizontal </p>

<pre><code> _canvas = document.getElementById('canvas');
 _stage = _canvas.getContext('2d');

 var gradient = _stage.createLinearGradient(0, 0, buttonEndX, buttonEndY);
 gradient.addColorStop(0, "white");
 gradient.addColorStop(1, "blue");
</code></pre>