Anonymous user
Write language name in 3D ASCII: Difference between revisions
→simpler, shorter: added/changed whitespace and comments, accepts any char for the letter, simplified some expressions.
No edit summary |
(→simpler, shorter: added/changed whitespace and comments, accepts any char for the letter, simplified some expressions.) |
||
Line 2,247:
===simpler, shorter===
This is a version of the above REXX program (with a minor bug fixed),
<br>the input text
<br>the output doesn't have extraneous leading blanks,
<br>the output doesn't have trailing blanks
<br>the input text can be any consistent character except the forward slash (<big>'''/'''</big>) or backward slash (<big>'''\'''</big>).
<lang rexx>/*REXX pgm draws a "3D" image of text representation (
end
{{out}} when using the default input:
<pre>
Line 2,274:
///\ ///\
\\\/ \\\/
///\ ///\ /////////\ ///\ ///\ ///\ ///\
\\\/ \\\/ \\\\\\\\\/ \\\/ \\\/ \\\/ \\\/
////////////\ ///\ ///\ ///\ ///\ ///\
\\\\\\\\\\\\/ \\\/ \\\/ \\\/ \\\/ \\\/
///\ ///\ //////\ ///\ ///\
\\\/ \\\/ \\\\\\/ \\\/ \\\/
///\ ///\ ///\ ///\ ///\ ///\ ///\
\\\/ \\\/ \\\/ \\\/ \\\/ \\\/ \\\/
///\ ///\ /////////\ ///\ ///\ ///\ ///\
\\\/ \\\/ \\\\\\\\\/ \\\/ \\\/ \\\/ \\\/
</pre>
|