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