Write language name in 3D ASCII: Difference between revisions

m
(Added Wren)
 
(27 intermediate revisions by 18 users not shown)
Line 13:
 
;Related tasks:
* [[Draw_a_rotating_cubeDraw_a_sphere|draw a rotating cubesphere]]
* [[Draw_a_cuboid|draw a cuboid]]
* [[Draw_a_rotating_cube|draw a rotating cube]]
* [[Death_Star|draw a Deathstar]]
<br><br>
 
=={{header|11l}}==
<syntaxhighlight lang="11l">V s =
|‘ XX
X
X
X
X
X
XXXXX’
 
V lines = s.split("\n")
V width = max(lines.map(l -> l.len))
 
L(line) lines
print((‘ ’ * (lines.len - L.index - 1))‘’(line.ljust(width).replace(‘ ’, ‘ ’).replace(‘X’, ‘__/’) * 3))</syntaxhighlight>
 
{{out}}
<pre>
__/__/ __/__/ __/__/
__/ __/ __/
__/ __/ __/
__/ __/ __/
__/ __/ __/
__/ __/ __/
__/__/__/__/__/ __/__/__/__/__/ __/__/__/__/__/
</pre>
 
=={{header|360 Assembly}}==
3D EBCDIC. This program does nothing clever in any way: it just prints out strings.
<langsyntaxhighlight lang="360asm">THREED CSECT
STM 14,12,12(13)
BALR 12,0
Line 31 ⟶ 60:
BR 14
LTORG
END</langsyntaxhighlight>
{{out}}
<pre>
Line 42 ⟶ 71:
 
</pre>
 
