banana

A FIGlet utility for Java that generates text banners, in a variety of typefaces, composed of letters made up of conglomerations of smaller ASCII characters.

License

License

GroupId

GroupId

io.leego
ArtifactId

ArtifactId

banana
Last Version

Last Version

2.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

banana
A FIGlet utility for Java that generates text banners, in a variety of typefaces, composed of letters made up of conglomerations of smaller ASCII characters.
Project URL

Project URL

https://github.com/yihleego/banana
Source Code Management

Source Code Management

https://github.com/yihleego/banana

Download banana

How to add to project

<!-- https://jarcasting.com/artifacts/io.leego/banana/ -->
<dependency>
    <groupId>io.leego</groupId>
    <artifactId>banana</artifactId>
    <version>2.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/io.leego/banana/
implementation 'io.leego:banana:2.1.0'
// https://jarcasting.com/artifacts/io.leego/banana/
implementation ("io.leego:banana:2.1.0")
'io.leego:banana:jar:2.1.0'
<dependency org="io.leego" name="banana" rev="2.1.0">
  <artifact name="banana" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.leego', module='banana', version='2.1.0')
)
libraryDependencies += "io.leego" % "banana" % "2.1.0"
[io.leego/banana "2.1.0"]

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 4.13.1

Project Modules

There are no modules declared in this project.

Banana

A FIGlet utility for Java.

What is FIGlet

FIGlet is a computer program that generates text banners, in a variety of typefaces, composed of letters made up of conglomerations of smaller ASCII characters (see ASCII art). The name derives from "Frank, Ian and Glenn's letters".

Being free software, FIGlet is commonly included as part of many Unix-like operating systems (Linux, BSD, etc.) distributions, but it has been ported to other platforms as well. The official FIGlet FTP site includes precompiled ports for the Acorn, Amiga, Apple II, Atari ST, BeOS, Macintosh, MS-DOS, NeXTSTEP, OS/2, and Windows platforms, as well as a reimplementation in Perl (Text::FIGlet). There are third-party reimplementations of FIGlet in Java (including one embedded in the JavE ASCII art editor), JavaScript, PHP and Python. FIGlet was featured as a Debian Package of the Day in 2007.

Dependency

Maven

<dependency>
    <groupId>io.leego</groupId>
    <artifactId>banana</artifactId>
    <version>2.1.0</version>
</dependency>

Gradle

implementation 'io.leego:banana:2.1.0'

Usage

Example

