well considering that your end brightness value is an 8-bit integer, you can use sin() to create a sinus curve, it is all just in the math.
well considering that your end brightness value is an 8-bit integer, you can use sin() to create a sinus curve, it is all just in the math.