Displaying ASCII art on a windowHello all,
I usually post more serious
stuff. But I was wondering how do I get ascii art to display properly in a window. My simple code is below. It looks ok on the script editor but it gets messed up after execution. Any help welcome! Thanks!
Eduardo.
New window("Force",<<MODAL>` ..--##j.' `;
`:-.._J '-.-'L__ `-- ' L_..-;'
#-.__ ; .-# #-. : __.-#
L ' /.------.\ ' J
#-. #--# .-#
__.l#-:_JL_;-#;.__
.-j/'.; ;#### / .'\#-.
.' /:`. #-.: .-# .'; `.
.-# / ; #-. #-..-# .-# : #-.
.+#-. : : #-.__.-# ;-._ \
; \ `.; ; : : #+. ;
: ; ; ; : ; : \:
: `.#-; ; ; : ; ,/;
; -: ; : ; : .-#' :
:\</img> \ : ; : \.-# :
;`. \ ; : ;.'_..-- / ;
: #-. #-: ; :/.# .' :
\ .-`.\ /t-## #:-+. :
`. .-# `l __/ /`. : ; ; \ ;
\ .-# .-#-.-# .' .'j \ / ;/
\ / .-# /. .'.' ;_:' ;
:-##-.`./-.' / `.___.'
\ `t ._ / bug :F_P:
#-.t-._:'
"),
);</MODAL>
Re: Displaying ASCII art on a windowMay the Fourth be with you. And have a great Cinco de Mayo as well...
Re: Displaying ASCII art on a window
Many thanks!
Re: Displaying ASCII art on a windowI think you all need to seriously upgrade your Yoda game
https://community.jmp.com/t5/Uncharted/Can-I-make-ASCII-Art-with-JMP/ba-p/31157

Re: Displaying ASCII art on a windowJust change the font to "Consolas" to match the editor. I also bumped the text size up to 11:
New window("Force", << Modal,
t1 = Text Box("
____
_.' : `._
.-.'`. ; .'`.-.
__ / : ___\ ; /___ ; \ __
,'_ ##--.:__;#.-.#;: :#.-.#:__;.--## _`,
:' `.t##--.. '<@.`;_ ',@>` ..--##j.' `;
`:-.._J '-.-'L__ `-- ' L_..-;'
#-.__ ; .-# #-. : __.-#
L ' /.------.\ ' J
#-. #--# .-#
__.l#-:_JL_;-#;.__
.-j/'.; ;#### / .'\#-.
.' /:`. #-.: .-# .'; `.
.-# / ; #-. #-..-# .-# : #-.
.+#-. : : #-.__.-# ;-._ \
; \ `.; ; : : #+. ;
: ; ; ; : ; : \:
: `.#-; ; ; : ; ,/;
; -: ; : ; : .-#' :
:\</img> \ : ; : \.-# :
;`. \ ; : ;.'_..-- / ;
: #-. #-: ; :/.# .' :
\ .-`.\ /t-## #:-+. :
`. .-# `l __/ /`. : ; ; \ ;
\ .-# .-#-.-# .' .'j \ / ;/
\ / .-# /. .'.' ;_:' ;
:-##-.`./-.' / `.___.'
\ `t ._ / bug :F_P:
#-.t-._:'
", << Font("Consolas", 11)),
); Result:
The force is strong with "Consolas" fontThe force is strong with "Consolas" font