rect color js code example Example: javascript context color context.fillStyle = "Green"; context.fillStyle = "#FF0000";