html rectangle fill color code example Example: javascript context color context.fillStyle = "Green"; context.fillStyle = "#FF0000";