canvas setfil color is a function js code example
Example 1: js canvas fill color
// canvas context.fillStyle = "Color"
ctx.fillStyle = "#FF0000";
Example 2: javascript context color
context.fillStyle = "Green";
context.fillStyle = "#FF0000";
// canvas context.fillStyle = "Color"
ctx.fillStyle = "#FF0000";
context.fillStyle = "Green";
context.fillStyle = "#FF0000";