Need help with drawing clock #3067
Unanswered
xkrsakj
asked this question in
Q&A - Sprites
Replies: 1 comment 1 reply
-
Have you looked at this example: https://github.com/Bodmer/TFT_eSPI/tree/master/examples/Smooth%20Graphics/Anti-aliased_Clock |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm trying to recreate the swiss railway style clock using your library, but can't quite get it working.
So I'm drawing the face sprite once at the start and then I redraw the hand sprite every frame. I know I can just rotate the whole sprite using pushRotated, but I want everything to be antialiased and as far as I know and tried it can't be done this way. Also I have a weird problem that either the black background is overlapping the face or the hand sprite isn't being redrawn correctly and is leaving trails.
Here's my code:
So I'm wondering what is the best and most lightweight way to solve this so that the hand is antialiased?
Btw I'm using the GC9A01 display with 240x240 resolution if it helps.
Every answer would be appreciated, thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions