diff options
| author | Emil Muratov <gpm@hotplug.ru> | 2020-12-02 22:39:03 +0300 |
|---|---|---|
| committer | Emil Muratov <gpm@hotplug.ru> | 2020-12-02 22:39:03 +0300 |
| commit | 2d38f96722486c8f65f61ada8ce8cf8563a7f974 (patch) | |
| tree | d64bbfad2f147bff280b1b0e2f72d4930d10c163 /examples/AuroraDemo/PatternInfinity.h | |
| parent | ba589028433008a4bb6d71275c63a8424a0fa5d4 (diff) | |
some more fixes for Aurora effects
Signed-off-by: Emil Muratov <gpm@hotplug.ru>
Diffstat (limited to 'examples/AuroraDemo/PatternInfinity.h')
| -rw-r--r-- | examples/AuroraDemo/PatternInfinity.h | 7 |
1 files changed, 5 insertions, 2 deletions
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; } }; |
