Skip to content

Instantly share code, notes, and snippets.

@fbricon
Last active November 24, 2022 11:17
Show Gist options
  • Save fbricon/e2f6ca48f0eb9be7893855990d00600f to your computer and use it in GitHub Desktop.
Save fbricon/e2f6ca48f0eb9be7893855990d00600f to your computer and use it in GitHub Desktop.
JFiglet + Lolcat with JBang
///usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS com.github.jamesnetherton:lolcat4j:0.4.0
//DEPS com.github.lalyos:jfiglet:0.0.9
//JAVA 11+
import java.io.IOException;
import com.github.jamesnetherton.lolcat4j.Lol;
import com.github.lalyos.jfiglet.FigletFont;
public class lol {
public static void main(String[] args) throws IOException {
var text = FigletFont.convertOneLine("Hello JBang");
var lol = Lol.builder()
.seed(1)
.frequency(3.0)
.spread(3.0)
.text(text)
.build();
lol.cat();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment