find points on a circle — live canvas animation example

motion & easing8+
trig, angles & vectors8-
collision detection11+
numbers in motion7+
geometry & shapes8+
generative showpieces13+
handy helpers7+

Pick a point on a circle, or keep moving around it.

findPointAroundCircle takes a center point, a radius, and a percentage around the circle, then returns the x/y position at that spot.

Use one fixed percentage to find a particular point, like 25% for the bottom of the circle. To rotate an object, increase that percentage every frame and draw the object at the returned x/y point.