apply gradient in canvas fill style code example Example: js canvas fill color // canvas context.fillStyle = "Color" ctx.fillStyle = "#FF0000";