Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Colour-bars-Display/AWK/colour-bars-display.awk
Normal file
13
Task/Colour-bars-Display/AWK/colour-bars-display.awk
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
BEGIN {
|
||||
nrcolors = 8
|
||||
|
||||
for (height=0; height<20; height++) {
|
||||
for (width=0; width<nrcolors; width++) {
|
||||
# print (ANSI) basic color and amount of spaces
|
||||
printf("\033[%dm%*s", width + 40, 64 / nrcolors, " ")
|
||||
}
|
||||
|
||||
# reset color and print newline
|
||||
printf("\033[0m\n")
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue