From 2d38f96722486c8f65f61ada8ce8cf8563a7f974 Mon Sep 17 00:00:00 2001 From: Emil Muratov Date: Wed, 2 Dec 2020 22:39:03 +0300 Subject: some more fixes for Aurora effects Signed-off-by: Emil Muratov --- examples/AuroraDemo/PatternInfinity.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'examples/AuroraDemo/PatternInfinity.h') diff --git a/examples/AuroraDemo/PatternInfinity.h b/examples/AuroraDemo/PatternInfinity.h index 92f6b9c..0c068ad 100644 --- a/examples/AuroraDemo/PatternInfinity.h +++ b/examples/AuroraDemo/PatternInfinity.h @@ -31,7 +31,9 @@ public: unsigned int drawFrame() { // dim all pixels on the display slightly // to 250/255 (98%) of their current brightness - effects.DimAll(250); effects.ShowFrame(); + blur2d(effects.leds, MATRIX_WIDTH > 255 ? 255 : MATRIX_WIDTH, MATRIX_HEIGHT > 255 ? 255 : MATRIX_HEIGHT, 250); + // effects.DimAll(250); effects.ShowFrame(); + // the Effects class has some sample oscillators // that move from 0 to 255 at different speeds @@ -51,7 +53,8 @@ public: // draw a pixel at x,y using a color from the current palette effects.Pixel(x, y, hue); - return 15; + effects.ShowFrame(); + return 30; } }; -- cgit v1.3.1