Write language name in 3D ASCII: Difference between revisions
Content added Content deleted
Drkameleon (talk | contribs) (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]. |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
\|____|/ |____|/ |
|||
""".split("\n") |
|||
⚫ | |||
As Wren doesn't support 'raw' strings, I've temporarily replaced backslashes with asterisks to avoid having to escape the former. |
|||
⚫ | |||
⚫ | |||
|\__ \ / \ |
|||
|| |\ \/ ___\ |
|||
\|_| \ /|__| |
|||
\ \ // |
|||
\ \ \ |
|||
\ \____\ |
|||
\ | | |
|||
\|____| |
|||
""".split("\n") |
|||
⚫ | |||
] |
|||
var |
var e = """ |
||
___________ |
|||
/ _____ \ |
|||
/ /_____\ \ |
|||
|\ _____/| |
|||
| \ /|____|/ |
|||
\ \ \/_______/\ |
|||
⚫ | |||
⚫ | |||
⚫ | |||
\ | | | |
|||
\|____________|/ |
|||
""".split("\n") |
|||
] |
|||
var |
var n = """ |
||
_____ _______ |
|||
|\__ \/ \ |
|||
|| |\ __ \ |
|||
\|_| \ /| \ \ |
|||
\ \ \/\ \ \ |
|||
\ \ \ \ \ \ |
|||
⚫ | |||
⚫ | |||
\ | | \| | |
|||
\|___| |___| |
|||
""".split("\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> |
||