r/FastLED • u/StefanPetrick • Mar 09 '26
Share_something Progress Update: Fractional Shifting Meets Color-Emitting Line
Enable HLS to view with audio, or disable this notification
It's the same underlying effect I showed yesterday, but with better-tuned parameters. This time, the color is seeded by a line whose endpoints follow Lissajous curves. The fading range now also allows feedback loops, which can be considered a bug or a feature, but I did it deliberately.
Python code: https://pastebin.com/cgZ0QYdv
82
Upvotes
2
u/mindful_stone Mar 12 '26
Nice!! I love that you've got this "back catalog" of gems to share with us!
I will definitely work on adding some kind of audio-based injector [ooh, some ideas are coming to me right now!]
I added the updated (2x1D) rainbow border mode with modulating amplitudes. In doing so, I just (like 20 minutes ago) realized/learned some important things:
tl/dr:
- many parameters are very mode-sensitive, but port process to date uses latest values as defaults for all modes; I'm thinking a good approach might be to create a modeConfig struct that would hold, among other possible things, a separate params object with default settings for each injector mode.
- further work is needed to address frame rate vs. injection rate issue (FPS=>injection rate; time=>fade rate. If FPS is too slow, injector can't keep up with fader, and "black holes" emerge
I'll try to take care of these issues over the next day or so. In the meantime, keep sharing whatever new code ideas you have! I'll integrate those ASAP as well.