From 3960bbed887fc6211ced5abcf8ef00ec4cbd0346 Mon Sep 17 00:00:00 2001 From: mrcodetastic <12006953+mrcodetastic@users.noreply.github.com> Date: Sun, 28 Jul 2024 23:40:30 +0100 Subject: updates --- examples/AuroraDemo/PatternInvaders.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'examples/AuroraDemo/PatternInvaders.h') diff --git a/examples/AuroraDemo/PatternInvaders.h b/examples/AuroraDemo/PatternInvaders.h index cb76c34..5dea111 100644 --- a/examples/AuroraDemo/PatternInvaders.h +++ b/examples/AuroraDemo/PatternInvaders.h @@ -48,10 +48,10 @@ class PatternInvadersSmall : public Drawable { if (random(0, 2) == 1) color = color1; - effects.drawBackgroundFastLEDPixelCRGB(x + i, y + j, color); + effects.setPixel(x + i, y + j, color); if (i < 2) - effects.drawBackgroundFastLEDPixelCRGB(x + (4 - i), y + j, color); + effects.setPixel(x + (4 - i), y + j, color); } } @@ -92,10 +92,10 @@ class PatternInvadersMedium : public Drawable { if (random(0, 2) == 1) color = color1; - effects.drawBackgroundFastLEDPixelCRGB(x + (i * 2), y + (j * 2), color); + effects.setPixel(x + (i * 2), y + (j * 2), color); if (i < 2) - effects.drawBackgroundFastLEDPixelCRGB(x + (8 - i * 2), y + (j * 2), color); + effects.setPixel(x + (8 - i * 2), y + (j * 2), color); } } @@ -138,10 +138,10 @@ class PatternInvadersLarge : public Drawable { color = color1; } - effects.drawBackgroundFastLEDPixelCRGB(1 + x * 6, 1 + y * 6, color); + effects.setPixel(1 + x * 6, 1 + y * 6, color); if (x < 2) - effects.drawBackgroundFastLEDPixelCRGB(1 + (4 - x) * 6, 1 + y * 6, color); + effects.setPixel(1 + (4 - x) * 6, 1 + y * 6, color); } } -- cgit v1.3.1