=={{header|Action!}}==
Atari 8-bit computers use [https://en.wikipedia.org/wiki/ATASCII ATASCII] character set which is a variation of ASCII.
<syntaxhighlight lang="action!">BYTE ARRAY data = [
$00 $00 $00 $00 $4E $4E $4E $00 $00 $00 $00 $00 $00 $00 $00 $00 $4E $00 $00 $00 $00 $4E $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $4E $00 $00 $00
$00 $00 $00 $46 $47 $00 $00 $47 $00 $00 $00 $00 $00 $00 $00 $42 $47 $47 $00 $00 $42 $47 $47 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $42 $47 $47 $00 $00
$00 $00 $42 $47 $48 $80 $80 $80 $4A $00 $00 $4E $4E $4E $00 $42 $00 $80 $4E $00 $00 $47 $80 $00 $00 $4E $4E $00 $00 $00 $4E $4E $4E $00 $00 $42 $00 $80 $00 $00
$00 $00 $42 $00 $80 $00 $42 $00 $80 $00 $46 $47 $00 $00 $47 $42 $00 $80 $00 $47 $00 $4E $00 $00 $46 $47 $00 $47 $00 $42 $47 $00 $00 $47 $00 $42 $00 $80 $00 $00
$00 $00 $42 $00 $80 $00 $42 $00 $80 $42 $47 $48 $80 $80 $80 $42 $00 $80 $80 $80 $42 $47 $47 $42 $47 $48 $80 $80 $4A $42 $00 $80 $80 $80 $4A $42 $00 $80 $00 $00
$00 $00 $42 $00 $80 $4D $4D $47 $80 $42 $00 $80 $00 $00 $00 $42 $00 $80 $00 $00 $42 $00 $80 $42 $00 $80 $42 $00 $80 $42 $00 $80 $42 $00 $80 $42 $00 $80 $00 $00
$00 $00 $42 $00 $80 $80 $80 $80 $80 $42 $00 $80 $00 $00 $00 $42 $00 $80 $00 $00 $42 $00 $80 $42 $00 $80 $42 $00 $80 $42 $00 $80 $42 $00 $80 $00 $47 $80 $00 $00
$00 $00 $42 $00 $80 $00 $42 $00 $80 $42 $00 $80 $4E $4E $00 $42 $00 $80 $4E $00 $42 $00 $80 $42 $00 $80 $42 $00 $80 $42 $00 $80 $42 $00 $80 $00 $4E $00 $00 $00
$00 $00 $42 $00 $80 $00 $42 $00 $80 $00 $47 $80 $00 $00 $47 $00 $47 $80 $00 $47 $42 $00 $80 $00 $47 $80 $4D $47 $80 $42 $00 $80 $42 $00 $80 $42 $47 $47 $00 $00
$00 $00 $00 $47 $80 $00 $00 $47 $80 $00 $00 $CA $80 $80 $80 $00 $00 $CA $80 $80 $00 $47 $80 $00 $00 $CA $80 $80 $C8 $00 $47 $80 $00 $47 $80 $00 $47 $80 $00 $00]
 
PROC Main()
BYTE POINTER ptr
 
Graphics(0)
SetColor(2,0,2)
ptr=PeekC(88)+280
MoveBlock(ptr,data,400)
RETURN</syntaxhighlight>
{{out}}
[https://gitlab.com/amarok8bit/action-rosetta-code/-/raw/master/images/Write_language_name_in_3D_ASCII.png Screenshot from Atari 8-bit computer]
 
=={{header|Ada}}==
Quotes are not escaped by \ in ada (nor does \ have any meaning in strings),
so this turns out highlighting funny.
<langsyntaxhighlight Adalang="ada">with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
procedure AsciiArt is
Line 62 ⟶ 116:
if i mod 3 = 0 then New_Line; Put(i/3*' '); end if;
end loop;
end AsciiArt;</langsyntaxhighlight>
{{out}}
<pre>
Line 74 ⟶ 128:
\/\\\ \/\\\ \/\\\\\\\\\\\\ \/\\\\\\\\\\\\
\/// \/// \//////////// \////////////</pre>
 
=={{header|Arturo}}==
 
<syntaxhighlight lang="rebol">print {:
______ __
/\ _ \ /\ \__
\ \ \L\ \ _ __\ \ ,_\ __ __ _ __ ___
\ \ __ \/\`'__\ \ \/ /\ \/\ \/\`'__\/ __`\
\ \ \/\ \ \ \/ \ \ \_\ \ \_\ \ \ \//\ \L\ \
\ \_\ \_\ \_\ \ \__\\ \____/\ \_\\ \____/
\/_/\/_/\/_/ \/__/ \/___/ \/_/ \/___/
:}</syntaxhighlight>
 
{{out}}
 
<pre> ______ __
/\ _ \ /\ \__
\ \ \L\ \ _ __\ \ ,_\ __ __ _ __ ___
\ \ __ \/\`'__\ \ \/ /\ \/\ \/\`'__\/ __`\
\ \ \/\ \ \ \/ \ \ \_\ \ \_\ \ \ \//\ \L\ \
\ \_\ \_\ \_\ \ \__\\ \____/\ \_\\ \____/
\/_/\/_/\/_/ \/__/ \/___/ \/_/ \/___/</pre>
 
=={{header|AutoHotkey}}==
<langsyntaxhighlight lang="autohotkey">AutoTrim, Off
draw =
(
Line 93 ⟶ 169:
 
GuiClose:
ExitApp</langsyntaxhighlight>
{{out}}
<pre> ______ __ __ __ __
Line 103 ⟶ 179:
 
=={{header|AWK}}==
<syntaxhighlight lang="awk">
<lang AWK>
# syntax: GAWK -f WRITE_LANGUAGE_NAME_IN_3D_ASCII.AWK
BEGIN {
Line 122 ⟶ 198:
exit(0)
}
</syntaxhighlight>
</lang>
{{out}}
<pre>
Line 138 ⟶ 214:
 
==={{header|Applesoft BASIC}}===
Ported from [[Write language name in 3D ASCII#ZX Spectrum Basic|ZX Spectrum Basic]].<langsyntaxhighlight ApplesoftBasiclang="applesoftbasic">10 S$ = "BASIC" : REM OUR LANGUAGE NAME
20 DIM B(5,5) : REM OUR BIGMAP CHARACTERS
30 FOR L = 1 TO 5 : REM 5 CHARACTERS
Line 186 ⟶ 262:
9030 DATA 31,4,4,4,31: REM I
9040 DATA 14,17,16,17,14: REM C
</syntaxhighlight>
</lang>
 
==={{header|BBC BASIC}}===
{{works with|BBC BASIC for Windows}}
Uses the built-in '''BBC Micro'''-compatible character generator, so any text can be specified.
<langsyntaxhighlight lang="bbcbasic"> PROC3dname("BBC BASIC")
END
Line 212 ⟶ 288:
PRINT
NEXT row%
ENDPROC</langsyntaxhighlight>
{{out}}
<pre>
Line 227 ⟶ 303:
==={{header|FreeBASIC}}===
freebasic is quite a long name, so I have done a combi.
<langsyntaxhighlight FreeBASIClang="freebasic">dim as integer yres=hiword(width)
dim as integer xres=loword(width)
 
Line 254 ⟶ 330:
print "BASIC"
Sleep
</syntaxhighlight>
</lang>
{{out}}
<pre> \ \ \ \ \ \ \ \ \ \ \ \
Line 275 ⟶ 351:
 
==={{header|Liberty BASIC}}===
<syntaxhighlight lang="lb">
<lang lb>
r=21:s=9:c=s
For i=1 To 11
Line 294 ⟶ 370:
Next
Data 479667712,311470336,485697536,311699712,476292608,0,1976518785,1160267905,1171157123,1160267909,1171223529
</syntaxhighlight>
</lang>
 
{{out}}
Line 325 ⟶ 401:
 
==={{header|Locomotive Basic}}===
<langsyntaxhighlight lang="locobasic">10 mode 2:defint a-z
20 locate 1,25
30 print "Basic";
Line 349 ⟶ 425:
230 locate xp,yp+1
240 print "\\/";
250 return</langsyntaxhighlight>
 
{{Out}}
Line 364 ⟶ 440:
 
==={{header|TI-83 BASIC}}===
<langsyntaxhighlight lang="ti83b">Disp “ .....+ .....+
Disp “ +o+ooo +o+ooo
Disp “ .o .o
Line 370 ⟶ 446:
Disp “ +o +ooooo
Disp “
Disp “ BASIC</langsyntaxhighlight>
 
Replace . + o with 0x81,0x80,and 0x7F http://tibasicdev.wikidot.com/one-byte-tokens
Line 382 ⟶ 458:
but the output would still look the same.
Fixed the error and removed the need for 2^z.
<langsyntaxhighlight lang="zxbasic"> 10 DIM b(5,5): REM our bigmap characters
20 FOR l=1 TO 5: REM 5 characters
30 FOR m=1 TO 5: REM 5 rows
Line 418 ⟶ 494:
9020 DATA 15,16,14,1,30: REM S
9030 DATA 31,4,4,4,31: REM I
9040 DATA 14,17,16,17,14: REM C</langsyntaxhighlight>
 
To me it does not work. So I bring my particular solution:
 
<langsyntaxhighlight lang="zxbasic">5 PAPER 0: CLS
10 LET d=0: INK 1: GO SUB 40
20 LET d=1: INK 6: GO SUB 40
Line 439 ⟶ 515:
150 DATA "XXX XXXX XXX X X "
160 DATA "X X X X X X X "
170 DATA "XXX X X XXX X XXX"</langsyntaxhighlight>
 
[[File:Basic.jpg]]
 
=={{header|Batch File}}==
<langsyntaxhighlight lang="dos">@echo off
for %%b in (
""
" /$$$$$$$####### /$$$$$$ ###### /$$$$$$$$######## /$$$$$$ ###### /$$## /$$##"
"| $$##__ $$|## $$/##__ $$##|__ $$##__/| $$/##__ $$##| $$## | $$##"
"| $$## \| $$##| $$## \| $$## | $$## | $$## \__/| $$## | $$##"
"| $$$$$$$####### | $$$$$$$$######## | $$## | $$## | $$$$$$$$########"
"| $$##__ $$##| $$##__ $$## | $$## | $$## | $$##__ $$##"
"| $$## \| $$##| $$## | $$## | $$## | $$ ## $$/##| $$## | $$##"
"| $$$$$$$#######/| $$## | $$## | $$## | $$$$$$######/| $$## | $$##"
"|_______/ |__/ |__/ |__/ \______/ |__/ |__/"
""
) do echo(%%~b
pause</langsyntaxhighlight>
 
=={{header|Befunge}}==
 
===Befunge-93===
<langsyntaxhighlight Befungelang="befunge">0" &7&%h&'&%| &7&%7%&%&'&%&'&%&7&%"v
v"'%$%'%$%3$%$%7% 0%&7&%&7&(%$%'%$"<
>"%$%7%$%&%$%&'&%7%$%7%$%, '&+(%$%"v
Line 470 ⟶ 546:
? ";(;(+(+$%+(%&(;(3%$%&$ 7`+( ":v >
^v!:-1<\,:g7+*63%4 \/_#4:_v#:-*84_$@
$_\:,\^ >55+,$:^:$</langsyntaxhighlight>
{{out}}
<pre>
Line 486 ⟶ 562:
(It adds line offset to those strings,and the strings are encoded with numbers just because.)
{{works with|CCBI|2.1}}
<syntaxhighlight lang="befunge">
<lang Befunge>
v THE DATA IMAGE.(totally useless after loading into stack)
>89 v Made by gamemanj
Line 522 ⟶ 598:
" "
^ $,< < < (code path reuse here,all 3 end in ,$ so I merged them)
</syntaxhighlight>
</lang>
{{out}}
<pre>
Line 533 ⟶ 609:
 
</pre>
 
=={{header|Binary Lambda Calculus}}==
 
Using the fact that an asterisk at the start of a program copies the rest to stdout:
 
<pre>* ____
/\ _`\ __
\ \ \L\ \ /\_\ ___ __ _ __ __ __
\ \ _ <'\/\ \ /' _ `\ /'__`\ /\`'__\/\ \/\ \
\ \ \L\ \\ \ \/\ \/\ \/\ \L\.\_\ \ \/ \ \ \_\ \
\ \____/ \ \_\ \_\ \_\ \__/.\_\\ \_\ \/`____ \
\/___/ \/_/\/_/\/_/\/__/\/_/ \/_/ `/___/> \
__ __ __ /\___/
/\ \ /\ \ /\ \ \/__/
\ \ \ __ ___ ___\ \ \____ \_\ \ __
\ \ \ __ /'__`\ /' __` __`\ \ '__`\ /'_` \ /'__`\
\ \ \L\ \/\ \L\.\_/\ \/\ \/\ \ \ \L\ \/\ \L\ \/\ \L\.\_
\ \____/\ \__/.\_\ \_\ \_\ \_\ \_,__/\ \___,_\ \__/.\_\
\/___/ \/__/\/_/\/_/\/_/\/_/\/___/ \/__,_ /\/__/\/_/
____ ___ ___
/\ _`\ /\_ \ /\_ \
\ \ \/\_\ __ \//\ \ ___ __ __\//\ \ __ __ ____
\ \ \/_/_ /'__`\ \ \ \ /'___\/\ \/\ \ \ \ \ /\ \/\ \ /',__\
\ \ \L\ \/\ \L\.\_ \_\ \_/\ \__/\ \ \_\ \ \_\ \_\ \ \_\ \/\__, `\
\ \____/\ \__/.\_\/\____\ \____\\ \____/ /\____\\ \____/\/\____/
\/___/ \/__/\/_/\/____/\/____/ \/___/ \/____/ \/___/ \/___/</pre>
 
=={{header|Brainf***}}==
Coming up with decent 3D font was honestly the hardest part.
<langsyntaxhighlight lang="bf">++++[>++++>++<[>>++>+++>++++++> ++++++<<<<<-]<-]>>++>..>->---->
-...[<]<+++[>++++[>>...<<-]<-]> >>..>>>.....<<<..>>>...[<]++[>>
.....>>>...<<<<<-]>.>.>.>.<<..> >.[<]<+++++[>++++[>>.<<-]<-]>>>
Line 551 ⟶ 653:
..>>.<<.>>.>......<..>..<.<<..> >.<<.>>.>...<<.>.>..<..>..<..>.
.<..<<.>>.>..<..>..<.<<<.>..... .>>.<.>>......<<..>>..<<.<...>>
.<.>>..<<.>.<.>>..<<..>>..<<..> >..<<.<.>>.<.>>..<<..>>..<<.<<.</langsyntaxhighlight>
{{out}}
<pre>
Line 565 ⟶ 667:
 
=={{header|C}}==
3D enough?<langsyntaxhighlight lang="c">#include <stdio.h>
const char*s = " _____\n /____/\\\n/ ___\\/\n\\ \\/__/\n \\____/";
int main(){ puts(s); return 0; }</langsyntaxhighlight>
{{out}}
<pre>
Line 578 ⟶ 680:
 
=={{header|C sharp|C#}}==
<langsyntaxhighlight lang="csharp">using System;
using System.Text;
 
Line 681 ⟶ 783:
}
}
}</langsyntaxhighlight>
 
Output:
Line 693 ⟶ 795:
 
=={{header|C++}}==
<langsyntaxhighlight lang="cpp">
#include <windows.h>
#include <iostream>
Line 723 ⟶ 825:
}
//--------------------------------------------------------------------------------------------------
</syntaxhighlight>
</lang>
{{out}}
<pre>
Line 741 ⟶ 843:
</pre>
Another solution:
<langsyntaxhighlight lang="cpp">
// @author Martin Ettl (http://www.martinettl.de)
// @date 2013-07-26
Line 765 ⟶ 867:
return 0;
}
</syntaxhighlight>
</lang>
{{out}}
<pre>
Line 781 ⟶ 883:
=={{header|Clojure}}==
{{libheader|clj-figlet}}
<langsyntaxhighlight lang="clojure">(use 'clj-figlet.core)
(println
(render-to-string
(load-flf "ftp://ftp.figlet.org/pub/figlet/fonts/contributed/larry3d.flf")
"Clojure"))</langsyntaxhighlight>
 
{{out}}
Line 803 ⟶ 905:
This displays 'COBOL' in 3D with a shadow effect. The font is 'Slant Relief' from [http://http://patorjk.com/software/taag/ here].
{{works with|OpenCOBOL}}
<langsyntaxhighlight lang="cobol"> IDENTIFICATION DIVISION.
PROGRAM-ID. cobol-3d.
 
Line 880 ⟶ 982:
 
GOBACK
.</langsyntaxhighlight>
 
{{out}} (note: the shadow effect is quite faint on this site):
Line 897 ⟶ 999:
=={{header|Common Lisp}}==
{{libheader|cl-ppcre}}
<langsyntaxhighlight lang="lisp">
(ql:quickload :cl-ppcre)
(defvar txt
Line 910 ⟶ 1,012:
)
(princ (cl-ppcre:regex-replace-all " " (cl-ppcre:regex-replace-all "x" txt "_/") " " ))
</syntaxhighlight>
</lang>
{{out}}
<pre>
Line 923 ⟶ 1,025:
 
=={{header|ContextFree}}==
<syntaxhighlight lang="contextfree">
<lang contextFree>
startshape START
 
Line 1,025 ⟶ 1,127:
ARCL [ size 0.97 y 0.55 r 1.5 ]
}
</syntaxhighlight>
</lang>
{{out}}
[https://www.contextfreeart.org/gallery/view.php?id=4205 Output Image]
Line 1,031 ⟶ 1,133:
=={{header|D}}==
This generates a single image ASCII stereogram.
<langsyntaxhighlight lang="d">// Derived from AA3D - ASCII art stereogram generator
// by Jan Hubicka and Thomas Marsh
// (GNU General Public License)
Line 1,089 ⟶ 1,191:
writeln();
}
}</langsyntaxhighlight>
{{out}}
<pre>nguageDLangunguageDLangunguageDLangunguageDLangung
Line 1,105 ⟶ 1,207:
 
=={{header|Dart}}==
<langsyntaxhighlight lang="dart">
void main(){
print("""
Line 1,115 ⟶ 1,217:
""".replaceAll('X','_/'));
}
</syntaxhighlight>
</lang>
{{out}}
<pre>
Line 1,125 ⟶ 1,227:
 
</pre>
=={{header|Delphi}}==
{{libheader| System.SysUtils}}
{{Trans|Java}}
<syntaxhighlight lang="delphi">
program Write_language_name_in_3D_ASCII;
 
{$APPTYPE CONSOLE}
 
uses
System.SysUtils;
 
const
z: TArray<char> = [' ', ' ', '_', '/'];
f: TArray<TArray<Cardinal>> = [[87381, 87381, 87381, 87381, 87381, 87381,
87381], [349525, 375733, 742837, 742837, 375733, 349525, 349525], [742741,
768853, 742837, 742837, 768853, 349525, 349525], [349525, 375733, 742741,
742741, 375733, 349525, 349525], [349621, 375733, 742837, 742837, 375733,
349525, 349525], [349525, 375637, 768949, 742741, 375733, 349525, 349525], [351157,
374101, 768949, 374101, 374101, 349525, 349525], [349525, 375733, 742837,
742837, 375733, 349621, 351157], [742741, 768853, 742837, 742837, 742837,
349525, 349525], [181, 85, 181, 181, 181, 85, 85], [1461, 1365, 1461, 1461,
1461, 1461, 2901], [742741, 744277, 767317, 744277, 742837, 349525, 349525],
[181, 181, 181, 181, 181, 85, 85], [1431655765, 3149249365, 3042661813,
3042661813, 3042661813, 1431655765, 1431655765], [349525, 768853, 742837,
742837, 742837, 349525, 349525], [349525, 375637, 742837, 742837, 375637,
349525, 349525], [349525, 768853, 742837, 742837, 768853, 742741, 742741], [349525,
375733, 742837, 742837, 375733, 349621, 349621], [349525, 744373, 767317,
742741, 742741, 349525, 349525], [349525, 375733, 767317, 351157, 768853,
349525, 349525], [374101, 768949, 374101, 374101, 351157, 349525, 349525], [349525,
742837, 742837, 742837, 375733, 349525, 349525], [5592405, 11883957,
11883957, 5987157, 5616981, 5592405, 5592405], [366503875925, 778827027893,
778827027893, 392374737749, 368114513237, 366503875925, 366503875925], [349525,
742837, 375637, 742837, 742837, 349525, 349525], [349525, 742837, 742837,
742837, 375733, 349621, 375637], [349525, 768949, 351061, 374101, 768949,
349525, 349525], [375637, 742837, 768949, 742837, 742837, 349525, 349525], [768853,
742837, 768853, 742837, 768853, 349525, 349525], [375733, 742741, 742741,
742741, 375733, 349525, 349525], [192213, 185709, 185709, 185709, 192213,
87381, 87381], [1817525, 1791317, 1817429, 1791317, 1817525, 1398101,
1398101], [768949, 742741, 768853, 742741, 742741, 349525, 349525], [375733,
742741, 744373, 742837, 375733, 349525, 349525], [742837, 742837, 768949,
742837, 742837, 349525, 349525], [48053, 23381, 23381, 23381, 48053, 21845,
21845], [349621, 349621, 349621, 742837, 375637, 349525, 349525], [742837,
744277, 767317, 744277, 742837, 349525, 349525], [742741, 742741, 742741,
742741, 768949, 349525, 349525], [11883957, 12278709, 11908533, 11883957,
11883957, 5592405, 5592405], [11883957, 12277173, 11908533, 11885493,
11883957, 5592405, 5592405], [375637, 742837, 742837, 742837, 375637, 349525,
349525], [768853, 742837, 768853, 742741, 742741, 349525, 349525], [6010197,
11885397, 11909973, 11885397, 6010293, 5592405, 5592405], [768853, 742837,
768853, 742837, 742837, 349525, 349525], [375733, 742741, 375637, 349621,
768853, 349525, 349525], [12303285, 5616981, 5616981, 5616981, 5616981,
5592405, 5592405], [742837, 742837, 742837, 742837, 375637, 349525, 349525],
[11883957, 11883957, 11883957, 5987157, 5616981, 5592405, 5592405], [3042268597,
3042268597, 3042661813, 1532713813, 1437971797, 1431655765, 1431655765], [11883957,
5987157, 5616981, 5987157, 11883957, 5592405, 5592405], [11883957, 5987157,
5616981, 5616981, 5616981, 5592405, 5592405], [12303285, 5593941, 5616981,
5985621, 12303285, 5592405, 5592405]];
 
function ReverseString(s: string): string;
var
i, len: integer;
begin
len := s.Length;
SetLength(Result, len);
for i := 1 to len do
Result[len - i + 1] := s[i];
end;
 
procedure F5(s: ansistring);
begin
var o: TArray<TStringBuilder>;
SetLength(o, 7);
for var i := 0 to High(o) do
o[i] := TStringBuilder.Create;
 
var l := length(s);
for var i := 1 to l do
begin
var c: Integer := ord(s[i]);
if c in [65..90] then
c := c - 39
else if c in [97..122] then
c := c - 97
else
c := -1;
 
inc(c);
var d: TArray<Cardinal> := f[c];
for var j := 0 to 6 do
begin
var b := TStringBuilder.Create;
var v := d[j];
 
while v > 0 do
begin
b.Append(z[Trunc(v and 3)]);
v := v shr 2;
end;
o[j].Append(ReverseString(b.ToString));
b.Free;
end;
end;
for var i := 0 to 6 do
begin
for var j := 0 to 6 - i do
write(' ');
writeln(o[i].ToString);
end;
 
for var i := 0 to High(o) do
o[i].Free;
end;
 
begin
F5('Delphi');
F5('Thanks Java');
F5('guy');
readln;
end.</syntaxhighlight>
{{out}}
<pre> _/_/_/ _/ _/ _/
_/ _/ _/_/ _/ _/_/_/ _/_/_/
_/ _/ _/_/_/_/ _/ _/ _/ _/ _/ _/
_/ _/ _/ _/ _/ _/ _/ _/ _/
_/_/_/ _/_/_/ _/ _/_/_/ _/ _/ _/
_/
_/
_/_/_/_/_/ _/ _/ _/
_/ _/_/_/ _/_/_/ _/_/_/ _/ _/ _/_/_/ _/ _/_/_/ _/ _/ _/_/_/
_/ _/ _/ _/ _/ _/ _/ _/_/ _/_/ _/ _/ _/ _/ _/ _/ _/
_/ _/ _/ _/ _/ _/ _/ _/ _/ _/_/ _/ _/ _/ _/ _/ _/ _/ _/
_/ _/ _/ _/_/_/ _/ _/ _/ _/ _/_/_/ _/_/ _/_/_/ _/ _/_/_/
 
 
 
_/_/_/ _/ _/ _/ _/
_/ _/ _/ _/ _/ _/
_/ _/ _/ _/ _/ _/
_/_/_/ _/_/_/ _/_/_/
_/ _/
_/_/ _/_/</pre>
 
=={{header|Elixir}}==
<langsyntaxhighlight lang="elixir">defmodule ASCII3D do
def decode(str) do
Regex.scan(~r/(\d+)(\D+)/, str)
Line 1,139 ⟶ 1,381:
2 3 B5_1/4 6 B3 1B/_/2 /1_2 6 B1\n3 3 B10_6 B3 3 /2B_1_6 B1
4 2 B11_2B 1B_B2 B1_B 3 /1B/_/B_B2 B B_B1\n6 1B/11_1/3 B/_/2 3 B/_/"
IO.puts ASCII3D.decode(data)</langsyntaxhighlight>
 
{{out}}
Line 1,155 ⟶ 1,397:
 
=={{header|Erlang}}==
<langsyntaxhighlight lang="erlang">%% Implemented by Arjun Sunel
-module(three_d).
-export([main/0]).
Line 1,161 ⟶ 1,403:
main() ->
io:format(" _____ _ \n| ___| | | \n| |__ _ __| | __ _ _ __ __ _ \n| __| '__| |/ _` | '_ \\ / _` |\n| |__| | | | (_| | | | | (_| |\n|____/_| |_|\\__,_|_| |_|\\__, |\n __/ |\n |___/\n").
</syntaxhighlight>
</lang>
{{out}}
<pre>
Line 1,177 ⟶ 1,419:
'''3D ASCII:'''
{{trans|Elixir}}
<langsyntaxhighlight lang="erlang">-module(ascii3d).
-export([decode/1]).
 
Line 1,185 ⟶ 1,427:
Joined = string:join(lists:flatmap(Fun, Splited), ""),
Lines = binary:replace(binary:list_to_bin(Joined), <<"B">>, <<"\\">>, [global]),
io:format("~s~n", [Lines]).</langsyntaxhighlight>
{{out}}
<pre>
Line 1,210 ⟶ 1,452:
 
=={{header|ERRE}}==
<langsyntaxhighlight ERRElang="erre">PROGRAM 3D_NAME
 
DIM TBL$[17,1]
Line 1,246 ⟶ 1,488:
 
END PROGRAM
</syntaxhighlight>
</lang>
{{out}}
<pre>
Line 1,270 ⟶ 1,512:
 
=={{header|F_Sharp|F#}}==
<langsyntaxhighlight lang="fsharp">let make2Darray (picture : string list) =
let maxY = picture.Length
let maxX = picture |> List.maxBy String.length |> String.length
Line 1,313 ⟶ 1,555:
if x = 0 then printfn ""
printf "%c" c) a2
</syntaxhighlight>
</lang>
{{out}}
<pre>
Line 1,330 ⟶ 1,572:
=={{header|Forth}}==
=== Text strings ===
<langsyntaxhighlight FORTHlang="forth">\ Rossetta Code Write language name in 3D ASCII
\ Simple Method
 
Line 1,347 ⟶ 1,589:
( test at the console )
page "forth"
</syntaxhighlight>
</lang>
 
{{out}}
Line 1,367 ⟶ 1,609:
 
=== Bit Matrix Method ===
<langsyntaxhighlight FORTHlang="forth">\ Original code: "Short phrases with BIG Characters by Wil Baden 2003-02-23
\ Modified BFox for simple 3D presentation 2015-07-14
 
Line 1,469 ⟶ 1,711:
\ test the solution in the Forth console
 
</syntaxhighlight>
</LANG>
 
{{out}}
Line 1,494 ⟶ 1,736:
 
</pre>
 
 
=={{header|FutureBasic}}==
<syntaxhighlight lang="futurebasic">
_window = 1
begin enum 1
_asciiField
end enum
 
void local fn BuildWindow
CGRect r = fn CGRectMake( 0, 0, 610, 140 )
window _window, @"Rosetta Code — FutureBasic in 3D ASCII", r, NSWindowStyleMaskTitled + NSWindowStyleMaskClosable
WindowSetBackgroundColor( _window, fn ColorBlack )
CFStringRef asciiFB = @" ¬
/$$$$$$$$ / $$ /$$$$$$$ /$$ \n¬
| $$_____/ | $$ | $$__ $$ |__/ \n¬
| $$ /$$ /$$ /$$$$$$ /$$ /$$ /$$$$$$ /$$$$$$ | $$ \\ $$ /$$$$$$ /$$$$$$$ /$$ /$$$$$$$\n¬
| $$$$$ | $$ | $$|_ $$_/ | $$ | $$ /$$__ $$ /$$__ $$| $$$$$$$ |____ $$ /$$_____/| $$ /$$_____/\n¬
| $$__/ | $$ | $$ | $$ | $$ | $$| $$ \\__/| $$$$$$$$| $$__ $$ /$$$$$$$| $$$$$$ | $$| $$ \n¬
| $$ | $$ | $$ | $$ /$$| $$ | $$| $$ | $$_____/| $$ \\ $$ /$$__ $$ \\____ $$| $$| $$ \n¬
| $$ | $$$$$$/ | $$$$/| $$$$$$/| $$ | $$$$$$$| $$$$$$$/| $$$$$$$ /$$$$$$$/| $$| $$$$$$$\n¬
|__/ \\______/ \\___/ \\______/ |__/ \\_______/|_______/ \\_______/|_______/ |__/ \\_______/\n"
r = fn CGRectMake( 22, 20, 582, 100 )
textfield _asciiField, YES, asciiFB, r, _window
TextFieldSetTextColor( _asciiField, fn ColorYellow )
TextFieldSetBordered( _asciiField, NO )
TextFieldSetBackgroundColor( _asciiField, fn ColorBlack )
ControlSetFontWithName( _asciiField, @"Menlo", 9.0 )
end fn
 
void local fn DoDialog( ev as long, tag as long, wnd as long )
select ( ev )
case _windowWillClose : end
end select
end fn
 
on dialog fn DoDialog
 
fn BuildWindow
 
HandleEvents
</syntaxhighlight>
{{output}}
[[File:FutureBasic in ASCII Art.png]]
 
 
 
=={{header|Go}}==
Line 1,499 ⟶ 1,789:
 
For the interest component of the task, I thought about rendering the result from an input string and realized that it wasn't completely trivial as the glyphs of the Lean font overlap with the standard letter spacing. Rendering different fonts would add interest because now there would be a point in developing a common font representation and rendering function. Block and Lean would have sufficed, but I looked further and found the Keyboard and Small Keyboard fonts. These I found somewhat amusing, for the final component of the task.
<langsyntaxhighlight lang="go">package main
 
import (
Line 1,591 ⟶ 1,881:
fmt.Println(render("Go", lean))
fmt.Println(render("Go", smallKeyboard))
}</langsyntaxhighlight>
{{out}}
<pre>
Line 1,607 ⟶ 1,897:
=={{header|Groovy}}==
A simple way to display ASCII art
<langsyntaxhighlight Groovylang="groovy">println """\
_|_|_|
_| _| _|_| _|_| _|_| _| _| _| _|
Line 1,614 ⟶ 1,904:
_|_|_| _| _|_| _|_| _| _|_|_|
_|
_|_|"""</langsyntaxhighlight>
A more complicated example:
<langsyntaxhighlight Groovylang="groovy">String.metaClass.getAsAsciiArt = {
def request = "http://www.network-science.de/ascii/ascii.php?TEXT=${delegate}&x=23&y=10&FONT=block&RICH=no&FORM=left&STRE=no&WIDT=80"
def html = new URL(request).text
Line 1,622 ⟶ 1,912:
}
 
println "Groovy".asAsciiArt</langsyntaxhighlight>
{{out}}
<pre> _|_|_|
Line 1,634 ⟶ 1,924:
=={{header|Haskell}}==
A simple printing of the ASCII art
<langsyntaxhighlight Haskelllang="haskell">module Main where
{-
__ __ __ ___ ___
Line 1,655 ⟶ 1,945:
 
main = putStrLn ascii3d
</syntaxhighlight>
</lang>
 
{{out}}
Line 1,669 ⟶ 1,959:
=={{header|Icon}} and {{header|Unicon}}==
The following fits under the fuzzy definition of 3D ASCII and pays homage to one of the Icon Newsletter logos.
<langsyntaxhighlight Iconlang="icon">procedure main(arglist)
write(ExpandText(
if !arglist == "icon" then
Line 1,702 ⟶ 1,992:
s ? until pos(0) do
writes(repl(" ",tab(many(&digits)))|tab(upto(&digits)|0))
end</langsyntaxhighlight>
 
{{out}} with "icon" as the argument:
Line 1,738 ⟶ 2,028:
=={{header|J}}==
 
<langsyntaxhighlight lang="j"> require 'vrml.ijs' NB. Due to Andrew Nikitin
view 5#.^:_1]21-~a.i.'j*ez`C3\toy.G)' NB. Due to Oleg Kobchenko
________________________
Line 1,760 ⟶ 2,050:
\| | | |
\_____|_____|_____|
</syntaxhighlight>
</lang>
 
For the VRML script, see [http://nsg.upor.net/jpage/jpage.htm Andrew Nikitin's J page] (search for VRML) and for the origin of the 3D J banner, see [http://www.jsoftware.com/pipermail/programming/2007-May/006539.html Oleg Kobchenko's post to the J Forums].
Line 1,766 ⟶ 2,056:
Here's a slimmer version:
 
<langsyntaxhighlight Jlang="j"> view 8 8 8#:'"#$%&,4<DHLPTYZ[\'-&(a.&i.)' '
Line 1,802 ⟶ 2,092:
\| |
\_____|
</syntaxhighlight>
</lang>
 
Explanation: the argument says where to place the solid "blocks". Each block is described by three integers, describing position along the x, y and z axis. In other words, 1 0 0 is one position to the right of 0 0 0, while 0 1 0 is one place down and 0 0 1 is one place towards the observer. (Thus the space at the top of the "slimmer" version could have been eliminated by subtracting 2 from the middle column of integers being passed to 'view'.)
Line 1,814 ⟶ 2,104:
 
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>.
<langsyntaxhighlight lang="java">public class F5{
char[]z={' ',' ','_','/',};
long[][]f={
Line 1,892 ⟶ 2,182:
System.out.print(' ');
System.out.println(o[i]);}}}
</syntaxhighlight>
</lang>
 
{{out}} With no parameters:
Line 1,914 ⟶ 2,204:
_/
_/_/
</pre>
 
=={{header|jq}}==
{{works with|jq}}
'''Works with gojq, the Go implementation of jq'''
 
One small point of interest here is the use of string interpolation to simulate a "heredoc" string.
<syntaxhighlight lang="jq">def jq:
"\("
#
#
# # ###
# # # #
# # # #
# # # # ####
# ### #
#
")";
 
def banner3D:
jq | split("\n") | map( gsub("#"; "╔╗") | gsub(" "; " ") )
| [[range(length;0;-1) | " " * .], . ] | transpose[] | join("") ;
 
banner3D</syntaxhighlight>
{{out}}
<pre>
╔╗
╔╗
╔╗ ╔╗ ╔╗╔╗╔╗
╔╗ ╔╗ ╔╗ ╔╗
╔╗ ╔╗ ╔╗ ╔╗
╔╗ ╔╗ ╔╗ ╔╗ ╔╗╔╗╔╗╔╗
╔╗ ╔╗╔╗╔╗ ╔╗
╔╗
 
</pre>
 
=={{header|Julia}}==
{{trans|Awk}}
<langsyntaxhighlight lang="julia">println(replace(raw"""
xxxxx
x x
Line 1,928 ⟶ 2,253:
xx xx x x x x xx
""", "x" => "_/"))
</langsyntaxhighlight>{{output}}<pre>
_/_/_/_/_/
_/ _/
Line 1,941 ⟶ 2,266:
=={{header|Kotlin}}==
{{trans|Java}}
<langsyntaxhighlight lang="scala">// version 1.1
 
class Ascii3D(s: String) {
Line 2,037 ⟶ 2,362:
Ascii3D("of the")
Ascii3D("Java entry")
}</langsyntaxhighlight>
 
{{out}}
Line 2,079 ⟶ 2,404:
 
=={{header|Lasso}}==
<langsyntaxhighlight Lassolang="lasso">local(lasso = "
---------------------------------------------------------------
| ,--, |
Line 2,098 ⟶ 2,423:
")
 
stdoutnl(#lasso)</langsyntaxhighlight>
<pre>---------------------------------------------------------------
| ,--, |
Line 2,118 ⟶ 2,443:
 
=={{header|Lua}}==
<langsyntaxhighlight lang="lua">io.write(" /$$\n")
io.write("| $$\n")
io.write("| $$ /$$ /$$ /$$$$$$\n")
Line 2,125 ⟶ 2,450:
io.write("| $$ | $$ | $$ /$$__ $$\n")
io.write("| $$$$$$$$| $$$$$$/| $$$$$$$\n")
io.write("|________/ \______/ \_______/\n")</langsyntaxhighlight>
{{out}}
<pre> /$$
Line 2,135 ⟶ 2,460:
| $$$$$$$$| $$$$$$/| $$$$$$$
|________/ ______/ _______/</pre>
Alternate:
<syntaxhighlight lang="lua">print[[
__
/\ \
\ \ \ __ __ ____
\ \ \ /\ \/\ \ / __ \
\ \ \___\ \ \_\ \/\ \_\ \_
\ \____\\ \____/\ \___/\_\
\/____/ \/___/ \/__/\/_/]]</syntaxhighlight>
{{out}}
<pre> __
/\ \
\ \ \ __ __ ____
\ \ \ /\ \/\ \ / __ \
\ \ \___\ \ \_\ \/\ \_\ \_
\ \____\\ \____/\ \___/\_\
\/____/ \/___/ \/__/\/_/</pre>
 
=={{header|Mathematica}}/{{header|Wolfram Language}}==
No hardcoding at all!
<langsyntaxhighlight Mathematicalang="mathematica">locs = Position[
ImageData[Binarize[Rasterize["Mathematica", ImageSize -> 150]]], 0];
Print[StringRiffle[
Line 2,146 ⟶ 2,488:
ConstantArray[
" ", {Max[locs[[All, 1]]] + 1, Max[locs[[All, 2]]] + 1}],
locs -> "\\"], Map[# + 1 &, locs, {2}] -> "#"], "\n"]];</langsyntaxhighlight>
{{output}}
<pre>
Line 2,171 ⟶ 2,513:
=={{header|MiniScript}}==
Nothing fancy here, but in keeping with MiniScript's "clear and simple" ethos:
<langsyntaxhighlight MiniScriptlang="miniscript">data = [
" ______ _____ _________",
"|\ \/ \ ___ ________ ___|\ _____\ ________ ________ ___ ________ _________ ",
Line 2,183 ⟶ 2,525:
for line in data
print line
end for</langsyntaxhighlight>
{{out}}
<pre> ______ _____ _________
Line 2,195 ⟶ 2,537:
 
=={{header|Modula-2}}==
<langsyntaxhighlight lang="modula2">MODULE Art;
FROM Terminal IMPORT WriteString,WriteLn,ReadChar;
 
Line 2,233 ⟶ 2,575:
ReadChar
END Art.
</syntaxhighlight>
</lang>
 
=={{header|Nanoquery}}==
<langsyntaxhighlight lang="nanoquery">println " ________ ________ ________ ________ ________ ___ ___ _______ ________ ___ ___ "
println "|\\ ___ \\|\\ __ \\|\\ ___ \\|\\ __ \\|\\ __ \\|\\ \\|\\ \\|\\ ___ \\ |\\ __ \\ |\\ \\ / /| "
println "\\ \\ \\\\ \\ \\ \\ \\|\\ \\ \\ \\\\ \\ \\ \\ \\|\\ \\ \\ \\|\\ \\ \\ \\\\\\ \\ \\ __/|\\ \\ \\|\\ \\ \\ \\ \\/ / / "
Line 2,243 ⟶ 2,585:
println " \\ \\__\\\\ \\__\\ \\__\\ \\__\\ \\__\\\\ \\__\\ \\_______\\ \\_____ \\ \\_______\\ \\_______\\ \\__\\\\ _\\ __/ / / "
println " \\|__| \\|__|\\|__|\\|__|\\|__| \\|__|\\|_______|\\|___| \\__\\|_______|\\|_______|\\|__|\\|__|\\___/ / "
println " \\|__| \\|___|/ "</langsyntaxhighlight>
{{out}}
<pre> ________ ________ ________ ________ ________ ___ ___ _______ ________ ___ ___
Line 2,256 ⟶ 2,598:
=={{header|NetRexx}}==
Based on an idea found in the [[#Scala|Scala]] version.
<langsyntaxhighlight NetRexxlang="netrexx">/* NetRexx */
options replace format comments java crossref symbols nobinary
 
Line 2,321 ⟶ 2,663:
method isFalse public constant binary returns boolean
return \isTrue()
</syntaxhighlight>
</lang>
{{out}}
<pre>
Line 2,342 ⟶ 2,684:
=={{header|Nim}}==
{{trans|Python}}
<langsyntaxhighlight lang="nim">import strutils
 
const nim = """
# # ##### # #
## # # ## ##
# # # # # ## #
# # # # # #
# ## # # #
# # ##### # #
"""
"""
let lines = nim.replacededent.multiReplace(("#", "<<<").replace, (" ", " ").replace, ("< ", "<>").replace, ("<\n", "<>\n")).splitLines
for i, line in lines:
echo spaces(lines.len - i), line</langsyntaxhighlight>
{{out}}
<pre> <<<> <<<> <<<<<<<<<<<<<<<> <<<> <<<>
<<<<<<> <<<> <<<> <<<<<<> <<<<<<>
<<<> <<<> <<<> <<<> <<<> <<<<<<> <<<>
<<<> <<<> <<<> <<<> <<<> <<<>
<<<> <<<<<<> <<<> <<<> <<<>
<<<> <<<> <<<<<<<<<<<<<<<> <<<> <<<></pre>
 
=={{header|OCaml}}==
<syntaxhighlight lang="ocaml">
<lang OCaml>
print_string "
_|_|_| _|_|_| _|_| _|_| _|_| _|
Line 2,372 ⟶ 2,714:
_|_|_| _|_|_| _| _| _| _| _|_|_|_|_|
"
</syntaxhighlight>
</lang>
{{out}}
<pre>
Line 2,384 ⟶ 2,726:
 
=={{header|Pascal}}==
<langsyntaxhighlight lang="pascal">
program WritePascal;
 
Line 2,410 ⟶ 2,752:
end;
end.
</syntaxhighlight>
</lang>
Need 64-Bit Integer for this solution.
My goal was to do a straight-forward solution, (Just two nested loops, no conditional code).
Line 2,428 ⟶ 2,770:
 
=={{header|Perl}}==
<langsyntaxhighlight lang="perl">#!/usr/bin/perl
use strict;
use warnings;
Line 2,438 ⟶ 2,780:
) {
print $tuple->[0] x $tuple->[1];
}</langsyntaxhighlight>
{{out}}
<pre> _ \ |
Line 2,447 ⟶ 2,789:
 
=={{header|Phix}}==
<!--<syntaxhighlight lang="phix">(phixonline)-->
<lang Phix>constant s = """
<span style="color: #008080;">constant</span> <span style="color: #000000;">s</span> <span style="color: #0000FF;">=</span> <span style="color: #008000;">"""
------*** *
------* ** *
-----* * * *
----* * * *
---* *** * * *
--* * ** * * *
-* * * * * *
* * * * * *
"""
"""</span>
puts(1,substitute_all(s,"* ",{"_/"," "}))</lang>
<span style="color: #7060A8;">puts</span><span style="color: #0000FF;">(</span><span style="color: #000000;">1</span><span style="color: #0000FF;">,</span><span style="color: #7060A8;">substitute_all</span><span style="color: #0000FF;">(</span><span style="color: #000000;">s</span><span style="color: #0000FF;">,</span><span style="color: #008000;">"* "</span><span style="color: #0000FF;">,{</span><span style="color: #008000;">"_/"</span><span style="color: #0000FF;">,</span><span style="color: #008000;">" "</span><span style="color: #0000FF;">}))</span>
<!--</syntaxhighlight>-->
{{out}}
<pre>
Line 2,469 ⟶ 2,813:
===obfuscated===
For those of you who like this sort of thing, same output
<!--<syntaxhighlight lang="phix">(phixonline)-->
<lang Phix>constant q = {0(30)10C,0(31)176,0(32)2A4,0(33)6N3,0(34)7GP,0(35)DWF,0(36)QC4}
<span style="color: #008080;">constant</span> <span style="color: #000000;">q</span> <span style="color: #0000FF;">=</span> <span style="color: #0000FF;">{</span><span style="color: #000000;">0(30)10C</span><span style="color: #0000FF;">,</span><span style="color: #000000;">0(31)176</span><span style="color: #0000FF;">,</span><span style="color: #000000;">0(32)2A4</span><span style="color: #0000FF;">,</span><span style="color: #000000;">0(33)6N3</span><span style="color: #0000FF;">,</span><span style="color: #000000;">0(34)7GP</span><span style="color: #0000FF;">,</span><span style="color: #000000;">0(35)DWF</span><span style="color: #0000FF;">,</span><span style="color: #000000;">0(36)QC4</span><span style="color: #0000FF;">}</span>
puts(1,substitute_all(sprintf(join(repeat("%16b",7),"\n"),q)," 10",{"-","_/"," "})&"\n")</lang>
<span style="color: #7060A8;">puts</span><span style="color: #0000FF;">(</span><span style="color: #000000;">1</span><span style="color: #0000FF;">,</span><span style="color: #7060A8;">substitute_all</span><span style="color: #0000FF;">(</span><span style="color: #7060A8;">sprintf</span><span style="color: #0000FF;">(</span><span style="color: #7060A8;">join</span><span style="color: #0000FF;">(</span><span style="color: #7060A8;">repeat</span><span style="color: #0000FF;">(</span><span style="color: #008000;">"%16b"</span><span style="color: #0000FF;">,</span><span style="color: #000000;">7</span><span style="color: #0000FF;">),</span><span style="color: #008000;">"\n"</span><span style="color: #0000FF;">),</span><span style="color: #000000;">q</span><span style="color: #0000FF;">),</span><span style="color: #008000;">" 10"</span><span style="color: #0000FF;">,{</span><span style="color: #008000;">"-"</span><span style="color: #0000FF;">,</span><span style="color: #008000;">"_/"</span><span style="color: #0000FF;">,</span><span style="color: #008000;">" "</span><span style="color: #0000FF;">})&</span><span style="color: #008000;">"\n"</span><span style="color: #0000FF;">)</span>
<!--</syntaxhighlight>-->
===another version===
Inspired by Ruby
<!--<syntaxhighlight lang="phix">(phixonline)-->
<lang Phix>puts(1,"""
<span style="color: #7060A8;">puts</span><span style="color: #0000FF;">(</span><span style="color: #000000;">1</span><span style="color: #0000FF;">,</span><span style="color: #008000;">"""
__ ________
/_/\ /__ ______ \ ________
\ /_/\ \/ /\____/ /______ \ __
\ \ \/ / \____/ /\ //_/\__
\ \ \/___ / / / \_\//_ __/\
/ \ \ \______/___/ / / \_/\/_ /\ __
/ /\ ____ \______/ \/ \ \ /_/\/ /\
/ / /\ \ \____ \ \ \ \ \_ \ / /
/ / / /\ \ \ \ \ \ / /\_\ \/
/_ / / \ \ \ \ \ \ /_ / /\ \
\ /_\/ / \ \_ \/ \ \_\/ \ /_\/ /\_ \/
\_\/ \_\/ \_\/ \_\/\_\/
""")
"""</span><span style="color: #0000FF;">)</span>
-- or if you prefer something a little more cryptic (same output):
<span style="color: #000080;font-style:italic;">-- or if you prefer something a little more cryptic (same output):</span>
puts(1," __ ________\n /_/\\ / ______ \\\n \\ \\ \\/ /\\____/ /\\ __\n "&
<span style="color: #7060A8;">puts</span><span style="color: #0000FF;">(</span><span style="color: #000000;">1</span><span style="color: #0000FF;">,</span><span style="color: #008000;">" __ ________\n /_/\\ / ______ \\\n \\ \\ \\/ /\\____/ /\\ __\n "</span><span style="color: #0000FF;">&</span>
"\\ \\ \\/ / / / //_/\\\n \\ \\ \\/___/ / / \\_\\/_ __\n /\\ \\__"&
<span style="____color: #008000;">"\\ \\ \\/ / / /_ /\\/ _/\\\n / /\\ ____ \\ \\/___/ / / \\ \\ _\\/_ / __\n / / /\\ \\__"</span><span style="color: #0000FF;">&</span>
"\\ \\<span \\style="color: \\#008000;">"____/ / \\ /_/\\ / /\\\n / / /\\ ____ \\ \\ \\ \\ \\/ /\\ n / / /\\ \\\n/_/ "</span><span style="color: \\#0000FF;">&</span>
<span style="color: #008000;">"\\ \\ \\ \\ \\ /_/ /\\ \\\n\\_\\/ /\n / / / \\_ \\/ \\_ \\/ \\_ \\ / / \\\n/_/ / \\"</\nspan><span style="color: #0000FF;")>&</langspan>
<span style="color: #008000;">" \\ \\ \\ \\ \\ /_/ /\\ \\\n\\_\\/ \\_\\/ \\_\\/ \\_\\/\\_\\/\n"</span><span style="color: #0000FF;">)</span>
<!--</syntaxhighlight>-->
 
=={{header|PicoLisp}}==
{{Trans|Tcl}}
<langsyntaxhighlight PicoLisplang="picolisp">(de Lst
"***** * "
"* * * * * "
Line 2,529 ⟶ 2,877:
(maplist '((X) (transform X "/" "\\")) (cdr Lst)) )
 
(bye)</langsyntaxhighlight>
 
{{out}}
Line 2,542 ⟶ 2,890:
///\/ ///\/ ////////////\ ////////////\/ ////////////\ ///\/ ////////////\/ ///\/
\\\/ \\\/ \\\\\\\\\\\\/ \\\\\\\\\\\\/ \\\\\\\\\\\\/ \\\/ \\\\\\\\\\\\/ \\\/
</pre>
 
=={{header|Plain English}}==
<syntaxhighlight lang="text">
To run:
Start up.
Print the language name in 3D ASCII.
Wait for the escape key.
Shut down.
 
To print the language name in 3D ASCII:
Write "Osmosian Order of" to the console.
Write " ____ _ _" to the console.
Write "/___ \ /_/| /_/|" to the console.
Write "| \ \| || ____ |_|/ _____" to the console.
Write "| |\ \|| || /___/| _ /____/\" to the console.
Write "| | | || || / ||/_/|| \ \" to the console.
Write "| |/ / | ||/ /| ||| ||| |\ \/" to the console.
Write "| __/ | ||| | | ||| ||| | | ||" to the console.
Write "| || | ||\ \| ||| ||| | | ||" to the console.
Write "|_|/ |_|/ \____|/|_|/|_| |_|/" to the console.
Write " ______ _ _ _" to the console.
Write "/_____/| /_/|/_/| /_/|" to the console.
Write "| ___|/ _____ ____ | |||_|/ _______| ||__" to the console.
Write "| ||___ /____/\ /___/|| || _ /______/| /__/\" to the console.
Write "| |/__/|| \ \ / ||| ||/_/|/ ___|/| \ \" to the console.
Write "| ___|/| |\ \// /| ||| ||| ||| |___/\| |\ \/" to the console.
Write "| ||___ | | | ||| | | ||| ||| ||\____ \|| | | ||" to the console.
Write "| |/__/|| | | ||\ \| ||| ||| ||____| || | | ||" to the console.
Write "|_____|/|_| |_|/ \__ |||_|/|_|/|_____/ |_| |_|/" to the console.
Write " ___| ||" to the console.
Write " /___/ //" to the console.
Write " |____//" to the console.
Write "Programmers" to the console.
</syntaxhighlight>
{{out}}
<pre>
Osmosian Order of
____ _ _
/___ \ /_/| /_/|
| \ \| || ____ |_|/ _____
| |\ \|| || /___/| _ /____/\
| | | || || / ||/_/|| \ \
| |/ / | ||/ /| ||| ||| |\ \/
| __/ | ||| | | ||| ||| | | ||
| || | ||\ \| ||| ||| | | ||
|_|/ |_|/ \____|/|_|/|_| |_|/
______ _ _ _
/_____/| /_/|/_/| /_/|
| ___|/ _____ ____ | |||_|/ _______| ||__
| ||___ /____/\ /___/|| || _ /______/| /__/\
| |/__/|| \ \ / ||| ||/_/|/ ___|/| \ \
| ___|/| |\ \// /| ||| ||| ||| |___/\| |\ \/
| ||___ | | | ||| | | ||| ||| ||\____ \|| | | ||
| |/__/|| | | ||\ \| ||| ||| ||____| || | | ||
|_____|/|_| |_|/ \__ |||_|/|_|/|_____/ |_| |_|/
___| ||
/___/ //
|____//
Programmers
</pre>
 
=={{header|PureBasic}}==
<langsyntaxhighlight lang="purebasic">If OpenConsole()
PrintN(" ////\ ////\ ////| ")
PrintN(" //// \ __ //// \ __ |XX|_/ ")
Line 2,562 ⟶ 2,970:
Print(#CRLF$ + #CRLF$ + "Press ENTER to exit"): Input()
CloseConsole()
EndIf</langsyntaxhighlight>
Sample output:
<pre> ////\ ////\ ////|
Line 2,580 ⟶ 2,988:
 
=={{header|Python}}==
Again<b>Implementation 1:</b> based on the Scala type idea of 'fleshing out' a 2D banner version.
<langsyntaxhighlight lang="python">py = '''\
##### # # ##### # # #### # #
# # # # # # # # # ## #
# ### # # ###### # # # # #
##### # # # # # # # # #
# # # # # ### # # ##'''
 
# # # # # #### # #
lines = py.replace('#', '<<<').replace(' ','X') \
'''
.replace('X', ' ').replace('\n', ' Y') \
.replace('< ', '<>').split('Y')
 
lines = py.replace('#', '<<<').replace(' ','X').replace('X', ' ').replace('\n', ' Y').replace('< ', '<>').split('Y')
for i, l in enumerate(lines):
print( ' ' * (len(lines) - i) + l)</langsyntaxhighlight>
 
{{out}}
<pre> style="overflow-x: auto; white-space: pre;"> <<<<<<<<<<<<<<<> <<<> <<<> <<<<<<<<<<<<<<<> <<<> <<<> <<<<<<<<<<<<> <<<> <<<>
<<<> <<<> <<<> <<<> <<<> <<<> <<<> <<<> <<<> <<<<<<> <<<>
<<<> <<<<<<<<<> <<<> <<<> <<<<<<<<<<<<<<<<<<> <<<> <<<> <<<> <<<> <<<>
<<<> <<<<<<<<<<<<<<<> <<<> <<<> <<<> <<<> <<<> <<<> <<<> <<<> <<<>
<<<> <<<> <<<> <<<> <<<> <<<<<<<<<> <<<> <<<> <<<<<</pre>
<<<> <<<> <<<> <<<> <<<> <<<<<<<<<<<<> <<<> <<<></pre>
 
<b>Implementation 2:</b>
Another implementation:
<syntaxhighlight lang="python">charWidth = 10
charHeight = 8
 
# char table is split into sets to prevent very long lines...
{{lines too long|Python|name 'table' should be split at least.
charSet1 = [
" ###### /####### ###### /###### /######## /######## ###### /## /##",
" /##__ ##| ##__ ## /##__ ##| ##__ ## | ##_____/| ##_____/ /##__ ##| ## | ##",
"| ## | ##| ## | ##| ## \__/| ## \ ##| ## | ## | ## \__/| ## | ##",
"| ########| ####### | ## | ## | ##| ########| ########| ## #####| ########",
"| ##__ ##| ##__ ##| ## | ## | ##| ##_____/| ##_____/| ##|_ ##| ##__ ##",
"| ## | ##| ## | ##| ## /##| ## /##/| ## | ## | ## | ##| ## | ##",
"| ## | ##| #######/| ######/| ######/ | ########| ## | ######/| ## | ##",
"|__/ |__/|_______/ \______/ |______/ |________/|__/ \______/ |__/ |__/",
]
 
charSet2 = [
---- BTW, there is NO LIMIT on the number of characters in a single line of the source code written in Python.
" /######## /## /## /## /## /### ### /## /## ###### /####### ",
}}
"|__ ##__/ | ##| ## /##/| ## | ########| ### | ## /##__ ##| ##__ ##",
" | ## | ##| ## /##/ | ## | ## ## ##| ####| ##| ## | ##| ## | ##",
" | ## | ##| #####/ | ## | ## ## ##| ## ## ##| ## | ##| #######/",
" | ## | ##| ## ## | ## | ## ## ##| ## ####| ## | ##| ##____/ ",
" | ## /## | ##| ##\ ## | ## | ##__/ ##| ##\ ###| ## | ##| ## ",
" /########\ ######/| ## \ ##| ########| ## | ##| ## \ ##| ######/| ## ",
"|________/ \______/ |__/ \__/|________/|__/ |__/|__/ \__/ \______/ |__/ ",
]
 
charSet3 = [
<lang python>
" ###### /####### ###### /######## /## /## /## /## /## /## /## /##",
l = 20
" /##__ ##| ##__ ## /##__ ##|__ ##__/| ## | ##| ## | ##| ## | ##\ ## /##/",
h = 11
"| ## | ##| ## | ##| ## \__/ | ## | ## | ##| ## | ##| ## ## ## \ ####/ ",
"| ## | ##| #######/ \ ###### | ## | ## | ##| ## | ##| ## ## ## \ ##/ ",
"| ## ## ##| ## ## \___ ## | ## | ## | ##| ## ##/| ## ## ## / #### ",
"| ##\ ###/| ##\ ## /## \ ## | ## | ## | ## \ ####/ | ######## / ## ## ",
"| #### ##| ## \ ##\ ######/ | ## | ######/ \ ##/ | ###| ###/ ## \ ##",
" \____\__/|__/ \__/ \______/ |__/ \______/ \__/ |___/|___/\__/ \__/",
]
 
tablecharSet4 = [
" /## /## /######## ###### ",
""" .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .-----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. """,
"\ ## /##/|____ ##/ /##__ ## ",
"""| .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. |""",
" \ ####/ / ##/ | ## | ## ",
"""| | __ | || | ______ | || | ______ | || | ________ | || | _________ | || | _________ | || | ______ | || | ____ ____ | || | _____ | || | _____ | || | ___ ____ | || | _____ | || | ____ ____ | || | ____ _____ | || | ____ | || | ______ | || | ___ | || | _______ | || | _______ | || | _________ | || | _____ _____ | || | ____ ____ | || | _____ _____ | || | ____ ____ | || | ____ ____ | || | ________ | || | ______ | || | | |""",
" \ ##/ / ##/ |__//####/ ",
"""| | / \ | || | |_ _ \ | || | .' ___ | | || | |_ ___ `. | || | |_ ___ | | || | |_ ___ | | || | .' ___ | | || | |_ || _| | || | |_ _| | || | |_ _| | || | |_ ||_ _| | || | |_ _| | || ||_ \ / _|| || ||_ \|_ _| | || | .' `. | || | |_ __ \ | || | .' '. | || | |_ __ \ | || | / ___ | | || | | _ _ | | || ||_ _||_ _|| || ||_ _| |_ _| | || ||_ _||_ _|| || | |_ _||_ _| | || | |_ _||_ _| | || | | __ _| | || | / _ __ `. | || | | |""",
" | ## / ##/ | ##_/ ",
"""| | / /\ \ | || | | |_) | | || | / .' \_| | || | | | `. \ | || | | |_ \_| | || | | |_ \_| | || | / .' \_| | || | | |__| | | || | | | | || | | | | || | | |_/ / | || | | | | || | | \/ | | || | | \ | | | || | / .--. \ | || | | |__) | | || | / .-. \ | || | | |__) | | || | | (__ \_| | || | |_/ | | \_| | || | | | | | | || | \ \ / / | || | | | /\ | | | || | \ \ / / | || | \ \ / / | || | |_/ / / | || | |_/____) | | || | | |""",
" | ## / ##/ |__/ ",
"""| | / ____ \ | || | | __'. | || | | | | || | | | | | | || | | _| _ | || | | _| | || | | | ____ | || | | __ | | || | | | | || | _ | | | || | | __'. | || | | | _ | || | | |\ /| | | || | | |\ \| | | || | | | | | | || | | ___/ | || | | | | | | || | | __ / | || | '.___`-. | || | | | | || | | ' ' | | || | \ \ / / | || | | |/ \| | | || | > `' < | || | \ \/ / | || | .'.' _ | || | / ___.' | || | | |""",
" | ## / ######## /## ",
"""| | _/ / \ \_ | || | _| |__) | | || | \ `.___.'\ | || | _| |___.' / | || | _| |___/ | | || | _| |_ | || | \ `.___] _| | || | _| | | |_ | || | _| |_ | || | | |_' | | || | _| | \ \_ | || | _| |__/ | | || | _| |_\/_| |_ | || | _| |_\ |_ | || | \ `--' / | || | _| |_ | || | \ `-' \_ | || | _| | \ \_ | || | |`\____) | | || | _| |_ | || | \ `--' / | || | \ ' / | || | | /\ | | || | _/ /'`\ \_ | || | _| |_ | || | _/ /__/ | | || | |_| | || | | |""",
" |__/ \________/ |__/ ",
"""| ||____| |____|| || | |_______/ | || | `._____.' | || | |________.' | || | |_________| | || | |_____| | || | `._____.' | || | |____||____| | || | |_____| | || | `.___.' | || | |____||____| | || | |________| | || ||_____||_____|| || ||_____|\____| | || | `.____.' | || | |_____| | || | `.___.\__| | || | |____| |___| | || | |_______.' | || | |_____| | || | `.__.' | || | \_/ | || | |__/ \__| | || | |____||____| | || | |______| | || | |________| | || | (_) | || | | |""",
]
"""| | | || | | || | | || | | || | | || | | || | | || | | || | | || | | || | | || | | || | | || | | || | | || | | || | | || | | || | | || | | || | | || | | || | | || | | || | | || | | || | | || | | |""",
 
"""| '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' |""",
# ...then the sets are combined back by barbequing them together!
""" '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' """
charTable = [(charSet1[i] +
]
charSet2[i] +
charSet3[i] +
charSet4[i]) for i in range(charHeight)]
 
if __name__ == '__main__':
ttext = raw_inputinput("Enter the text to convert :\n")
if not t text:
ttext = "PYTHON"
 
for i in range(hcharHeight):
txtlineOut = ""
for charchr in ttext:
# get dec value of Tcharacter 'chr' in alphabet
if charchr.isalpha():
val = ord(charchr.upper()) - 65
elif charchr == " ":
val= 27
else:
val = 26
beginbeginStr = val *l charWidth # begin string position of 3D letter
endendStr = (val*l + l1) * charWidth # end string position of 3D letter
txtlineOut += tablecharTable[i][beginbeginStr:endendStr]
print txt(lineOut)</syntaxhighlight>
</lang>
 
{{out}}
<pre> /####### /## /## /######## /## /## ###### /## /##
<pre> .----------------. .----------------. .----------------. .----------------. .----------------. .-----------------.
| ##__ ##\ ## /##/|__ ##__/| ## | ## /##__ ##| ### | ##
| .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. |
| | ______ ## | ||## |\ ____####/ ____ | || | _________## | || | ____ ____## | |##| | ____ ## | |##| ####| ____ _____ | |##
| | |_ #######/ __ \ ##/ | || | |_ _||_ ## _| | || ########| | _ _## | ##| ||## |## |_ || _| | || | .' `. | || ||_ \|_ _| | |##
| | | |__) | | || | \ \ ##____/ / | ||## | |_/ | | \_| | || |## | |##__| | ##| || | / .--. \## | |##| |## | \ | | | |####
| |## | ___/ | ||## | \ \/ / | || | ## | | ## | || ##| ## | __ ##| | || | | | | | | || | | |##\ \| | | |###
| |## _| |_ | ||## | _| |_ ## | || | ## _| ##|_ | || | _| | | |_ | || | \ `--' ######/ | ||## | _| |_\ |_ | |##
|__/ | |_____| | ||__/ | |______| | || |__/ |_____| __/ |__/ ||\______/ |__/ |____||____| | || | `.____.' | || ||_____|\____| | |__/</pre>
| | | || | | || | | || | | || | | || | | |
| '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' |
'----------------' '----------------' '----------------' '----------------' '----------------' '----------------' </pre>
 
A<b>Implementation 3:</b> a more general solution that scrapes http://www.network-science.de/ascii for the asciiASCII art.
<langsyntaxhighlight lang="python">import requests
import html
 
Line 2,678 ⟶ 3,112:
ascii_text = ascii_text[:ascii_text.index(post_ascii)]
 
print(ascii_text)</langsyntaxhighlight>
{{out}}
<pre> ____ __ __
Line 2,689 ⟶ 3,123:
/\___/
\/__/</pre>
 
=={{header|Quackery}}==
 
<syntaxhighlight lang="quackery">say " ________ ___ ___ ________ ________ ___ __ _______ ________ ___ ___" cr
say "|\ __ \|\ \|\ \|\ __ \|\ ____\|\ \|\ \ |\ ___ \ |\ __ \|\ \ / /|" cr
say "\ \ \|\ \ \ \ \ \ \ \|\ \ \ \___|\ \ \/ /|\ \ __/|\ \ \|\ \ \ \/ / /" cr
say " \ \ \ \ \ \ \ \ \ \ __ \ \ \ \ \ ___ \ \ \_|/ \ \ _ _\ \ / /" cr
say " \ \ \_\ \ \ \_\ \ \ \ \ \ \ \____\ \ \\ \ \ \ \__\_\ \ \\ \ / / /" cr
say " \ \_____ \ \_______\ \__\ \__\ \_______\ \__\\ \__\ \_______\ \__\\ _\ / /" cr
say " \|___| \ \|_______|\|__|\|__|\|_______|\|__| \|__|\|_______|\|__|\|__| / /" cr
say " \ \ \_______________________________________________________/ / /" cr
say " \ \____________________________________________________________/ /" cr
say " \|____________________________________________________________|/" cr</syntaxhighlight>
 
{{out}}
 
<pre> ________ ___ ___ ________ ________ ___ __ _______ ________ ___ ___
|\ __ \|\ \|\ \|\ __ \|\ ____\|\ \|\ \ |\ ___ \ |\ __ \|\ \ / /|
\ \ \|\ \ \ \ \ \ \ \|\ \ \ \___|\ \ \/ /|\ \ __/|\ \ \|\ \ \ \/ / /
\ \ \ \ \ \ \ \ \ \ __ \ \ \ \ \ ___ \ \ \_|/ \ \ _ _\ \ / /
\ \ \_\ \ \ \_\ \ \ \ \ \ \ \____\ \ \\ \ \ \ \__\_\ \ \\ \ / / /
\ \_____ \ \_______\ \__\ \__\ \_______\ \__\\ \__\ \_______\ \__\\ _\ / /
\|___| \ \|_______|\|__|\|__|\|_______|\|__| \|__|\|_______|\|__|\|__| / /
\ \ \_______________________________________________________/ / /
\ \____________________________________________________________/ /
\|____________________________________________________________|/
</pre>
 
 
=={{header|Racket}}==
Line 2,694 ⟶ 3,156:
Use the GUI to create a text banner:
 
<langsyntaxhighlight lang="racket">
#lang racket/gui
 
Line 2,737 ⟶ 3,199:
(for ([line (dropf-right (dropf lines empty?) empty?)])
(displayln (string-trim line #:left? #f))))
</syntaxhighlight>
</lang>
 
{{out}}
Line 2,758 ⟶ 3,220:
(formerly Perl 6)
Produces a good old-fashioned stereogram, meant to be looked at by focusing beyond the screen, not by crossing your eyes. If you can't get it to converge, try shrinking the font size till the images are closer together than your eyes. Also helps to be old enough to have progressive lenses, so you can look through the reading part of your glasses. Or borrow glasses from someone who's farsighted. <tt>:-)</tt>
<syntaxhighlight lang="raku" perl6line># must be evenly padded with white-space$
my $text = q:to/END/;
Line 2,780 ⟶ 3,242:
.say;
}
say '' for ^5;</langsyntaxhighlight>
{{out}}
<small><pre>
Line 2,805 ⟶ 3,267:
 
=={{header|Raven}}==
<syntaxhighlight lang="raven">[
<lang Raven>[
" ##### #### # # #### # #"
" # # # # # # # ## #"
Line 2,822 ⟶ 3,284:
$line r/#/@@@/g r/ /X/g r/X/ /g r/@ /@!/g r/@$/@!/g as $l1
$l1 "@" split $r1 join "!" split $r2 join print "\n" print
</syntaxhighlight>
</lang>
{{out}}
<pre> ///////////////> ////////////> ///> ///> ////////////> ///> ///>
Line 2,839 ⟶ 3,301:
 
This REXX has been used as part of a test suite for some REXX interpreters to stress test their syntax parser.
<langsyntaxhighlight lang="rexx">/*REXX program that displays a "REXX" 3D "ASCII art" as a logo. */
signal . /* Uses left-hand shadows, slightly raised view.
0=5~2?A?2?A?
Line 2,865 ⟶ 3,327:
,13,u));_=_('=',left('',16,u));_=_('#','|\\|');_=translate(_,"|"u,'@"')
do k=0 for 16;x=d2x(k,1);_=_(x,left('',k+1));end;say ' '_;end;exit;_:return,
changestr(arg(1),_,arg(2))</langsyntaxhighlight>
Some older REXXes don't have a &nbsp; '''changestr''' &nbsp; BIF, so one is included here &nbsp; ──► &nbsp; [[CHANGESTR.REX]].
 
Line 2,894 ⟶ 3,356:
{{Works with|ooRexx}}
{{Works with|Regina}}
<langsyntaxhighlight REXXlang="rexx">/* Rexx */
 
drop !top !bot
Line 2,960 ⟶ 3,422:
isFalse:
procedure
return \isTrue()</langsyntaxhighlight>
{{out}}
<pre> ///////////////\
Line 2,984 ⟶ 3,446:
<br>the output doesn't have trailing blanks,
<br>the input text can be any consistent non-blank character except the forward slash &nbsp; (<big>'''/'''</big>) &nbsp; or backward slash &nbsp;(<big>'''\'''</big>).
<langsyntaxhighlight lang="rexx">/*REXX pgm draws a "3D" image of text representation; any character except / and \ */
#=7; @.1 = '@@@@ '
@.2 = '@ @ '
Line 3,000 ⟶ 3,462:
do k=1 for 2; say strip(left('',#-j)$.k,"T") /*the LEFT BIF does indentation.*/
end /*k*/ /* [↑] display a line and its shadow.*/
end /*j*/ /*stick a fork in it, we're all done. */</langsyntaxhighlight>
{{out|output|text=&nbsp; when using the internal default input:}}
<pre>
Line 3,020 ⟶ 3,482:
 
=={{header|Ruby}}==
<langsyntaxhighlight Rubylang="ruby">text = <<EOS
#### #
# # #
Line 3,084 ⟶ 3,546:
#
#
EOS</langsyntaxhighlight>
 
{{out}}
Line 3,132 ⟶ 3,594:
 
'''Another version:''' like a 3D solid.
<langsyntaxhighlight Rubylang="ruby">enc = "9 8u18 2u1\n8 1s 6u1 b16 1s sb\n6 2 s1b4u1s sb13 3 s1\n5 3 s3 3s 11 3 s1\n4 2 s1us3u1su2s 2u4 2u3 2 s1us3u4 2u6 2u1\n4 1s 6u1sbubs2 s1b 2 s1b2 1s 6u1 b2 1susb3 2 s1b\n2 2 s1b2 3u1bs2 8 s1b4u1s s4b 3 s1\n 3 s3b 2 9 s3 3s 3 b2s 1s\n 3s 3 b1 2 s2us4 s1us2u2us1 s3 3 b1s s\nsu2s 2 4 b6u2s 1s7u1sbubs6 1bub2 1s\nbubs6 1bubs2 1b5u1bs b7u1bs8 3 s1\n42 2u2s 1s\n41 1s3u1s s\n41 1b3u1bs\n"
def decode(str)
str.split(/(\d+)(\D+)/).each_slice(3).map{|_,n,s| s * n.to_i}.join.tr('sub','/_\\')
end
puts decode(enc)</langsyntaxhighlight>
 
{{out}}
Line 3,157 ⟶ 3,619:
 
=={{header|Rust}}==
<langsyntaxhighlight lang="rust">pub fn char_from_id(id: u8) -> char {
[' ', '#', '/', '_', 'L', '|', '\n'][id as usize]
}
Line 3,194 ⟶ 3,656:
 
println!("{}", decode(&code));
}</langsyntaxhighlight>
 
{{out}}
Line 3,209 ⟶ 3,671:
{{libheader|Scala}}
===Java style===
<langsyntaxhighlight Scalalang="scala">def ASCII3D = {
 
val name = """
Line 3,270 ⟶ 3,732:
}
 
println(ASCII3D)</langsyntaxhighlight>
===Idiomatic===
Cleaner code.
<langsyntaxhighlight lang="scala">import scala.collection.mutable.ArraySeq
 
object Ascii3D extends App {
Line 3,313 ⟶ 3,775:
 
println(ASCII3D)
}</langsyntaxhighlight>
{{out}}
<pre>
Line 3,329 ⟶ 3,791:
 
=={{header|Seed7}}==
<langsyntaxhighlight lang="seed7">$include "seed7_05.s7i";
 
const array string: name is [] (
Line 3,370 ⟶ 3,832:
end for;
writeln(previousLine);
end func;</langsyntaxhighlight>
 
{{out}}
Line 3,388 ⟶ 3,850:
=={{header|Sidef}}==
{{trans|Ruby}}
<langsyntaxhighlight lang="ruby">var text = <<'EOT';
 
***
Line 3,408 ⟶ 3,870:
};
 
say banner3D(text);</langsyntaxhighlight>
<pre>
Line 3,424 ⟶ 3,886:
 
=={{header|SQL}}==
<langsyntaxhighlight lang="sql">select ' SSS\ ' as s, ' QQQ\ ' as q, 'L\ ' as l from dual
union all select 'S \|', 'Q Q\ ', 'L | ' from dual
union all select '\SSS ', 'Q Q |', 'L | ' from dual
Line 3,430 ⟶ 3,892:
union all select ' SSS |', '\QQQ\\|', 'LLLL\' from dual
union all select ' \__\/', ' \_Q_/ ', '\___\' from dual
union all select ' ', ' \\ ', ' ' from dual;</langsyntaxhighlight>
This works in Oracle. For other databases, try it without "from dual".
{{out}}
Line 3,447 ⟶ 3,909:
 
=={{header|Tcl}}==
<langsyntaxhighlight lang="tcl">package require Tcl 8.5
 
proc mergeLine {upper lower} {
Line 3,482 ⟶ 3,944:
{ * *** *}
}
printLines $lines</langsyntaxhighlight>
{{out}}
<pre>
Line 3,496 ⟶ 3,958:
=={{header|UNIX Shell}}==
{{works with|Bash|4}}
<langsyntaxhighlight lang="sh">#!/usr/bin/env bash
mapfile -t name <<EOF
Aimhacks
Line 3,559 ⟶ 4,021:
 
main "$@"
</syntaxhighlight>
</lang>
{{Out}}
<pre> __/__/__/ __/
Line 3,606 ⟶ 4,068:
=={{header|Visual Basic .NET}}==
{{trans|C#}}
<langsyntaxhighlight lang="vbnet">Module Module1
 
Sub Main()
Line 3,622 ⟶ 4,084:
End Sub
 
End Module</langsyntaxhighlight>
{{out}}
<pre> ___ ___ ___ ________ ___ ___ ________ ___ ________ ________ ________ ___ ________ ________ _______ _________
Line 3,637 ⟶ 4,099:
=={{header|Wren}}==
This uses the 3D ASCII letter font [https://github.com/arpan98/3dwrite/blob/master/3d_font.txt here].
<syntaxhighlight lang="wren">var w = """
____ ____ ____
|\ \ |\ \ |\ \
| \ \ | \ \ | \ \
\ \ \\ / \\ / /|
\ \ \V \V / |
\ \ /\ / /
\ \____/ \____/ /
\ | | /| | /
\|____|/ |____|/
""".split("\n")
 
var r = """
As Wren doesn't support 'raw' strings, I've temporarily replaced backslashes with asterisks to avoid having to escape the former.
_______ ____
<lang ecmascript>var w = [
|\__ " \ ____ / ____ \ ____ ",
" ||* * |*\ * |* *\/ ",___\
" \|_| *\ * | * * /|__| * * ",
" *\ *\ ** / ** // /| ",
" *\ *\ *V \ *V / | ",
" *\ *\____\ /* / / ",
" *\ | *____/ *____/ | / ",
" * \| | /| ____| / ",
""".split("\n")
" *|____|/ |____|/ "
]
 
var re = ["""
" ___________ _______ ____ ",
"/ |*__ _____ * / \ * ",
/ " || |*/_____\ */\ ___* ",
|\ " *|_| * _____/| /|__| ",
| " * *\ /|____|/ ",
\ \ \/_______/\
" * * * ",
\ \_____________/|
" * *____* ",
"\ | * | | ",|
" *\|________________|/ "
""".split("\n")
]
 
var e = [
" ___________ ",
" / _____ * ",
" / /_____* * ",
" |* _____/| ",
" | * /|____|/ ",
" * * */_______/* ",
" * *_____________/| ",
" * | | | ",
" *|____________|/ "
]
 
var n = [
" _____ _______ ",
" |*__ */ * ",
" || |* __ * ",
" *|_| * /| * * ",
" * * */* * * ",
" * * * * * * ",
" * *___* * *___* ",
" * | | *| | ",
" *|___| |___| "
]
 
var n = """
for (i in 0..8) w[i] = w[i].replace("*", "\\")
_____ _______
for (i in 0..8) r[i] = r[i].replace("*", "\\")
|\__ \/ \
for (i in 0..8) e[i] = e[i].replace("*", "\\")
|| |\ __ \
for (i in 0..8) n[i] = n[i].replace("*", "\\")
\|_| \ /| \ \
\ \ \/\ \ \
\ \ \ \ \ \
\ \___\ \ \___\
\ | | \| |
\|___| |___|
""".split("\n")
 
for (i in 0..8) {
System.print("%(w[i]) %(r[i]) %(e[i]) %(n[i])")
}</langsyntaxhighlight>
 
{{out}}
<pre>
____ ____ ____ _______ ____ ___________ _____ _______
|\ \ |\ \ |\ \ |\__ \ / \ / _____ \ |\__ \/ \
| \ \ | \ \ | \ \ || |\ \/ ___\ / /_____\ \ || |\ __ \
\ \ \\ / \\ / /| \|_| \ /|__| |\ _____/| \|_| \ /| \ \
\ \ \V \V / | \ \ // | \ /|____|/ \ \ \/\ \ \
\ \ /\ / / \ \ \ \ \ \/_______/\ \ \ \ \ \ \
\ \____/ \____/ / \ \____\ \ \_____________/| \ \___\ \ \___\
\ | | /| | / \ | | \ | | | \ | | \| |
\|____|/ |____|/ \|____| \|____________|/ \|___| |___|
</pre>
 
=={{header|XPL0}}==
Here's XPL0's "cheap hack." (Hats off to D!)
<langsyntaxhighlight XPL0lang="xpl0">include c:\cxpl\codes;
 
proc DrawBlock(X, Y);
Line 3,737 ⟶ 4,192:
];
];
]</langsyntaxhighlight>
 
{{out}}
Line 3,760 ⟶ 4,215:
 
=={{header|Yabasic}}==
<syntaxhighlight lang="yabasic">
<lang Yabasic>
// Method 1
// r$ = system$("explorer \"http://www.network-science.de/ascii/ascii.php?TEXT=${delegate}&x=23&y=10&FONT=block&RICH=no&FORM=left&STRE=no&WIDT=80&TEXT=Yabasic\"")
Line 3,798 ⟶ 4,253:
write(2, 2, "\\")
write(1, 1, "#")
print</langsyntaxhighlight>
 
=={{header|zkl}}==
{{trans|Common Lisp}}
<langsyntaxhighlight lang="zkl">#<<<
"
xxxxxx x x x
Line 3,811 ⟶ 4,266:
"
#<<<<
.replace(" "," ").replace("x","_/").println();</langsyntaxhighlight>
{{out}}
<pre>
56

edits