var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
var grd = ctx.createRadialGradient(75, 50, 5, 90, 60, 100);grd.addColorStop(0, "red");
grd.addColorStop(1, "white");
Fill with gradientctx.fillStyle = grd;ctx.fillRect(10, 10, 150, 80);