Hello! I was wondering if someone could help me out a little with a gradual fading function. I am essentially trying to create a slow “light saber” or “fill up” effect for a project I am doing. I’ve done a few different functions to achieve this and I feel like the pastebin i posted below is close. I tried a linear increase and it didn’t look right. So after much reading I attempted to create a more exponential increase which is just a little fast. I was sort of hoping for something along the lines of when the first LED (very bottom of the strip) is on max brightness the LED half way up or so would be just starting to light up. If I could multiply each step by anything smaller than 2 (like 1.5) even wrapping the outcome in a Round() function causes the lights to blink when they hit the max brightness. In the end I’m sure what I’m looking for is some kind of logarithmic or exponential function that’s just slower or on less of a curve but I’ve hit the end of my math know how.
Any help is appreciated!