• Administrator
  •  
    Support Ukraine
    If you experience any problems with the forum (it is not visible, there is no way to post messages, or some functionality does not work), please let us know. If you have problems with registration or you did not receive confirmation letter, let us know and we will activate your account manually.
    If you get an "The submitted form was invalid. Try submitting again" error, delete cookies, then try again.
     

Code for skeuomorphic analog hands

This forum is designed to discuss existing tools for creating watch faces.

Moderators: asoo, lvpokka, Internal error, Watchmens

Forum rules
All communication in this branch should only be in English.
Post Reply
User avatar
Beartoe
WF maker
Posts: 7
Joined: 24 Jan 2020, 23:58
Location: USA
Contact:

Code for skeuomorphic analog hands

Post by Beartoe »

I am wishing to build some highly realistic watch faces. One of the things that bothers me about many such faces is the fact that hands can't be made to dynamically cast shadows based on their angle-position. The technique for doing this should be straightforward: set the .src property of the hand widget (normal_analog_clock_pro_second_pointer_img, in the case of second hand) based on its current angle. If I could "inject" a few lines of code into the standard "pro" time_update() function, this should be easy. However, the standard "user scripts" functionality doesn't seem to give me an entry point to accomplish this. And, if I manually unzip an index.js file, add the code, and re-zip, my test watch-face doesn't want to load. So, questions:
  • Is there a way to use the existing user_script approach to do this? and, if not,
  • Is there a way to manually edit the index.js after the fact?
Thanks in advance for any help you can give!
taw_bip
WF maker
Posts: 129
Joined: 12 Apr 2018, 16:29
Has thanked: 123 times
Been thanked: 19 times
Contact:

Post by taw_bip »

You may get a faster answer by asking the Zepp developers:
https://api.huami.com/t/zepp-community-slack
Post Reply

Return to “Watchfaces tools (discussion)”

Who is online

Users browsing this forum: No registered users and 1 guest