简体   繁体   中英

Meaning of Canvas arc function

I am working with canvas arc function.I am unable to figure out the meaning of last two parameters. Please help me with the meaning of parameters.Thank You

ctx.arc(x, y, 70,0, 2 * Math.PI);

That's the end angle, previous parameters say that the arc starts at 0 angle to 2PI.

2PI = 360° so you are drawing a circle.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM