Fixed "Flow Stripe" FX and added palette support#4723
Conversation
WalkthroughThe "Flow Stripe" effect function in the FX.cpp file was updated to correct the calculation of a variable for color scaling and to change the method of setting pixel colors from a direct HSV value to a palette-based lookup. The effect's metadata string was also updated to reflect palette usage. Changes
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code Graph Analysis (1)wled00/FX.cpp (2)
⏰ Context from checks skipped due to timeout of 90000ms (19)
🔇 Additional comments (4)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
the effect has been broken ever since it was added in 0.14.
The original effect used a float, the ported effect does not. The division therefore always results in 0 or 1 and thus not displaying any color spectrum but the same color for all LEDs.
Multiplying before the division fixes the effect back to its original intended look.
Added palette support while I was at it.
Summary by CodeRabbit
Bug Fixes
Enhancements