I feel like this should be super simple, but it’s really giving me a hard time! I have a circle of 48 WS2812b’s and I wanted to create an animation like so:
- there’s a basline bpm
- hue, saturation, and a target pixel oscillate their values at different ratios of bpm
- the lead pixel is brighter, with fading to a min brightness surrounding it on one or both sides
So, I tried this:
For one, it doesn’t seem to work (the brightest pixels seem to stay in the middle). Two, it seems like there has to be a much better/simpler way to animate a bright “spot” flowing around a circle using CHSV or varying saturation, delta between hues, etc. (I can do a cycling spot by manually setting CRGB values individually).
I’m looking for something like sin8 or beatsin8 that would “spill over” instead of oscillating back and forth. Those animations are quite smooth, but with getting the general bpm to where I want it, I’m setting EVERY_N_MILLISECONDS to run every 100 ms, which I think is probably part of the cause (running at relatively low brightnesses).
Thanks for any comments/suggestions!