Replies: 2 comments 4 replies
-
Hi! I'm not entirely sure what you mean about drawing digits, but you could use transparent images I believe - so one colour is the foreground, one is background, and the transparent area is where you don't want to draw - I'm not convinced that'll be faster than just redrawing the whole area though as the image still has to be iterated over even if pixels aren't drawn. It might be worth doing some simple benchmarking first with one digit to see if it really makes a noticeable performance improvement. On the overlay front, you could use it for clocks, but using an overlay causes the whole screen to be updated each time something changes, so I wouldn't use it for efficiency reasons. Also there can only be one overlay at a time, so if someone swipes down on hidden widgets to display them, the overlay will then display widgets and not what you wanted it to... |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I have a clock (DayMoon) that I want to make some custom shaped numbers to avoid redrawing parts of the screen that the numbers would otherwise overlap. I thought maybe a custom font, but I believe those are by definition rectangular.
I'm thinking that I might be better suited to having a set of [3,10,6,10] (29 total) special polyfills that I use to draw the time numbers, plus maybe 4 "blanking" polygons to clear the previous number.
I am also looking at other clocks to set up the drawinterval and I think I would like to use an overlay for the pointer of my clock.
Are there good examples of using overlay on a clock? I understand that Bangle uses an overlay for widgets, but can I use if for my clock?
Beta Was this translation helpful? Give feedback.
All reactions