JX 1 week ago
committed by GitHub
parent
commit
3ac50bb55e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      quantum/rgb_matrix/animations/pixel_fractal_anim.h

+ 6
- 0
quantum/rgb_matrix/animations/pixel_fractal_anim.h View File

@ -28,8 +28,14 @@ static bool PIXEL_FRACTAL(effect_params_t* params) {
if (g_rgb_timer > wait_timer) {
RGB rgb = rgb_matrix_hsv_to_rgb(rgb_matrix_config.hsv);
for (uint8_t h = 0; h < MATRIX_ROWS; ++h) {
if (g_led_config.matrix_co[h][MID_COL - 1] == NO_LED || g_led_config.matrix_co[h][MATRIX_COLS - MID_COL] == NO_LED) {
continue;
}
// Light and copy columns outward
for (uint8_t l = 0; l < MID_COL - 1; ++l) {
if (g_led_config.matrix_co[h][l] == NO_LED || g_led_config.matrix_co[h][MATRIX_COLS - 1 - l] == NO_LED) {
continue;
}
if (led[h][l]) {
rgb_matrix_set_color(g_led_config.matrix_co[h][l], rgb.r, rgb.g, rgb.b);
rgb_matrix_set_color(g_led_config.matrix_co[h][MATRIX_COLS - 1 - l], rgb.r, rgb.g, rgb.b);


Loading…
Cancel
Save