I'm unaware of any lights which do this - seems rather a limited market opportunity vs merely having different modes you can choose depending on circumstance.
Be interesting if someone does know of a light in mind which does this.
Closest would be an ANT+ compatible rear light such as the Bontrager Ion Flare RT and change the mode from your compatible cycling computer (Garmin Edge, others). Seems there's still some software bugs so it's not perfect.