-
-
Save maxandersen/be6992769147cec075cc271d747737e4 to your computer and use it in GitHub Desktop.
JFiglet + Lolcat with JBang
This file contains hidden or 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 | |
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