Last active
November 24, 2022 11:17
-
-
Save fbricon/e2f6ca48f0eb9be7893855990d00600f to your computer and use it in GitHub Desktop.
JFiglet + Lolcat with JBang
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///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