Spinning rod animation/Text: Difference between revisions

Content deleted Content added
Thundergnat (talk | contribs)
→‎{{header|Perl 6}}: Add a scrolling "marquee" option and a demo
CalmoSoft (talk | contribs)
No edit summary
Line 159: Line 159:
print(rod, end='\r')
print(rod, end='\r')
sleep(0.25)</lang>
sleep(0.25)</lang>

=={{header|Ring}}==
<lang ring>
# Project : Spinning rod animation/Text
# Date : 2018/06/17
# Author : Gal Zsolt (~ CalmoSoft ~)
# Email : <calmosoft@gmail.com>

load "stdlib.ring"
rod = ["|", "/", "-", "\"]
for n = 1 to len(rod)
see rod[n] + nl
sleep(0.5)
system("cls")
next
</lang>
Output:
<pre>
|
�/
�-
�\
</pre>


=={{header|zkl}}==
=={{header|zkl}}==