I am looking to add a fade-out effect to my bullet tracers that are drawn with debug overlay, I was wondering how I could make the alpha decrease to 0 after (n) time. For example, I am looking for a way to make alpha go from 255.f to 0.f over 3 seconds linearly. I have tried lots of different functions and have not been able to make one work. Any help would be appreciated.