Make twinkle FX look more like it was in the past#5635
Conversation
WalkthroughRefactored TwinkleFOX brightness calculations to use RGB-only averaging and gamma8-inverted color scaling. Replaced the CRGBW ChangesTwinkleFOX Brightness Scaling
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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. Comment |
There was a problem hiding this comment.
did a quick test, looks good to merge.
The PR seems to make the twinkling a bit brighter on average, compared to 16.0.0. But this is really a "nuance" on my LEDs, nothing like "did not look right previously." But then, i'm also not an expert on the twinkle* effects 🤷
Technicially:
- make sure the auto brightness limiter is not set up too strictly (per-output ABL is sometimes stonger than previously)
- Make sure you have gamma set to 2.2, and "use gamma correction for color" checked
|
@softhack007 I ran some experiments on different gamma gorrection curve approaches in general (less compression at the low end) but they all resulted in some color artefacts in one way or another. Then I took a more in depth look at the twinkling effects and now think your initial suggestion of using inversegamma on brightness for colorpalette should be used, but not in general, just for twinkle base: reason is that not doing it changes the original look of the effect which I have no issue with but then I also do not really use it much so lets give people what they are used to. |
fixes #5622
Summary by CodeRabbit