Draw a clock: Difference between revisions

Line 1,909:
[https://easylang.online/apps/clock.html Run it]
 
<syntaxhighlight lang="text"># Clock
#
func draw hour min sec . .
# dial
Line 1,919 ⟶ 1,918:
circle 44
color 333
for i range= 1 to 60
a = i * 6
move 50 + sin a * 40 50 - cos a * 40
circle 0.25
.
for i range= 1 to 12
a = i * 30
move 50 + sin a * 40 50 - cos a * 40
Line 1,951 ⟶ 1,950:
t = floor systime
h$ = timestr t
sec = number substr h$ 1718 2
min = number substr h$ 1415 2
hour = number substr h$ 1112 2
if hour > 12
hour -= 12
Line 1,961 ⟶ 1,960:
timer 0.1
.
timer 0</syntaxhighlight>
</syntaxhighlight>
 
=={{header|F_Sharp|F#}}==
1,983

edits