Hi, Folks, I’ve been working on a watch face where I’d like to show moon phases. I found the tutorial here at Design a Watch Face using Mask and Moon Phase Tags | Samsung Developer , and it’s gotten me to a place where my watch face displays the full moon based on date, but the tutorial is based on having the moon phase images appear at different positions on the watch face, using a location coordinates formula.
The problem is, what I want to do is have the moon appear in the exact same position for each phase which, I assume, means somehow hiding all phases except the current phase for each phase. Can someone point me to a tutorial or help me out with this?
For those who may have helped me with other questions, you may remember I’m absolutely not a developer! That location coordinates formula is already pretty far beyond my understanding other than understanding how to insert tags and how to tell what the coordinates are of the position where I want my moon to appear.
I’ve included a screenshot of where I am at the moment. I’ll be replacing the background - this background and the layers are from the tutorial wfs file.
There is a tag that gives you a number according to the current moon phase [MOON_TY].
You can create a text that displays this value, e.g. “0” or “1”.
You create a bitmap font using the image for each moon phase according to the number, 0 is “New moon” so you add an image of new moon, 1 is “Evening crescent”, … and so on
Thanks, dect, that master class on using bitmap font is perfect! Much of it is over my head, but I will start working through it tomorrow. Sometimes the water gets shallower after playing around in it a bit.
Will this method work for having the moon image(s) appear in the same location?
Yes . That is exactly what I have done on several faces . I am sure I posted the resources here . I can show you a working example soon .
.
I made this quickly for you as we are going visiting family and I will be PC Free .
In case you don’t know .
1 / If you open the file as a Zip you will see a file called res and in there is a drawable-nodpi file all the resources are in there . If they are a bit big for you I can post smaller ones in a few days .
2 / To open the file in WFS just delete the .ZIP extension to the extension . This was made on WFS 1.0.5 .
I have kept it to the bare minimum . I use the month of November 2024 to test the Moon Phase as it starts at New Moon on the First and only has 30 days ( Lunar month is 29.53 days ) . Some criticize this simplified method but I have found that it is within 1/4 Day accurate . The Moon has some wobble in it orbit and it is not possible to Simplify it completely . I hope this works for you . The beauty of this platform is if you don’t want to reproduce the work you can just rename the file I give you and Bingo you have a Template you can keep forever .
Great . As you know there are many ways to represent the Moons phase . That was my main reason for getting a Smart watch . Give me a shout if you see one and want to represent it .