BananaUtils.bananaify("Hello, Banana!");
  _   _      _ _          ____                                _ 
 | | | | ___| | | ___    | __ )  __ _ _ __   __ _ _ __   __ _| |
 | |_| |/ _ \ | |/ _ \   |  _ \ / _` | '_ \ / _` | '_ \ / _` | |
 |  _  |  __/ | | (_) |  | |_) | (_| | | | | (_| | | | | (_| |_|
 |_| |_|\___|_|_|\___( ) |____/ \__,_|_| |_|\__,_|_| |_|\__,_(_)
                     |/                                         

Multiline

String s = "ABCDEFGHIJKLMNOPQRSTUVWXYZ\n"
        + "abcdefghijklmnopqrstuvwxyz\n"
        + "1234567890" + ". : , ; ' \" \\ ( ! ? ) + - * / =";
BananaUtils.bananaify(s);
     _    ____   ____ ____  _____ _____ ____ _   _ ___    _ _  ___     __  __ _   _  ___  ____   ___  ____  ____ _____ _   ___     ____        ____  ____   _______
    / \  | __ ) / ___|  _ \| ____|  ___/ ___| | | |_ _|  | | |/ / |   |  \/  | \ | |/ _ \|  _ \ / _ \|  _ \/ ___|_   _| | | \ \   / /\ \      / /\ \/ /\ \ / /__  /
   / _ \ |  _ \| |   | | | |  _| | |_ | |  _| |_| || |_  | | ' /| |   | |\/| |  \| | | | | |_) | | | | |_) \___ \ | | | | | |\ \ / /  \ \ /\ / /  \  /  \ V /  / / 
  / ___ \| |_) | |___| |_| | |___|  _|| |_| |  _  || | |_| | . \| |___| |  | | |\  | |_| |  __/| |_| |  _ < ___) || | | |_| | \ V /    \ V  V /   /  \   | |  / /_ 
 /_/   \_\____/ \____|____/|_____|_|   \____|_| |_|___\___/|_|\_\_____|_|  |_|_| \_|\___/|_|    \__\_\_| \_\____/ |_|  \___/   \_/      \_/\_/   /_/\_\  |_| /____|
   __ _| |__   ___ __| | ___ / _| __ _| |__ (_)(_) | _| |_ __ ___  _ __   ___  _ __   __ _ _ __ ___| |_ _   ___   ____      ____  ___   _ ____                     
  / _` | '_ \ / __/ _` |/ _ \ |_ / _` | '_ \| || | |/ / | '_ ` _ \| '_ \ / _ \| '_ \ / _` | '__/ __| __| | | \ \ / /\ \ /\ / /\ \/ / | | |_  /                     
 | (_| | |_) | (_| (_| |  __/  _| (_| | | | | || |   <| | | | | | | | | | (_) | |_) | (_| | |  \__ \ |_| |_| |\ V /  \ V  V /  >  <| |_| |/ /                      
  \__,_|_.__/ \___\__,_|\___|_|  \__, |_| |_|_|/ |_|\_\_|_| |_| |_|_| |_|\___/| .__/ \__, |_|  |___/\__|\__,_| \_/    \_/\_/  /_/\_\\__, /___|                     
  _ ____  _____ _  _  ____   __ _|___/___  __|__/___                 _   _ _  |_|      _|_|_   ___  __                              |___/                          
 / |___ \|___ /| || || ___| / /|___  ( _ )/ _ \ / _ \    _       _  ( ) ( | ) \ \     / / | | |__ \ \ \     _            __/\__    / /  _____                      
 | | __) | |_ \| || ||___ \| '_ \ / // _ \ (_) | | | |  (_)     (_) |/   V V   \ \   | |  | |   / /  | |  _| |_   _____  \    /   / /  |_____|                     
 | |/ __/ ___) |__   _|__) | (_) / /| (_) \__, | |_| |   _   _   _              \ \  | |  |_|  |_|   | | |_   _| |_____| /_  _\  / /   |_____|                     
 |_|_____|____/   |_||____/ \___/_/  \___/  /_/ \___(_) (_) ( ) ( )              \_\ | |  (_)  (_)   | |   |_|             \/   /_/                                
                                                            |/  |/                    \_\           /_/                                                            

Fonts

Click here to see more fonts.

3D-ASCII

BananaUtils.bananaify("Hello, World!", Font.THREE_D_ASCII);
 ___  ___  _______   ___       ___       ________                ___       __   ________  ________  ___       ________  ___       
|\  \|\  \|\  ___ \ |\  \     |\  \     |\   __  \              |\  \     |\  \|\   __  \|\   __  \|\  \     |\   ___ \|\  \      
\ \  \\\  \ \   __/|\ \  \    \ \  \    \ \  \|\  \             \ \  \    \ \  \ \  \|\  \ \  \|\  \ \  \    \ \  \_|\ \ \  \     
 \ \   __  \ \  \_|/_\ \  \    \ \  \    \ \  \\\  \  ___        \ \  \  __\ \  \ \  \\\  \ \   _  _\ \  \    \ \  \ \\ \ \  \    
  \ \  \ \  \ \  \_|\ \ \  \____\ \  \____\ \  \\\  \|\  \        \ \  \|\__\_\  \ \  \\\  \ \  \\  \\ \  \____\ \  \_\\ \ \__\   
   \ \__\ \__\ \_______\ \_______\ \_______\ \_______\ \  \        \ \____________\ \_______\ \__\\ _\\ \_______\ \_______\|__|   
    \|__|\|__|\|_______|\|_______|\|_______|\|_______|\/  /|        \|____________|\|_______|\|__|\|__|\|_______|\|_______|   ___ 
                                                    |\___/ /                                                                 |\__\
                                                    \|___|/                                                                  \|__|
                                                                                                                                  

ANSI Shadow

BananaUtils.bananaify("Hello, World!", Font.ANSI_SHADOW);
██╗  ██╗███████╗██╗     ██╗      ██████╗        ██╗    ██╗ ██████╗ ██████╗ ██╗     ██████╗ ██╗
██║  ██║██╔════╝██║     ██║     ██╔═══██╗       ██║    ██║██╔═══██╗██╔══██╗██║     ██╔══██╗██║
███████║█████╗  ██║     ██║     ██║   ██║       ██║ █╗ ██║██║   ██║██████╔╝██║     ██║  ██║██║
██╔══██║██╔══╝  ██║     ██║     ██║   ██║       ██║███╗██║██║   ██║██╔══██╗██║     ██║  ██║╚═╝
██║  ██║███████╗███████╗███████╗╚██████╔╝▄█╗    ╚███╔███╔╝╚██████╔╝██║  ██║███████╗██████╔╝██╗
╚═╝  ╚═╝╚══════╝╚══════╝╚══════╝ ╚═════╝ ╚═╝     ╚══╝╚══╝  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═════╝ ╚═╝
                                                                                              

Small

BananaUtils.bananaify("Hello, World!", Font.SMALL);
  _  _     _ _        __      __       _    _ _ 
 | || |___| | |___    \ \    / /__ _ _| |__| | |
 | __ / -_) | / _ \_   \ \/\/ / _ \ '_| / _` |_|
 |_||_\___|_|_\___( )   \_/\_/\___/_| |_\__,_(_)
                  |/                            

