diff options
| author | mrcodetastic <12006953+mrcodetastic@users.noreply.github.com> | 2024-07-28 23:40:30 +0100 |
|---|---|---|
| committer | mrcodetastic <12006953+mrcodetastic@users.noreply.github.com> | 2024-07-28 23:40:30 +0100 |
| commit | 3960bbed887fc6211ced5abcf8ef00ec4cbd0346 (patch) | |
| tree | 8c9c2a51247a44f5b63f6cf04168a3e3944087ba /examples/AuroraDemo/PatternWave.h | |
| parent | f2634319ab7ebfe22fc6d2ebabcdd27879f3667e (diff) | |
updates
Diffstat (limited to 'examples/AuroraDemo/PatternWave.h')
| -rw-r--r-- | examples/AuroraDemo/PatternWave.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/AuroraDemo/PatternWave.h b/examples/AuroraDemo/PatternWave.h index 90e7448..4dcc103 100644 --- a/examples/AuroraDemo/PatternWave.h +++ b/examples/AuroraDemo/PatternWave.h @@ -60,36 +60,36 @@ public: case 0: for (int x = 0; x < VPANEL_W; x++) { n = quadwave8(x * 2 + theta) / scale; - effects.drawBackgroundFastLEDPixelCRGB(x, n, effects.ColorFromCurrentPalette(x + hue)); + effects.setPixel(x, n, effects.ColorFromCurrentPalette(x + hue)); if (waveCount == 2) - effects.drawBackgroundFastLEDPixelCRGB(x, maxY - n, effects.ColorFromCurrentPalette(x + hue)); + effects.setPixel(x, maxY - n, effects.ColorFromCurrentPalette(x + hue)); } break; case 1: for (int y = 0; y < VPANEL_H; y++) { n = quadwave8(y * 2 + theta) / scale; - effects.drawBackgroundFastLEDPixelCRGB(n, y, effects.ColorFromCurrentPalette(y + hue)); + effects.setPixel(n, y, effects.ColorFromCurrentPalette(y + hue)); if (waveCount == 2) - effects.drawBackgroundFastLEDPixelCRGB(maxX - n, y, effects.ColorFromCurrentPalette(y + hue)); + effects.setPixel(maxX - n, y, effects.ColorFromCurrentPalette(y + hue)); } break; case 2: for (int x = 0; x < VPANEL_W; x++) { n = quadwave8(x * 2 - theta) / scale; - effects.drawBackgroundFastLEDPixelCRGB(x, n, effects.ColorFromCurrentPalette(x + hue)); + effects.setPixel(x, n, effects.ColorFromCurrentPalette(x + hue)); if (waveCount == 2) - effects.drawBackgroundFastLEDPixelCRGB(x, maxY - n, effects.ColorFromCurrentPalette(x + hue)); + effects.setPixel(x, maxY - n, effects.ColorFromCurrentPalette(x + hue)); } break; case 3: for (int y = 0; y < VPANEL_H; y++) { n = quadwave8(y * 2 - theta) / scale; - effects.drawBackgroundFastLEDPixelCRGB(n, y, effects.ColorFromCurrentPalette(y + hue)); + effects.setPixel(n, y, effects.ColorFromCurrentPalette(y + hue)); if (waveCount == 2) - effects.drawBackgroundFastLEDPixelCRGB(maxX - n, y, effects.ColorFromCurrentPalette(y + hue)); + effects.setPixel(maxX - n, y, effects.ColorFromCurrentPalette(y + hue)); } break; } |
