Jump to content

Write language name in 3D ASCII: Difference between revisions

→‎{{header|Java}}: Added explanation of how it works
m (added two related tasks.)
(→‎{{header|Java}}: Added explanation of how it works)
Line 1,701:
=={{header|Java}}==
This was written ages ago as an exercise in obfuscation, and improved here with upper case letters. The font is "lean" from [http://en.wikipedia.org/wiki/Figlet figlet].
 
It's not really that obfuscated. The characters in <var>z</var> are used to draw the letters. The array <var>f</var> contains one element per letter of the alphabet. Each array element is another array of 7 longs because each output letter is made of 7 lines of text. Each long value represents a sequence of 2-bit integers that are extracted by bit-twiddling and used to find the right character in <var>z</var>.
<lang java>public class F5{
char[]z={' ',' ','_','/',};
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.