diff options
| author | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2020-12-02 20:21:37 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-02 20:21:37 +0000 |
| commit | 32f5cbab7333b2be9a79a9697f7b6540868932bb (patch) | |
| tree | d64bbfad2f147bff280b1b0e2f72d4930d10c163 /examples/AuroraDemo/PatternInfinity.h | |
| parent | adaf7c80813017b5592bcdc0ac5ba720ebdf6e15 (diff) | |
| parent | 2d38f96722486c8f65f61ada8ce8cf8563a7f974 (diff) | |
Merge pull request #42 from vortigont/featured
Aurora demos refactored to fit 256+ pixels wide matrixes
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; } }; |
