Write language name in 3D ASCII: Difference between revisions

Content added Content deleted
Line 2,083: Line 2,083:
_/
_/
_/_/
_/_/
</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.
<lang jq>def jq:
"\("
#
#
# # ###
# # # #
# # # #
# # # # ####
# ### #
#
")";

def banner3D:
jq | split("\n") | map( gsub("#"; "╔╗") | gsub(" "; " ") )
| [[range(length;0;-1) | " " * .], . ] | transpose[] | join("") ;

banner3D</lang>
{{out}}
<pre>
╔╗
╔╗
╔╗ ╔╗ ╔╗╔╗╔╗
╔╗ ╔╗ ╔╗ ╔╗
╔╗ ╔╗ ╔╗ ╔╗
╔╗ ╔╗ ╔╗ ╔╗ ╔╗╔╗╔╗╔╗
╔╗ ╔╗╔╗╔╗ ╔╗
╔╗

</pre>
</pre>