mirror of
https://github.com/alopexc0de/pixopixel.git
synced 2024-12-25 22:42:40 +00:00
Add notifyBlinkPxl
A simple animation to "blink" an image
This commit is contained in:
parent
ba7598c750
commit
777464a735
@ -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
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user