How can we stop this HTML5 Canvas wheel at exact points after spin?
问题 In the Below code link HTML5 canvas spin wheel game. I want to stop this canvas at a user-defined position as if the user wants to stop always at 200 texts or 100 texts like that. Currently, it is stopping at random points I want to control where to stop as in if I want to stop circle at 100 or 200 or 0 whenever I want. How can we achieve that??? Can anyone Help!!!!! Attached Codepen link also. Html file <div> <canvas class="spin-wheel" id="canvas" width="300" height="300"></canvas> </div> JS