aboutsummaryrefslogtreecommitdiff
path: root/quantum/rgb_matrix_animations/solid_reactive_simple_anim.h
diff options
context:
space:
mode:
authorskullY <skullydazed@gmail.com>2019-08-30 11:19:03 -0700
committerskullydazed <skullydazed@users.noreply.github.com>2019-08-30 15:01:52 -0700
commitb624f32f944acdc59dcb130674c09090c5c404cb (patch)
treebc13adbba137d122d9a2c2fb2fafcbb08ac10e25 /quantum/rgb_matrix_animations/solid_reactive_simple_anim.h
parent61af76a10d00aba185b8338604171de490a13e3b (diff)
downloadqmk_firmware-b624f32f944acdc59dcb130674c09090c5c404cb.tar.gz
qmk_firmware-b624f32f944acdc59dcb130674c09090c5c404cb.zip
clang-format changes
Diffstat (limited to 'quantum/rgb_matrix_animations/solid_reactive_simple_anim.h')
-rw-r--r--quantum/rgb_matrix_animations/solid_reactive_simple_anim.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/quantum/rgb_matrix_animations/solid_reactive_simple_anim.h b/quantum/rgb_matrix_animations/solid_reactive_simple_anim.h
index 77c8ff672..12eb248cc 100644
--- a/quantum/rgb_matrix_animations/solid_reactive_simple_anim.h
+++ b/quantum/rgb_matrix_animations/solid_reactive_simple_anim.h
@@ -1,17 +1,15 @@
1#ifdef RGB_MATRIX_KEYREACTIVE_ENABLED 1#ifdef RGB_MATRIX_KEYREACTIVE_ENABLED
2#ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE 2# ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
3RGB_MATRIX_EFFECT(SOLID_REACTIVE_SIMPLE) 3RGB_MATRIX_EFFECT(SOLID_REACTIVE_SIMPLE)
4#ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS 4# ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS
5 5
6static HSV SOLID_REACTIVE_SIMPLE_math(HSV hsv, uint16_t offset) { 6static HSV SOLID_REACTIVE_SIMPLE_math(HSV hsv, uint16_t offset) {
7 hsv.v = scale8(255 - offset, hsv.v); 7 hsv.v = scale8(255 - offset, hsv.v);
8 return hsv; 8 return hsv;
9} 9}
10 10
11bool SOLID_REACTIVE_SIMPLE(effect_params_t* params) { 11bool SOLID_REACTIVE_SIMPLE(effect_params_t* params) { return effect_runner_reactive(params, &SOLID_REACTIVE_SIMPLE_math); }
12 return effect_runner_reactive(params, &SOLID_REACTIVE_SIMPLE_math);
13}
14 12
15#endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS 13# endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS
16#endif // DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE 14# endif // DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
17#endif // RGB_MATRIX_KEYREACTIVE_ENABLED 15#endif // RGB_MATRIX_KEYREACTIVE_ENABLED