# Today (September 24) is HONDA birthday [closed]

today (24 of September) is birthday of company HONDA. Originally their company name is

本田技研工業株式会社

I want to ask to make a gift for HONDA. The task is to make program print company name. You can do it any way you want, but there is only one rule, Unicode is not allowed. It should be ASCII art.

I want to ask to post code and output. As always to determine winner I'll look at the length of code, however portrait in this case is also important.

EDIT: output have to look similar into this: 本田技研工業株式会社

• Alright, so what's stopping us from using 'HONDA' and claiming it prints the company name in GolfScript? (I'm just trying to point out some loopholes). Also, is this meant to be tagged as code-golf? – Volatility Sep 24 '13 at 9:27
• @Volatility I've made edit after your comment. – ST3 Sep 24 '13 at 9:29
• Unicode is not allowed where? At the output (sounds reasonable)? As script? As internal representation in your script? – Johannes Kuhn Sep 24 '13 at 10:14
• @JohannesKuhn I meant none of printed characters cannot be UNICODE, in script you can use it but output should be on ASCII table chars. – ST3 Sep 24 '13 at 10:17
• The spec is too vague to allow an objective determination of whether a program meets it or not. – Peter Taylor Sep 24 '13 at 13:10

# Mathematica

Here the characters are individually rasterized. The zero's of the binary image data of a reduced image are then replaced with asterisks and the array itself is then printed.

GraphicsGrid[ImageData@ImageResize[Binarize@Rasterize@Style[#, 136], 30]
/. {1 -> "", 0 -> "*"}] & /@ Characters["本田技研工業株式会社"]


Below all characters were rasterized as a single image. The asterisks are a bit more difficult to recognize as asterisks in this case.

GraphicsGrid[ImageData@ImageResize[Binarize@Rasterize@Style[#, 136], 300]
/. {1 -> "",  0 -> "*"}, ImageSize -> 1500] &["本田技研工業株式会社"]


• Very, very nice – Dr. belisarius Sep 26 '13 at 1:04
• Wow. Looks very good. One of the requirements was visual portrait and your solution has very high quality of that, so that's way I'm accepting your answer. – ST3 Sep 26 '13 at 12:11

## Tcl

Well, a probably crazy approach.

package r Tk
package r Img
pack [label .l -text 本田技研工業株式会社 -fg #000000 -bg #ffffff]
update
puts [join [lmap line [[image create photo -data .l] data] {join [lmap pixel $line {expr {$pixel ne {#ffffff}?"@":" "}}] {}}] \n]
exit


Here a screenshot:

• Does output same as 本田技研工業株式会社? – ST3 Sep 24 '13 at 10:38
• Well 研 and 会 do not look very good, but all in all good solution. – ST3 Sep 24 '13 at 10:43
• I don't output any unicode characters. I just take a photo of them and render that as Ascii. Well, b/w. – Johannes Kuhn Sep 24 '13 at 10:44
• I could more different characters to display shades. (At the cost of the progam size) – Johannes Kuhn Sep 24 '13 at 10:46

# JavaScript + HTML, interactive version (275 + 90 = 365 chars)

Many ideas inspired by Austin's answer, but this one is interactive; you can change the font size! (also the character count is actually correct)

### Screenshot

Pressing the - and + buttons change the font size. Image is cut off, but you get the idea.

### Fiddle (try it yourself!)

Here is a JSFiddle where you can run the code yourself.

### JS, 275

h=30,(r=function(){for(x=document.createElement('canvas').getContext('2d'),x.font=h+'px sans-serif',x.fillText('本田技研工業株式会社',0,h),d=x.getImageData(0,0,w=h*10,h).data,s='',a=0;a<h;a++){for(b=0;b<w;b++)s+=d[3+w*4*a+4*b]?0:' ';s+='\n'}document.getElementById('p').innerHTML=s})()


### HTML, 90

<button onclick='h--;r()'>-</button><button onclick='h++;r()'>+</button><pre id='p'></pre>


## Hi-resolution version

http://jsfiddle.net/UjTbK/1/

• r=function(h){for(x=document.createElement('canvas').getContext('2d'),x.font=h+'px sans-serif',x.fillText('本田技研工業株式会社',0,h),d=x.getImageData(0,0,w=h*10,h).data,s='',a=0;a<h;a++){for(b=0;b<w;b++)s+=d[3+w*4*a+4*b]?0:' ';s+='\n'}document.getElementById('p').innerHTML=s} (30) is three bytes shorter. – Conor O'Brien Nov 6 '15 at 23:39

# Javascript, 261 characters, 226 minified

special thanks to jsacii for inspiring this solution.

c = document.createElement('canvas').getContext('2d');
c.font="30px sans-serif";c.fillText("本田技研工業株式会社", 0,30);d=c.getImageData(0,0,305,40).data;
s="";
for(var y = 0; y<40;y+=2){
for(var x=0;x<305;x++)
s += d[3+4*x+1220*y]? "*" : " ";
s+="\n";
}


minified

c=document.createElement("canvas").getContext("2d");c.font="30px sans-serif";c.fillText("本田技研工業株式会社",0,30);d=c.getImageData(0,0,305,40).data;s="";for(var y=0;y<40;y+=2){for(var x=0;x<305;x++)s+=d[3+4*x+1220*y]?"*":" ";s+="\n"}


and the output

             ****                                                ****        ****                                                                                ***  ***                ****        ****                           **                       ****                  ****         ****
****               **************************       ****        ****          *****************************                                  ****   ***  ***   ****         ****    ********                          ********                 ******                 ****         ****
****               **************************       ****        ****      *    ** ******* ****** ****** **    *************************       ****  ***  ***  ****          ****   **** ****                          **** *****             **********                ***         ****
****************************   ****       ****       ****   ****************************     ****       ****   ****       ************************    ****************************  ***************************   ****************************        ******    ******        *************    ****
***************************   ****       ****       ****   ***********     ****             ****       ****   ****                 ****                     ****      ****         ***************************   ****************************     *******        *******             ****     ****
*********             ****       ****       ****       ****        ****            ****        ****   ****                 ****               **************************      **********   ****                          ****          *****************************       *********************
************           **************************       **** *****************     ****************************             ****               **************************      *************************    ******************          ****  ****************  *****      ****   **** **********
***** **** ****          **************************       ******* ****      ****    ******  ********************              ****                 **********************       **************************    ******************                                           *******       ****
*****  ****  *****        ****       ****       ****   ********    *****   *****    *******  ***   ****   ****                 ****                 **********************      *******      ********               ****      ****         ****************************  *************    ****
******    ****    ******     ****       ****       ****   ********      **** ****       * ****  ***   ****   ****                 ****              **************************** *********     ***********             ****      ****           *      ****     *      **   **** *** ****    ****
*****************************  ****       ****       ****       ****       *******          ****  ***  ****    ****                 ****              ****************************  **  ****   ********* *****           ****     * ****   ***          ****    *****              ***         ****
****   *    ****        ****   ****       ****       ****       ****      *********         ********* *****    ****     ****************************        ****************            **********  ****  ******         *********** ****  ****        ****       *****            ***         ****
****               **************************       ****  *******  *******      **************     ****     ****************************  **********  ****  ***********     ********    ****    ****  **************      ********    ***********************          ***  *******************
****               ****                  ****   **************        *******   ****    *****      ****                                   ******      ****       *****      ****        ****           ***                 ******    ****************     *****       ****  *******************
***                                                 *                     *              **         **                                                ****                  ****         ***                                                               **          ***

• I think first output line should be fixed. – ST3 Sep 24 '13 at 19:13
• That was just from pasting into the editor, fixed in edit – Professor Allman Sep 24 '13 at 19:14
• That's 261 characters, by my count... – Doorknob Sep 25 '13 at 1:40
• @Doorknob i posted the minified count, changed in update – Professor Allman Sep 26 '13 at 16:47
• You can remove the var statements from the for loops and you can replace (if you want) "*" with a number. – Conor O'Brien Nov 6 '15 at 23:41

# Java, 267 260 characters

Alright, I guess my solution is not all that different from Johannes Kuhn's answer, but as it seems this is a problem that can be handled nicely in Java; my solution is not much longer; and the output is slightly different, I'll post it nevertheless:

class A{public static void main(String[]a){java.awt.image.BufferedImage b=new java.awt.image.BufferedImage(130,16,2);b.createGraphics().drawString("本田技研工業株式会社",0,13);for(int y=0;y<2080;System.out.print((b.getRGB(y%130,y/130)<0?"#":" ")+(++y%130<1?"\n":"")));}}


Formatted as:

class A {
public static void main(String[]a) {
java.awt.image.BufferedImage b = new java.awt.image.BufferedImage(130, 16, 2);
b.createGraphics().drawString("本田技研工業株式会社", 0, 13);
for (int y = 0; y < 2080; System.out
.print((b.getRGB(y % 130, y / 130) < 0 ? "#" : " ")
+ (++y % 130 < 1 ? "\n" : "")))
;
}
}


Output:

      #                     #     #                                   # #        #  # #                       #         #    #
#       ###########   #     #     #### #######                # # # #      #  # #            # ##      # #        #    #
###########  #    #    #   #  ########   #   #  #    ##########  # # # # # #    #  ######         #       ##   ##    #####  #
#       #    #    # ####    #      #    #  #        #       ###########  ### #  #     ############  #       #       #  #
###      #    #    #   #     #      #    #  #        #          #   #       #    #            #     # ######  ##    #  #####
# # #     ###########   #  #######   ### #######      #       ###########   ### #######  ##### #                    #    #
#  #  #    #    #    #   ##  #   #   ## #  #  #        #        #########   # #    #        #   #                   ###   #
#   #   #   #    #    # ###    #  #    # #  #  #        #            #       # #   ###       #    #    ###########  # # #  #
#  #####  #  #    #    #   #    # #     # #  #  #        #       ###########  # #  # # #      #    #        #          #    #
#    #     # #    #    #   #    ###     ### #   #        #          # # #       # #  #  #     # ## #  #    #   #       #    #
#       ###########   #  ##   ##   # # #   #   ###########   ##  #  ###    # #  #   # #####    # #    #    #      # #######
#       #         # ##  #       #      #   #                #    #     #   #    #               #  ######## ##    #

• @Bakuriu Use a different font. @ memo: you can save 6 characters by NOT importing. (importing costs 36 chars, using the full qualified name costs 15 chars for each use). – Johannes Kuhn Sep 24 '13 at 14:19
• @Johannes Kuhn: You are absolutely right. I've updated the answer accordingly, and also found another redundant blank in the array declaration. – memo Sep 24 '13 at 14:40