I’m trying to find the proportion of numbers. I built a circular range slider using Jcanvas.
The angle total is 240 degree. I would like to keep a number between this value.
Example: 5,000 proportion of 240. Basically, when I slide the handle toward the 240 mark it will equal 5,000.
5000 will be the 240 mark, anywhere in between the number will adjust saying 120 mark will equal 2500.
I hope I’m explaining this clearly. Trying to expand my Jquery math knowledge.
Thanks…
Each increment in your
slidershould add5000/240to the actual value.Thus:
In pseudocode: