How to implement a 24 hour dial? #391
-
Hi, Watches usually have a 12 hour dial, i.e. the hour hand (pointer) completes one rotation every 12 hours (so two rotations for each day). I want to make a watchface that implements a 24 hour dial, i.e the hour hand (pointer) only makes one rotation per day. Is this possible? I was looking at the watch face API I think maybe I can use the IMG_POINTER widget to calculate the image rotation myself, but I'm not sure how to hook this up with the current time so that the widget updates in real time (except maybe deleting and recreating the widget every second, which seems inefficient) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@ashishbhate You can use setProperty modifier. No need to recreate the widget. Use Time library to get the current time, then map it to degrees (360/24). |
Beta Was this translation helpful? Give feedback.
@ashishbhate You can use setProperty modifier. No need to recreate the widget. Use Time library to get the current time, then map it to degrees (360/24).