Jump to content

Write language name in 3D ASCII: Difference between revisions

→‎{{header|Wren}}: Wren does now support 'raw' strings.
(Added Arturo implementation)
(→‎{{header|Wren}}: Wren does now support 'raw' strings.)
Line 3,965:
=={{header|Wren}}==
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 nr = ["""
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 en = ["""
_____ " _______ ___________ ",
|\__ \/ " / _____ *\ ",
|| |\ " / __ /_____* \ * ",
" \|_|* \ /| \ _____/| \ ",
" |\ * \ \/\ /|____|/\ \ ",
" * \ * \ */_______/*\ \ \ \ ",
" \ * *\___*\ *\ *\___* ",\
" * *_____________/| ",
" * \ | | \| | | ",
" * \|_______________|/ " |___|
""".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) {
Line 4,026 ⟶ 4,019:
{{out}}
<pre>
____ ____ ____ _______ ____ ___________ _____ _______
|\ \ |\ \ |\ \ |\__ \ / \ / _____ \ |\__ \/ \
| \ \ | \ \ | \ \ || |\ \/ ___\ / /_____\ \ || |\ __ \
\ \ \\ / \\ / /| \|_| \ /|__| |\ _____/| \|_| \ /| \ \
\ \ \V \V / | \ \ // | \ /|____|/ \ \ \/\ \ \
\ \ /\ / / \ \ \ \ \ \/_______/\ \ \ \ \ \ \
\ \____/ \____/ / \ \____\ \ \_____________/| \ \___\ \ \___\
\ | | /| | / \ | | \ | | | \ | | \| |
\|____|/ |____|/ \|____| \|____________|/ \|___| |___|
</pre>
 
9,486

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.