Draw a clock: Difference between revisions
→{{header|EasyLang}}
Line 1,909:
[https://easylang.online/apps/clock.html Run it]
<syntaxhighlight lang="text">
func draw hour min sec . .
# dial
Line 1,919 ⟶ 1,918:
circle 44
color 333
for i
a = i * 6
move 50 + sin a * 40 50 - cos a * 40
circle 0.25
.
for i
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$
min = number substr h$
hour = number substr h$
if hour > 12
hour -= 12
Line 1,961 ⟶ 1,960:
timer 0.1
.
timer 0
</syntaxhighlight>
=={{header|F_Sharp|F#}}==
|