fork download
  1. class FantomSay {
  2. Void main(Str[] args) {
  3. speech := args.first ?: "Fantom - It's Spookily Good!"
  4. width := speech.size
  5. bubble := ""
  6. bubble += " " + "".padl(width + 2, '_') + "\n"
  7. bubble += "< " + speech.justl(width) + " >\n"
  8. bubble += " " + "".padl(width + 2, '-') + "\n"
  9. ascii := bubble + " \\
  10. \\ .----.
  11. \\ / O O |
  12. / |
  13. / |
  14. \\/\\/\\/\\/"
  15. echo(ascii)
  16. }
  17. }
Success #stdin #stdout 2.06s 107152KB
stdin
"Fantom - It's Spookily Good!"
stdout
 ______________________________
< Fantom - It's Spookily Good! >
 ------------------------------
   \
    \   .----.
     \ / O O |
      /      |
     /       |
     \/\/\/\/