diff options
| author | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2020-12-08 07:35:47 +0000 |
|---|---|---|
| committer | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2020-12-08 07:35:47 +0000 |
| commit | 09dabb2e351bb57516233792698557f3aab042f7 (patch) | |
| tree | 1a1b981c81676fa33b07e1527cd8a4fadd9f02ab /examples/GraphicsLayer/GraphicsLayer.ino | |
| parent | 82326230eb5d9bffabf81b88cd65c059b61a6921 (diff) | |
GraphicsLayer minor tweaks
Diffstat (limited to 'examples/GraphicsLayer/GraphicsLayer.ino')
| -rw-r--r-- | examples/GraphicsLayer/GraphicsLayer.ino | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/examples/GraphicsLayer/GraphicsLayer.ino b/examples/GraphicsLayer/GraphicsLayer.ino index fbc33ad..2c15d18 100644 --- a/examples/GraphicsLayer/GraphicsLayer.ino +++ b/examples/GraphicsLayer/GraphicsLayer.ino @@ -86,6 +86,7 @@ void setup() { } +int LayerCompositor_mode = 0; void loop() { for (int x = 0; x < dma_display.width(); x++) { @@ -119,8 +120,28 @@ void loop() { * Step 3: Merge foreground and background layers and send to the matrix panel! * Use our special sauce LayerCompositor functions */ - LayerCompositor::Siloette(dma_display, bgLayer, textLayer); - //LayerCompositor::Stack(dma_display, bgLayer, textLayer); + switch (LayerCompositor_mode) + { + case 0: + LayerCompositor::Siloette(dma_display, bgLayer, textLayer); + break; + + case 1: + LayerCompositor::Stack(dma_display, bgLayer, textLayer); + break; + + case 2: + LayerCompositor::Blend(dma_display, bgLayer, textLayer); + break; + } + + EVERY_N_SECONDS(5) { // FastLED Macro + LayerCompositor_mode++; + dma_display.clearScreen(); + if (LayerCompositor_mode > 2) LayerCompositor_mode = 0; + } + + // // LayerCompositor::Blend(dma_display, bgLayer, textLayer, 127); } // end loop |
