Speedometer

60 50 40 30 20 10 0 70 80 90 100 110 120
60

Objective: Create a speedometer that randomly changes speed on click of a button.

Problem: We want the speedometer needle to be animated, meaning that it moves to the new speed instead of snapping directly to it.

Solution: Use timers to gradually move the needle until it reaches the random destination.