Sorry for the horrible topic title, but I've got a slightly random fun project idea where I want an output that become active if the input is within a given voltage window. In other words, if the input voltage is less than V1, or greater than V2, then the output should be 0V. In between these values the voltage should increase to Vdd up to the midpoint then decrease afterwards. As its a fun project, I'd like to do this without a microcontroller.

The idea eventually would be to chain a bunch of these together so that, i.e. it could for instance control a wave of LEDs fading in and out as the input voltage sweeps. I suppose something similar to the battery level indicator video Dave did but with the voltage ramps and probably quite 2-5A currents

I can do the left hand half of the ramp using a single supply opamp and a voltage divider the reference voltage, however I'm not sure how to cut over to a downward ramp the voltage back down to 0 output above Vmid.
Is this even possible without a uC? I'd like to try and solve this by myself for The Learning, any hints or things to learn about to get me started?