Professional Documents
Culture Documents
DOCTYPE html>
<html>
<body>
<script>
var c = document.getElementById("myCanvas");
// Create gradient
grd.addColorStop(0,"red");
grd.addColorStop(1,"white");
ctx.fillStyle = grd;
ctx.fillRect(10,10,150,80);
</script>
</body>
</html>