js fillRect with differernt color code example
Example 1: js canvas fill color
// canvas context.fillStyle = "Color"
ctx.fillStyle = "#FF0000";
Example 2: ctx.fillstyle
ctx.fillStyle = color;
ctx.fillStyle = gradient;
ctx.fillStyle = pattern;
// canvas context.fillStyle = "Color"
ctx.fillStyle = "#FF0000";
ctx.fillStyle = color;
ctx.fillStyle = gradient;
ctx.fillStyle = pattern;