Click here to Skip to main content
15,914,905 members

Comments by Member 16073923 (Top 1 by date)

Member 16073923 23-Apr-24 9:33am View    
thank you for the input,
actually, logic seems perfect...

unfortunately, I am very lost in how should i use 3rd and 4th parameter of arc().
in there I use Math.PI, however how do I calculate the amount to by multiplied by PI in order to make this done?

I have played around and I know real (at least roughly, its not totaly EXACT) values which shall end up:
ctx.arc(centerX, // this is clear
    centerY, // this is clear
    radius, // this is clear
    startAngle, // this is I dont know how to put the calculation to fit (however I played around and shall be around -0,6
    endAngle, // this is I dont know how to put the calculation to fit (however I played around and shall be around 3,7
    true); // i want counterclockwise


can I very kindly ask for an example of this please?

Thank you