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.

14 lines
497 B

  1. #ifndef DISABLE_RGB_MATRIX_BAND_VAL
  2. RGB_MATRIX_EFFECT(BAND_VAL)
  3. # ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS
  4. static HSV BAND_VAL_math(HSV hsv, uint8_t i, uint8_t time) {
  5. int16_t v = hsv.v - abs(scale8(g_led_config.point[i].x, 228) + 28 - time) * 8;
  6. hsv.v = scale8(v < 0 ? 0 : v, hsv.v);
  7. return hsv;
  8. }
  9. bool BAND_VAL(effect_params_t* params) { return effect_runner_i(params, &BAND_VAL_math); }
  10. # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS
  11. #endif // DISABLE_RGB_MATRIX_BAND_VAL