Print QR Codes straight in your terminal
<dependency>
<groupId>io.github.shashankn</groupId>
<artifactId>qr-terminal</artifactId>
<version>1.0.0</version>
</dependency>
QRCode.from("https://www.google.com").generate();
QRCode.from("https://www.google.com").generateHalfBlock();
QRCode.from("https://www.google.com")
.withSize(30,30)
.withMargin(3)
.withErrorCorrection(ErrorCorrectionLevel.H)
.generate();
FullBlockPalette customPalette = new FullBlockPalette("\033[40m \033[0m", "\033[47m \033[0m", System.lineSeparator());
QRCode.from("https://www.google.com")
.withSize(30,30)
.withMargin(3)
.withErrorCorrection(ErrorCorrectionLevel.H)
.generateWithPalette(customPalette);
HalfBlockPalette customPalette = new HalfBlockPalette(" ", "▄", "▀", "█",System.lineSeparator());
QRCode.from("https://www.google.com")
.withMargin(3)
.withErrorCorrection(ErrorCorrectionLevel.H)
.withSize(30,30)
.generateHalfBlockWithPalette(customPalette);