טוב מהצצה מהירה בקוד אני חושב שזה קוד של שעון (אנלוגי)
שאומר למחוגים להסתובב לזווית מסויימת שנקבעת לפי השעה...
hourHand._rotation = myDate.getHours()*30+(myDate.getMinutes()/2);
מחוג השעות hourHand
minuteHand._rotation = myDate.getMinutes()*6+(myDate.getSeconds()/10);
מחוג הדקות minuteHand
secondHand._rotation = myDate.getSeconds()*6
מחוג השניות secondHand
|