How can I make my white line go perfectly diagonal from point to point of my bottom rectangle?
https://jsfiddle.net/a7rs5qu5/
<canvas id="canvas" width="300" height="300"></canvas>
_canvas = document.getElementById('canvas');
_stage = _canvas.getContext('2d');
_stage.fillStyle = "#00FF00";
_stage.fillRect(0, 0, 300, 200);
var gradient = _stage.createLinearGradient(0, 200, 300, 300);
gradient.addColorStop(0, "blue");
gradient.addColorStop(.5, "white");
gradient.addColorStop(1, "blue");
_stage.fillStyle = gradient;
_stage.fillRect(0, 200, 300, 300);