notes/Radial Gradient Fill-W9fu2xv1.html
<!DOCTYPE HTML>
<html>
  <head>
  </head>
  <body>
    <canvas id="myCanvas" width="600" height="300"></canvas>
    <script>
      var canvas = document.getElementById('myCanvas');
      var context = canvas.getContext('2d');

        context.rect(0,0,canvas.width, canvas.height);

        var grd = context.createRadialGradient(50, 50, 50, 50, 50, 250);

        grd.addColorStop(0, 'blue');
        grd.addColorStop(0.2, 'red');
        grd.addColorStop(0.8, 'blue');
        grd.addColorStop(1, 'green');
        context.fillStyle=grd;
        context.fill();
    </script>
  </body>
</html>

syntax highlighted by Code2HTML, v. 0.9.1