Given the signal level L
in the range 0-4
. Your program should draw the following ASCII art.
When L=0
:
....
....
.... ....
.... ....
.... .... ....
.... .... ....
.... .... .... ....
.... .... .... ....
.... .... .... ....
When L=1
:
....
....
.... ....
.... ....
.... .... ....
.... .... ....
oooo .... .... ....
oooo .... .... ....
oooo .... .... ....
When L=2
:
....
....
.... ....
.... ....
oooo .... ....
oooo .... ....
oooo oooo .... ....
oooo oooo .... ....
oooo oooo .... ....
And etc. You can change the characters o
and .
to others, it's up to you. Trailing spaces are allowed.
This is a code-golf challenge so the shortest solution wins.