[Zooper Widget General] ack154:
So I think I figured out the clock bit... First thing I found was this. I also added their WallAnalog default template to look at its pieces.

If you look at their example, they have [ar], [as], and [r] for each of the hands.

AR is the Arc Radius... think of this as the center point of whatever rectangle you make for the hand. It is not the center of the circle, but the distance from the center of the clock to the center of your hand.

AS is the Arc Sweep... this tells it what the position of the hand should be based on the time (not really the rotation, but it's point in the circle).

R is the Rotation... this rotation is actually the rotation of your hand as an object. That is, if you make a rectangle for a hand, it has to rotate itself along with the time and AS to look right, otherwise it would just be a level, flat rectangle moving around a circle.

Not sure if that makes any sense, but let's see if I can show what it means.

If you want a simple clock with just 2 hands that tell you the time, here's what you could do:

Minutes Hand:

Size: 5w x 100h

AR: 50

AS/R: $(360/60*#Dm#)$ (this will basically always be this for the minutes - it converts the minutes to a number of degrees within a full circle - 15 min is 90 degrees, 30 min is 180 degrees, etc.

This minute hand would begin at the center of the clock and extend out 100 pixels from there - because the AR number is equal to half of the hand length.

Hour Hand:

Size: 5w x 60h

AR: 30

AS/R: $((#Dh#*60+#Dm#)/2)$ (again, another calculation that will be the same for any hour hand you use, just calculating the # of degrees of a circle for the current hour)

This hand is shorter, but again it extends from the center of the clock outward as the AR is again half of the hand length.

If you want to get a little overlap on the other side of the clock center, you basically make the AR smaller. If you make the minutes hand AR 35 and the hour hand AR 15, you get an overlap on the opposite side of the clock hand of 15 pixels (each AR was reduced by 15).

You can see both examples here. The top is the first one and the bottom is the "overlap" I'm talking about. The hands are the same length in both, but the 15 pixel AR difference shifts the hands inward.

If you want to get crazy, you can add some dots or squares at the end. Again, this is just a matter of getting the rectangle sizes and ARs correct... everything else stays the same. You need to create new rectangles for each of the "dots" at the end of the hands.

If we use the second clock above as the example, maybe we want to put a 5x5 red box at the end of each hand. You need to figure out at what point the hand ends.

So the minute hand is 100 pixels, its center is at an AR of 35, so it extends another 50 pixels past that. So the end of the minute hand is now 85. The hour hand is 60 pixels with an AR of 15. This one goes 30 pixels past the AR for an end point at 45. Now your 5x5 red box needs to be at the end of these. The midpoint of the 5x5 box is at 2.5 pixels. Add this number to the end of the hand distance and you have the AR of the dot. So the minute dot AR is 87.5 and the hour dot is at 47.5. That all make sense?

Plugging in all that with the exact same AS and R values gets you the bottom clock shown here:

Do you follow any of that? I literally just learned this all tonight and it makes sense now. I do have one suggestion though - when you are placing your clock components, Use Center as the Screen Anchor for ALL of the pieces. I seem to get some strange positioning if I try to start from any other anchor point.

PLEASE do ask questions if you have any questions on this.