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