Add notifyBlinkPxl

A simple animation to "blink" an image
This commit is contained in:
David Todd (c0de) 2018-07-24 21:20:25 -05:00
parent ba7598c750
commit 777464a735

View File

@ -156,6 +156,21 @@ void notifyScrollPxl(int pxl[TOTALPXLS][3], int dlytime, int loops=0) {
} }
} }
/*
* notifyBlinkPxl, flash a Pixol on screen repeatedly
* args:
* - pxl[256][3] - Standard Pixol image, displayed all at once
* - dlytime - The amount of time (in ms) to keep the image on the display
* - loops (optional) - The total amount of times this should blink
* - color (optional) - Whether or not to set the active pixel's color to its stored value
*/
void notifyBlinkPxl(int pxl[256][3], int dlytime, int loops=0, bool color=false) {
for (int i = 0; i <= loops; i++) {
showPxl(pxl, dlytime, color);
showPxl(darkness, dlytime, color);
}
}
// "Animation" or picture transition functions // "Animation" or picture transition functions
/* /*