canvas js rectangle fill color code example Example: js canvas fill color // canvas context.fillStyle = "Color" ctx.fillStyle = "#FF0000";