Write language name in 3D ASCII: Difference between revisions

Content added Content deleted
(Added Arturo implementation)
(→‎{{header|Wren}}: Wren does now support 'raw' strings.)
Line 3,965: Line 3,965:
=={{header|Wren}}==
=={{header|Wren}}==
This uses the 3D ASCII letter font [https://github.com/arpan98/3dwrite/blob/master/3d_font.txt here].
This uses the 3D ASCII letter font [https://github.com/arpan98/3dwrite/blob/master/3d_font.txt here].
<lang ecmascript>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 r = [
var e = """
" _______ ____ ",
___________
" |*__ * / * ",
/ _____ \
" || |* */ ___* ",
/ /_____\ \
" *|_| * /|__| ",
|\ _____/|
" * * // ",
| \ /|____|/
\ \ \/_______/\
" * * * ",
\ \_____________/|
" * *____* ",
" * | | ",
\ | | |
" *|____| "
\|____________|/
""".split("\n")
]


var e = [
var n = """
" ___________ ",
_____ _______
" / _____ * ",
|\__ \/ \
" / /_____* * ",
|| |\ __ \
" |* _____/| ",
\|_| \ /| \ \
" | * /|____|/ ",
\ \ \/\ \ \
" * * */_______/* ",
\ \ \ \ \ \
\ \___\ \ \___\
" * *_____________/| ",
" * | | | ",
\ | | \| |
" *|____________|/ "
\|___| |___|
""".split("\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("*", "\\")


for (i in 0..8) {
for (i in 0..8) {
Line 4,026: Line 4,019:
{{out}}
{{out}}
<pre>
<pre>
____ ____ ____ _______ ____ ___________ _____ _______
____ ____ ____ _______ ____ ___________ _____ _______
|\ \ |\ \ |\ \ |\__ \ / \ / _____ \ |\__ \/ \
|\ \ |\ \ |\ \ |\__ \ / \ / _____ \ |\__ \/ \
| \ \ | \ \ | \ \ || |\ \/ ___\ / /_____\ \ || |\ __ \
| \ \ | \ \ | \ \ || |\ \/ ___\ / /_____\ \ || |\ __ \
\ \ \\ / \\ / /| \|_| \ /|__| |\ _____/| \|_| \ /| \ \
\ \ \\ / \\ / /| \|_| \ /|__| |\ _____/| \|_| \ /| \ \
\ \ \V \V / | \ \ // | \ /|____|/ \ \ \/\ \ \
\ \ \V \V / | \ \ // | \ /|____|/ \ \ \/\ \ \
\ \ /\ / / \ \ \ \ \ \/_______/\ \ \ \ \ \ \
\ \ /\ / / \ \ \ \ \ \/_______/\ \ \ \ \ \ \
\ \____/ \____/ / \ \____\ \ \_____________/| \ \___\ \ \___\
\ \____/ \____/ / \ \____\ \ \_____________/| \ \___\ \ \___\
\ | | /| | / \ | | \ | | | \ | | \| |
\ | | /| | / \ | | \ | | | \ | | \| |
\|____|/ |____|/ \|____| \|____________|/ \|___| |___|
\|____|/ |____|/ \|____| \|____________|/ \|___| |___|
</pre>
</pre>