You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
587 B

  1. #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED
  2. # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
  3. RGB_MATRIX_EFFECT(SOLID_REACTIVE_SIMPLE)
  4. # ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS
  5. static HSV SOLID_REACTIVE_SIMPLE_math(HSV hsv, uint16_t offset) {
  6. hsv.v = scale8(255 - offset, hsv.v);
  7. return hsv;
  8. }
  9. bool SOLID_REACTIVE_SIMPLE(effect_params_t* params) { return effect_runner_reactive(params, &SOLID_REACTIVE_SIMPLE_math); }
  10. # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS
  11. # endif // ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
  12. #endif // RGB_MATRIX_KEYREACTIVE_ENABLED