Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/Draw-a-clock/Raku/draw-a-clock.raku
Normal file
17
Task/Draw-a-clock/Raku/draw-a-clock.raku
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
my ($rows,$cols) = qx/stty size/.words;
|
||||
my $v = floor $rows / 2;
|
||||
my $h = floor $cols / 2 - 16;
|
||||
|
||||
my @t = < ⡎⢉⢵ ⠀⢺⠀ ⠊⠉⡱ ⠊⣉⡱ ⢀⠔⡇ ⣏⣉⡉ ⣎⣉⡁ ⠊⢉⠝ ⢎⣉⡱ ⡎⠉⢱ ⠀⠶⠀>;
|
||||
my @b = < ⢗⣁⡸ ⢀⣸⣀ ⣔⣉⣀ ⢄⣀⡸ ⠉⠉⡏ ⢄⣀⡸ ⢇⣀⡸ ⢰⠁⠀ ⢇⣀⡸ ⢈⣉⡹ ⠀⠶⠀>;
|
||||
|
||||
loop {
|
||||
my @x = DateTime.now.Str.substr(11,8).ords X- ord('0');
|
||||
print "\e[H\e[J";
|
||||
print "\e[$v;{$h}H";
|
||||
print ~@t[@x];
|
||||
print "\e[{$v+1};{$h}H";
|
||||
print ~@b[@x];
|
||||
print "\e[H";
|
||||
sleep 1;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue