Switching rgb_config_t to use HSV struct

This commit is contained in:
Ryan Caltabiano 2019-05-19 23:12:29 -05:00 committed by Drashna Jaelre
parent e717dcaa09
commit cf215487ba
42 changed files with 126 additions and 118 deletions

View file

@ -6,7 +6,7 @@ RGB_MATRIX_EFFECT(ALPHAS_MODS)
bool ALPHAS_MODS(effect_params_t* params) {
RGB_MATRIX_USE_LIMITS(led_min, led_max);
HSV hsv = { rgb_matrix_config.hue, rgb_matrix_config.sat, rgb_matrix_config.val };
HSV hsv = rgb_matrix_config.hsv;
RGB rgb1 = hsv_to_rgb(hsv);
hsv.h += rgb_matrix_config.speed;
RGB rgb2 = hsv_to_rgb(hsv);