by Ahaed Aslam / Trent Jackson (1 Submission)
Category: Graphics
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Wed 17th May 2006
Date Added: Mon 8th February 2021
Rating: (1 Votes)
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
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
No comments have been posted about Simple Clock Uses Trig Functions. Original Author Ahaed made a couple of very minor yet critical mi. Why not be the first to post a comment about Simple Clock Uses Trig Functions. Original Author Ahaed made a couple of very minor yet critical mi.