set stroke color in html canvas code example Example: javascript context color context.fillStyle = "Green"; context.fillStyle = "#FF0000";