A FIGlet utility for Java.
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>
<groupId>io.leego</groupId>
<artifactId>banana</artifactId>
<version>2.1.0</version>
</dependency>
implementation 'io.leego:banana:2.1.0'
BananaUtils.bananaify("Hello, Banana!");
_ _ _ _ ____ _
| | | | ___| | | ___ | __ ) __ _ _ __ __ _ _ __ __ _| |
| |_| |/ _ \ | |/ _ \ | _ \ / _` | '_ \ / _` | '_ \ / _` | |
| _ | __/ | | (_) | | |_) | (_| | | | | (_| | | | | (_| |_|
|_| |_|\___|_|_|\___( ) |____/ \__,_|_| |_|\__,_|_| |_|\__,_(_)
|/
String s = "ABCDEFGHIJKLMNOPQRSTUVWXYZ\n"
+ "abcdefghijklmnopqrstuvwxyz\n"
+ "1234567890" + ". : , ; ' \" \\ ( ! ? ) + - * / =";
BananaUtils.bananaify(s);
_ ____ ____ ____ _____ _____ ____ _ _ ___ _ _ ___ __ __ _ _ ___ ____ ___ ____ ____ _____ _ ___ ____ ____ ____ _______
/ \ | __ ) / ___| _ \| ____| ___/ ___| | | |_ _| | | |/ / | | \/ | \ | |/ _ \| _ \ / _ \| _ \/ ___|_ _| | | \ \ / /\ \ / /\ \/ /\ \ / /__ /
/ _ \ | _ \| | | | | | _| | |_ | | _| |_| || |_ | | ' /| | | |\/| | \| | | | | |_) | | | | |_) \___ \ | | | | | |\ \ / / \ \ /\ / / \ / \ V / / /
/ ___ \| |_) | |___| |_| | |___| _|| |_| | _ || | |_| | . \| |___| | | | |\ | |_| | __/| |_| | _ < ___) || | | |_| | \ V / \ V V / / \ | | / /_
/_/ \_\____/ \____|____/|_____|_| \____|_| |_|___\___/|_|\_\_____|_| |_|_| \_|\___/|_| \__\_\_| \_\____/ |_| \___/ \_/ \_/\_/ /_/\_\ |_| /____|
__ _| |__ ___ __| | ___ / _| __ _| |__ (_)(_) | _| |_ __ ___ _ __ ___ _ __ __ _ _ __ ___| |_ _ ___ ____ ____ ___ _ ____
/ _` | '_ \ / __/ _` |/ _ \ |_ / _` | '_ \| || | |/ / | '_ ` _ \| '_ \ / _ \| '_ \ / _` | '__/ __| __| | | \ \ / /\ \ /\ / /\ \/ / | | |_ /
| (_| | |_) | (_| (_| | __/ _| (_| | | | | || | <| | | | | | | | | | (_) | |_) | (_| | | \__ \ |_| |_| |\ V / \ V V / > <| |_| |/ /
\__,_|_.__/ \___\__,_|\___|_| \__, |_| |_|_|/ |_|\_\_|_| |_| |_|_| |_|\___/| .__/ \__, |_| |___/\__|\__,_| \_/ \_/\_/ /_/\_\\__, /___|
_ ____ _____ _ _ ____ __ _|___/___ __|__/___ _ _ _ |_| _|_|_ ___ __ |___/
/ |___ \|___ /| || || ___| / /|___ ( _ )/ _ \ / _ \ _ _ ( ) ( | ) \ \ / / | | |__ \ \ \ _ __/\__ / / _____
| | __) | |_ \| || ||___ \| '_ \ / // _ \ (_) | | | | (_) (_) |/ V V \ \ | | | | / / | | _| |_ _____ \ / / / |_____|
| |/ __/ ___) |__ _|__) | (_) / /| (_) \__, | |_| | _ _ _ \ \ | | |_| |_| | | |_ _| |_____| /_ _\ / / |_____|
|_|_____|____/ |_||____/ \___/_/ \___/ /_/ \___(_) (_) ( ) ( ) \_\ | | (_) (_) | | |_| \/ /_/
|/ |/ \_\ /_/
Click here to see more fonts.
BananaUtils.bananaify("Hello, World!", Font.THREE_D_ASCII);
___ ___ _______ ___ ___ ________ ___ __ ________ ________ ___ ________ ___
|\ \|\ \|\ ___ \ |\ \ |\ \ |\ __ \ |\ \ |\ \|\ __ \|\ __ \|\ \ |\ ___ \|\ \
\ \ \\\ \ \ __/|\ \ \ \ \ \ \ \ \|\ \ \ \ \ \ \ \ \ \|\ \ \ \|\ \ \ \ \ \ \_|\ \ \ \
\ \ __ \ \ \_|/_\ \ \ \ \ \ \ \ \\\ \ ___ \ \ \ __\ \ \ \ \\\ \ \ _ _\ \ \ \ \ \ \\ \ \ \
\ \ \ \ \ \ \_|\ \ \ \____\ \ \____\ \ \\\ \|\ \ \ \ \|\__\_\ \ \ \\\ \ \ \\ \\ \ \____\ \ \_\\ \ \__\
\ \__\ \__\ \_______\ \_______\ \_______\ \_______\ \ \ \ \____________\ \_______\ \__\\ _\\ \_______\ \_______\|__|
\|__|\|__|\|_______|\|_______|\|_______|\|_______|\/ /| \|____________|\|_______|\|__|\|__|\|_______|\|_______| ___
|\___/ / |\__\
\|___|/ \|__|
BananaUtils.bananaify("Hello, World!", Font.ANSI_SHADOW);
βββ ββββββββββββββ βββ βββββββ βββ βββ βββββββ βββββββ βββ βββββββ βββ
βββ ββββββββββββββ βββ βββββββββ βββ βββββββββββββββββββββββ βββββββββββ
ββββββββββββββ βββ βββ βββ βββ βββ ββ ββββββ ββββββββββββββ βββ ββββββ
ββββββββββββββ βββ βββ βββ βββ βββββββββββββ ββββββββββββββ βββ ββββββ
βββ βββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββ ββββββββββββββββββββββ
βββ βββββββββββββββββββββββββββ βββββββ βββ ββββββββ βββββββ βββ ββββββββββββββββββ βββ
BananaUtils.bananaify("Hello, World!", Font.SMALL);
_ _ _ _ __ __ _ _ _
| || |___| | |___ \ \ / /__ _ _| |__| | |
| __ / -_) | / _ \_ \ \/\/ / _ \ '_| / _` |_|
|_||_\___|_|_\___( ) \_/\_/\___/_| |_\__,_(_)
|/
BananaUtils.bananaify("Hello, World!", Font.BLOODY);
βββ ββ ββββββ βββ βββ ββββββ β ββ ββββββ ββββββ βββ βββββββ ββββ
ββββ βββββ β ββββ ββββ ββββ βββ βββ β βββββββ ββββββ β βββββββ ββββ βββ ββββ
ββββββββββββ ββββ ββββ ββββ βββ βββ β ββ ββββ ββββββ βββ βββββ βββ ββ ββββ
βββ βββ βββ β ββββ ββββ βββ βββ βββ β ββ βββ ββββββββββ ββββ ββββ β ββββ
ββββββββββββββββββββββββββββββββ βββββββ ββββββββ β βββββββββββ βββββββββββββββββββ βββ
β βββββββ ββ ββ βββ ββ βββ ββ ββββββ β βββ β β ββββββ β ββ βββββ βββ β βββ β ββββ
β βββ β β β ββ β β ββ β β β β β ββ β β β β β ββ ββ β βββ β β β β β β β β
β ββ β β β β β β β β β β β β β β β β ββ β β β β β β β
β β β β β β β β β β β β β β β β β β β
β
Click here to see more layouts.
BananaUtils.bananaify("Bananas have their own characteristic smell, \nand they are easily digestible.", Layout.FITTED, Layout.FITTED);
____ _ _ _ _ _ _ _ _ _ _ _
| __ ) __ _ _ __ __ _ _ __ __ _ ___ | |__ __ _ __ __ ___ | |_ | |__ ___ (_) _ __ ___ __ __ _ __ ___ | |__ __ _ _ __ __ _ ___ | |_ ___ _ __ (_) ___ | |_ (_) ___ ___ _ __ ___ ___ | || |
| _ \ / _` || '_ \ / _` || '_ \ / _` |/ __| | '_ \ / _` |\ \ / // _ \ | __|| '_ \ / _ \| || '__| / _ \\ \ /\ / /| '_ \ / __|| '_ \ / _` || '__|/ _` | / __|| __|/ _ \| '__|| |/ __|| __|| | / __| / __|| '_ ` _ \ / _ \| || |
| |_) || (_| || | | || (_| || | | || (_| |\__ \ | | | || (_| | \ V /| __/ | |_ | | | || __/| || | | (_) |\ V V / | | | | | (__ | | | || (_| || | | (_| || (__ | |_| __/| | | |\__ \| |_ | || (__ \__ \| | | | | || __/| || | _
|____/ \__,_||_| |_| \__,_||_| |_| \__,_||___/ |_| |_| \__,_| \_/ \___| \__||_| |_| \___||_||_| \___/ \_/\_/ |_| |_| \___||_| |_| \__,_||_| \__,_| \___| \__|\___||_| |_||___/ \__||_| \___| |___/|_| |_| |_| \___||_||_|( )
_ _ _ _ _ _ _ _ _ _ _ |/
__ _ _ __ __| | | |_ | |__ ___ _ _ __ _ _ __ ___ ___ __ _ ___ (_)| | _ _ __| |(_) __ _ ___ ___ | |_ (_)| |__ | | ___
/ _` || '_ \ / _` | | __|| '_ \ / _ \| | | | / _` || '__|/ _ \ / _ \ / _` |/ __|| || || | | | / _` || | / _` | / _ \/ __|| __|| || '_ \ | | / _ \
| (_| || | | || (_| | | |_ | | | || __/| |_| | | (_| || | | __/ | __/| (_| |\__ \| || || |_| | | (_| || || (_| || __/\__ \| |_ | || |_) || || __/ _
\__,_||_| |_| \__,_| \__||_| |_| \___| \__, | \__,_||_| \___| \___| \__,_||___/|_||_| \__, | \__,_||_| \__, | \___||___/ \__||_||_.__/ |_| \___|(_)
|___/ |___/ |___/
BananaUtils.bananaify("Bananas have their own characteristic smell, \nand they are easily digestible.", Layout.SMUSH_U, Layout.SMUSH_U);
____ _ _ _ _ _ _ _ _ _ _ _
| __ ) __ _ _ __ __ _ _ __ __ _ ___ | |__ __ ___ _____ | |_| |__ ___(_)_ __ _____ ___ __ ___| |__ __ _ _ __ __ _ ___| |_ ___ _ __(_)___| |_(_) ___ ___ _ __ ___ ___| | |
| _ \ / _` | '_ \ / _` | '_ \ / _` / __| | '_ \ / _` \ \ / / _ \ | __| '_ \ / _ | | '__| / _ \ \ /\ / | '_ \ / __| '_ \ / _` | '__/ _` |/ __| __/ _ | '__| / __| __| |/ __| / __| '_ ` _ \ / _ | | |
| |_) | (_| | | | | (_| | | | | (_| \__ \ | | | | (_| |\ V | __/ | |_| | | | __| | | | (_) \ V V /| | | | | (__| | | | (_| | | | (_| | (__| || __| | | \__ | |_| | (__ \__ | | | | | | __| | |_
|____/ \__,_|_| |_|\__,_|_| |_|\__,_|___/ |_| |_|\__,_| \_/ \___| \__|_| |__\___|_|_| \___/ \_/\_/ |_| |_|_ \_____| |__\__,_|_| \__,_|\___|\__\___|_| |_|___/\__|_|\___| |___|_| |_| |_|\___|_|_( )
__ _ _ __ __| | | |_| |__ ___ _ _ __ _ _ __ ___ ___ __ _ ___(_| |_ _ __| (_) __ _ ___ ___| |_(_| |__ | | ___ |/
/ _` | '_ \ / _` | | __| '_ \ / _ | | | | / _` | '__/ _ \ / _ \/ _` / __| | | | | | / _` | |/ _` |/ _ / __| __| | '_ \| |/ _ \
| (_| | | | | (_| | | |_| | | | __| |_| | | (_| | | | __/ | __| (_| \__ | | | |_| | | (_| | | (_| | __\__ | |_| | |_) | | __/_
\__,_|_| |_|\__,_| \__|_| |_|\___|\__, | \__,_|_| \___| \___|\__,_|___|_|_|\__, | \__,_|_|\__, |\___|___/\__|_|_.__/|_|\___(_)
|___/ |___/ |___/
BananaUtils.bananansi("Hello, World!", Ansi.BLUE);
BananaUtils.bananansi("Hello, World!", Ansi.RED, Ansi.BG_YELLOW);
- Bugs & Issues: Click Here
Banana is under the MIT license. See the LICENSE file for details.