Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Commit

Permalink
Update clock.lcb
Browse files Browse the repository at this point in the history
Added fractional hours so the hour hand more closely resembles an analog clock.
  • Loading branch information
macMikey committed Mar 12, 2015
1 parent 7afd463 commit a5c73dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/widgets/clock/clock.lcb
Expand Up @@ -160,7 +160,7 @@ public handler OnPaint()
put getPath("hour hand") into tHourHand

translate this canvas by [(my width)/2, (my height)/2]
rotate this canvas by 30*(element 1 of mCurrentTime)
rotate this canvas by 30*((element 1 of mCurrentTime) + (element 2 of mCurrentTime/60)) --mikey added fractional hour
stroke tHourHand on this canvas
restore state of this canvas
--
Expand Down Expand Up @@ -311,4 +311,4 @@ public handler setTimeZone(in pTimeZone as Number) as undefined
redraw all
end handler

end widget
end widget

0 comments on commit a5c73dd

Please sign in to comment.