diff options
| author | Max Rumpf <max.rumpf1998@gmail.com> | 2020-07-26 01:00:33 +0200 |
|---|---|---|
| committer | James Young <18669334+noroadsleft@users.noreply.github.com> | 2020-08-29 14:30:02 -0700 |
| commit | 4b74f985ec7b14f5517df4e591f0c36b24f85f5c (patch) | |
| tree | 241f9f678df1485314e15f9e2aa9e59727131ff4 /quantum/rgblight.h | |
| parent | d4be07dad368c57669c88ead6c093c9e23086855 (diff) | |
| download | qmk_firmware-4b74f985ec7b14f5517df4e591f0c36b24f85f5c.tar.gz qmk_firmware-4b74f985ec7b14f5517df4e591f0c36b24f85f5c.zip | |
Tweak the Christmas animation effect to be less harsh on the eyes (#7648)
* Tweak the Christmas animation effect to be less harsh on the eyes
* Further improve the tweaked Christmas animation code
- Use constants where it makes sense
- Instead of complicated math, use a static variable to keep track if it's animating from or to red
- Don't use pow (but a simple macro instead)
- Using floating point math is necessary for the fraction in the cubic bezier function to work
* Update docs for the tweaked Christmas animation effect
* Further improve memory usage
- Don't use floats, but 32 bit ints instead (where needed)
- Replace limits.h with constant
* Fix typo
Diffstat (limited to 'quantum/rgblight.h')
| -rw-r--r-- | quantum/rgblight.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/rgblight.h b/quantum/rgblight.h index 7b2696294..c3a9e94b7 100644 --- a/quantum/rgblight.h +++ b/quantum/rgblight.h | |||
| @@ -142,7 +142,7 @@ enum RGBLIGHT_EFFECT_MODE { | |||
| 142 | # endif | 142 | # endif |
| 143 | 143 | ||
| 144 | # ifndef RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL | 144 | # ifndef RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL |
| 145 | # define RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL 1000 | 145 | # define RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL 40 |
| 146 | # endif | 146 | # endif |
| 147 | 147 | ||
| 148 | # ifndef RGBLIGHT_EFFECT_CHRISTMAS_STEP | 148 | # ifndef RGBLIGHT_EFFECT_CHRISTMAS_STEP |
