Jump to content

Spinning rod animation/Text: Difference between revisions

→‎{{header|Raku}}: Minor twiddles, expand slightly
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
(→‎{{header|Raku}}: Minor twiddles, expand slightly)
Line 467:
 
my $clock = throbber.new( :frames("🕐" .. "🕛") );
print "\b r\nSomething else with a delay... ";
until my $done {
# do something in a loop;
sleep 1/12;
print "\b", $clock.next;
$done = True if $++ >= 60;
}
 
my $moon = throbber.new( :frames('🌑🌒🌓🌔🌕🌖🌗🌘'.comb) );
print "\r\nGonna be a long night... ";
until my $end {
# do something in a loop;
sleep 1/8;
print "\b", $moon.next;
$end = True if $++ >= 60;
}
 
my $scroll = throbber.new( :frames('PLEASE STAND BY... '.comb), :delay(.1), :marquee );
print "\b r\nEXPERIENCING TECHNICAL DIFFICULTIES: { $scroll.frames.join }";
print $scroll.next for ^95;
 
10,339

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.