I assumed that for each iteration of the while loop, it would define every pixel in the matrix and then update it. But it seems that it first sets the image, and immediately after sets the text. This results in the display showing only the image for a fraction of a second, so the text is "blinking" constantly. Is there any way around this? A way of defining what's going to be displayed on-screen and only afterwards displaying everything at once?
Here's a video of how it looks now. I slowed it down a lot to make it clearer
I'm currently trying to display an image (animated) as a background, and setting text on top of it. My code looks like this:
I assumed that for each iteration of the while loop, it would define every pixel in the matrix and then update it. But it seems that it first sets the image, and immediately after sets the text. This results in the display showing only the image for a fraction of a second, so the text is "blinking" constantly. Is there any way around this? A way of defining what's going to be displayed on-screen and only afterwards displaying everything at once?
Here's a video of how it looks now. I slowed it down a lot to make it clearer
Thanks!