html5 canvas spin wheel not stopping at winning color
i am trying to create a spinning wheel using canvas and html5. its working but my end goal is to try to point the arrow to the exact winning color. so for example if the winning color is the green one, the wheel should turn and stop until the outside arrow faces the winning color. i have attached the code below if someone can or is willing to help.