Bloody

BananaUtils.bananaify("Hello, World!", Font.BLOODY);
 ██░ ██ ▓█████  ██▓     ██▓     ▒█████      █     █░ ▒█████   ██▀███   ██▓    ▓█████▄  ▐██▌ 
▓██░ ██▒▓█   ▀ ▓██▒    ▓██▒    ▒██▒  ██▒   ▓█░ █ ░█░▒██▒  ██▒▓██ ▒ ██▒▓██▒    ▒██▀ ██▌ ▐██▌ 
▒██▀▀██░▒███   ▒██░    ▒██░    ▒██░  ██▒   ▒█░ █ ░█ ▒██░  ██▒▓██ ░▄█ ▒▒██░    ░██   █▌ ▐██▌ 
░▓█ ░██ ▒▓█  ▄ ▒██░    ▒██░    ▒██   ██░   ░█░ █ ░█ ▒██   ██░▒██▀▀█▄  ▒██░    ░▓█▄   ▌ ▓██▒ 
░▓█▒░██▓░▒████▒░██████▒░██████▒░ ████▓▒░   ░░██▒██▓ ░ ████▓▒░░██▓ ▒██▒░██████▒░▒████▓  ▒▄▄  
 ▒ ░░▒░▒░░ ▒░ ░░ ▒░▓  ░░ ▒░▓  ░░ ▒░▒░▒░    ░ ▓░▒ ▒  ░ ▒░▒░▒░ ░ ▒▓ ░▒▓░░ ▒░▓  ░ ▒▒▓  ▒  ░▀▀▒ 
 ▒ ░▒░ ░ ░ ░  ░░ ░ ▒  ░░ ░ ▒  ░  ░ ▒ ▒░      ▒ ░ ░    ░ ▒ ▒░   ░▒ ░ ▒░░ ░ ▒  ░ ░ ▒  ▒  ░  ░ 
 ░  ░░ ░   ░     ░ ░     ░ ░   ░ ░ ░ ▒       ░   ░  ░ ░ ░ ▒    ░░   ░   ░ ░    ░ ░  ░     ░ 
 ░  ░  ░   ░  ░    ░  ░    ░  ░    ░ ░         ░        ░ ░     ░         ░  ░   ░     ░    
                                                                               ░            

Layout

Click here to see more layouts.

FITTED

