canvas context fillStyle effect previos code example
Example 1: ctx.fillstyle
ctx.fillStyle = color;
ctx.fillStyle = gradient;
ctx.fillStyle = pattern;
Example 2: fillstyle
context.fillStyle = "Green";
context.fillStyle = "#FF0000";
ctx.fillStyle = color;
ctx.fillStyle = gradient;
ctx.fillStyle = pattern;
context.fillStyle = "Green";
context.fillStyle = "#FF0000";