~ruther/qmk_firmware

ref: 0943d0a2a0fdd236bbee06fe0db6f872562c25c3 qmk_firmware/keyboards/planck/keymaps/buffet/rgb_matrix_user.inc -rw-r--r-- 425 bytes
0943d0a2 — QMK Bot Merge remote-tracking branch 'origin/master' into develop 1 year, 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
RGB_MATRIX_EFFECT(rainbow_stripe)

#ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS

static HSV rainbow_stripe_math(HSV hsv, uint8_t i, uint8_t time) {
    if (i >= 14 && i <= 21) {
        hsv.h = g_led_config.point[i].x - time;
    } else {
        hsv.v = 0;
    }
    return hsv;
}

bool rainbow_stripe(effect_params_t* params) {
    return effect_runner_i(params, &rainbow_stripe_math);
}

#endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS
Do not follow this link