BananaUtils.bananaify("Bananas have their own characteristic smell, \nand they are easily digestible.", Layout.FITTED, Layout.FITTED);
  ____                                            _                          _    _            _                                       _                               _               _       _    _                               _  _     
 | __ )   __ _  _ __    __ _  _ __    __ _  ___  | |__    __ _ __   __ ___  | |_ | |__    ___ (_) _ __    ___ __      __ _ __     ___ | |__    __ _  _ __  __ _   ___ | |_  ___  _ __ (_) ___ | |_ (_)  ___   ___  _ __ ___    ___ | || |    
 |  _ \  / _` || '_ \  / _` || '_ \  / _` |/ __| | '_ \  / _` |\ \ / // _ \ | __|| '_ \  / _ \| || '__|  / _ \\ \ /\ / /| '_ \   / __|| '_ \  / _` || '__|/ _` | / __|| __|/ _ \| '__|| |/ __|| __|| | / __| / __|| '_ ` _ \  / _ \| || |    
 | |_) || (_| || | | || (_| || | | || (_| |\__ \ | | | || (_| | \ V /|  __/ | |_ | | | ||  __/| || |    | (_) |\ V  V / | | | | | (__ | | | || (_| || |  | (_| || (__ | |_|  __/| |   | |\__ \| |_ | || (__  \__ \| | | | | ||  __/| || | _  
 |____/  \__,_||_| |_| \__,_||_| |_| \__,_||___/ |_| |_| \__,_|  \_/  \___|  \__||_| |_| \___||_||_|     \___/  \_/\_/  |_| |_|  \___||_| |_| \__,_||_|   \__,_| \___| \__|\___||_|   |_||___/ \__||_| \___| |___/|_| |_| |_| \___||_||_|( ) 
                    _   _    _                                                         _  _              _  _                    _    _  _      _                                                                                        |/  
   __ _  _ __    __| | | |_ | |__    ___  _   _    __ _  _ __  ___    ___   __ _  ___ (_)| | _   _    __| |(_)  __ _   ___  ___ | |_ (_)| |__  | |  ___                                                                                      
  / _` || '_ \  / _` | | __|| '_ \  / _ \| | | |  / _` || '__|/ _ \  / _ \ / _` |/ __|| || || | | |  / _` || | / _` | / _ \/ __|| __|| || '_ \ | | / _ \                                                                                     
 | (_| || | | || (_| | | |_ | | | ||  __/| |_| | | (_| || |  |  __/ |  __/| (_| |\__ \| || || |_| | | (_| || || (_| ||  __/\__ \| |_ | || |_) || ||  __/ _                                                                                   
  \__,_||_| |_| \__,_|  \__||_| |_| \___| \__, |  \__,_||_|   \___|  \___| \__,_||___/|_||_| \__, |  \__,_||_| \__, | \___||___/ \__||_||_.__/ |_| \___|(_)                                                                                  
                                          |___/                                              |___/             |___/                                                                                                                         

SMUSH_U

BananaUtils.bananaify("Bananas have their own characteristic smell, \nand they are easily digestible.", Layout.SMUSH_U, Layout.SMUSH_U);
  ____                                      _                       _   _          _                                   _                          _            _     _   _                           _ _    
 | __ )  __ _ _ __   __ _ _ __   __ _ ___  | |__   __ ___   _____  | |_| |__   ___(_)_ __    _____      ___ __     ___| |__   __ _ _ __ __ _  ___| |_ ___ _ __(_)___| |_(_) ___   ___ _ __ ___   ___| | |   
 |  _ \ / _` | '_ \ / _` | '_ \ / _` / __| | '_ \ / _` \ \ / / _ \ | __| '_ \ / _ | | '__|  / _ \ \ /\ / | '_ \   / __| '_ \ / _` | '__/ _` |/ __| __/ _ | '__| / __| __| |/ __| / __| '_ ` _ \ / _ | | |   
 | |_) | (_| | | | | (_| | | | | (_| \__ \ | | | | (_| |\ V |  __/ | |_| | | |  __| | |    | (_) \ V  V /| | | | | (__| | | | (_| | | | (_| | (__| ||  __| |  | \__ | |_| | (__  \__ | | | | | |  __| | |_  
 |____/ \__,_|_| |_|\__,_|_| |_|\__,_|___/ |_| |_|\__,_| \_/ \___|  \__|_| |__\___|_|_|     \___/ \_/\_/ |_| |_|_ \_____| |__\__,_|_|  \__,_|\___|\__\___|_|  |_|___/\__|_|\___| |___|_| |_| |_|\___|_|_( ) 
   __ _ _ __   __| | | |_| |__   ___ _   _    __ _ _ __ ___    ___  __ _ ___(_| |_   _    __| (_) __ _  ___ ___| |_(_| |__ | | ___                                                                      |/  
  / _` | '_ \ / _` | | __| '_ \ / _ | | | |  / _` | '__/ _ \  / _ \/ _` / __| | | | | |  / _` | |/ _` |/ _ / __| __| | '_ \| |/ _ \                                                                         
 | (_| | | | | (_| | | |_| | | |  __| |_| | | (_| | | |  __/ |  __| (_| \__ | | | |_| | | (_| | | (_| |  __\__ | |_| | |_) | |  __/_                                                                        
  \__,_|_| |_|\__,_|  \__|_| |_|\___|\__, |  \__,_|_|  \___|  \___|\__,_|___|_|_|\__, |  \__,_|_|\__, |\___|___/\__|_|_.__/|_|\___(_)                                                                       
                                     |___/                                       |___/           |___/                                                                                                      

ANSI

BananaUtils.bananansi("Hello, World!", Ansi.BLUE);

ANSI_COLOR

BananaUtils.bananansi("Hello, World!", Ansi.RED, Ansi.BG_YELLOW);

ANSI_BG_COLOR

Contact

License

Banana is under the Apache 2.0 license. See the LICENSE file for details.

Versions

Version
2.1.0
2.0.1
2.0.0
1.3.1
1.3.0
1.2.1
1.2.0
1.1.0