cc.fillStyle = "color"
cc.beginPath()
cc.arc(x, y, radius, 0*Math.PI, 2*Math.PI)
cc.fill()
cc.beginPath()
cc.arc(x, y, radius, 0*Math.PI, 2*Math.PI)
cc.fill()
In regards to the above, please note the following:
cc.fillStyle = "color"
cc.beginPath()
cc.arc(x, y, radius, 0*Math.PI, 2*Math.PI)
cc.fill()
cc.beginPath()
cc.arc(x, y, radius, 0*Math.PI, 2*Math.PI)
cc.fill()
In regards to the above, please note the following:
cc.fillStyle = "color"
cc.beginPath()
cc.arc(x, y, radius, 0*Math.PI, 2*Math.PI)
cc.fill()
cc.beginPath()
cc.arc(x, y, radius, 0*Math.PI, 2*Math.PI)
cc.fill()
In regards to the above, please note the following:
source: MDN Web Docs