canvas colors html code example
Example 1: javascript context color
context.fillStyle = "Green";
context.fillStyle = "#FF0000";
Example 2: change fill color using javascript
<button onclick="circle1.style.fill='yellow';">
context.fillStyle = "Green";
context.fillStyle = "#FF0000";
<button onclick="circle1.style.fill='yellow';">