- Home
·
- Graphics
·
- Simple Clock Uses Trig Functions. Original Author Ahaed made a couple of very minor yet critical mi
Simple Clock Uses Trig Functions. Original Author Ahaed made a couple of very minor yet critical mi
Simple Clock Uses Trig Functions. Original Author Ahaed made a couple of very minor yet critical mistakes that caused his originally presented
API Declarations
'exact values aren't critical. Name these lines SecLine; MinLine; HourLine
'set timer for 1000mS
Rate Simple Clock Uses Trig Functions. Original Author Ahaed made a couple of very minor yet critical mi
(1(1 Vote))
SecLine.X2 = SecLine.X1 + 1000 * Cos(((Second(Time) - 135) * 6) * (3.1415 / 180))
SecLine.Y2 = SecLine.Y1 + 1000 * Sin(((Second(Time) - 135) * 6) * (3.1415 / 180))
MinLine.X2 = MinLine.X1 + 1000 * Cos(((Minute(Time) - 135) * 6) * (3.1415 / 180))
MinLine.Y2 = MinLine.Y1 + 1000 * Sin(((Minute(Time) - 135) * 6) * (3.1415 / 180))
HourLine.X2 = HourLine.X1 + 1000 * Cos(((Hour(Time) - 135) * 30) * (3.1415 / 180))
HourLine.Y2 = HourLine.Y1 + 1000 * Sin(((Hour(Time) - 135) * 30) * (3.1415 /
180))
End Sub
Simple Clock Uses Trig Functions. Original Author Ahaed made a couple of very minor yet critical mi Comments
No comments yet — be the first to post one!
Post a Comment