Clearing old text from the gradient or image background #2446
-
Hi @Bodmer , Thank you for the awesome library. I am trying to clear the old values printed on the gradient background. I tried it printing the blanks to clear the old values but no success. I also tried to cover the old values with transparent fillrectangle, it does clear it but leaves behind the dark green background. I want to keep the gradient as it is and don't want to reprint it again (printed once in setup()) and new values to be printed on it. How would I be able to achieve this? I have attached my code.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
The only way to do this is to use a sprite with the correct background gradient drawn in it. Here is an example:
The loop() code could be made into a function to drawn and text anywhere in the gradient area. |
Beta Was this translation helpful? Give feedback.
-
Thank you @Bodmer for the quick response. It did work, I made the function. But if I use
Code:
|
Beta Was this translation helpful? Give feedback.
-
Thanks @Bodmer , I managed to use the Middle left datum but the background of the last two texts is still not seem to blend as expected and I am still getting the following warning (Am I supposed to define
Following is my modified Code:
|
Beta Was this translation helpful? Give feedback.
The only way to do this is to use a sprite with the correct background gradient drawn in it. Here is an example: