I've designed a new font which I call PrettyFont. I've put much much time into perfecting it, but since I'm a working man I don't have time to finish it. Therefore it only contains 4 characters right now. One day when I've become rich it will become my life-long goal to finish it, but for now...
This is PrettyFont: (0, 1, 2, 3)
#### ## #### ####
# # # # # #
# # # # ###
# # # # #
#### ### #### ####
Each character is 4 pixels wide and 5 pixels high. Now! I want you to write me a program that outputs a number in PrettyFont so I can start sending designs to print.
Rules:
The input is a string number in base 4 (only characters 0-3), for example "01321". The program should be able to handle at least 10 characters in the string. BONUS points is given to the program that takes an actual base 10 integer instead of a string. EDIT clarification: the integer bonus means that one can enter any base 10 number, like 54321, and the program will convert it to base 4 and output it (in this case 31100301).
The output will be the number printed with PrettyFont. Example input and output:
> "321"
####
#
###
#
####
####
# #
#
#
####
##
#
#
#
###
Huge bonus to the program that can output it in a single row-fashion like this:
> "321"
#### #### ##
# # # #
### # #
# # #
#### #### ###
The '#' character is not a requirement, and can be replaced by any character.
In vertical output, an empty row is required between each PrettyFont character. If anyone makes the horizontal output, one white space character ' ' or a tab character is required between each PrettyFont character.
This is code golf, shortest code wins! (I need it short because my office computer has limited storage.)





banner -c '#' 0123– Drake Clarris Aug 10 '12 at 19:58