javascript canvas how to change color of rectangle code example Example: javascript context color context.fillStyle = "Green"; context.fillStyle = "#FF0000";