Documentation
¶
Index ¶
Constants ¶
View Source
const ( WHITE = "\033[47m \033[0m" BLACK = "\033[40m \033[0m" )
View Source
const ( BLACK_WHITE = "▄" BLACK_BLACK = " " WHITE_BLACK = "▀" WHITE_WHITE = "█" )
Use ascii blocks to form the QR Code
Level - the QR Code's redundancy level
View Source
const ( SIXEL_BEGIN = "\x1bPq\n#0;2;0;0;0#1;2;100;100;100\n" SIXEL_END = "\x1b\\" )
Sixel Support Control Sequence Color 0: Black Color 1: White
View Source
const QUIET_ZONE = 4
default is 4-pixel-wide white quiet zone
View Source
const SIXEL_BLOCK_SIZE = 12
Sixel Block Size, should be always greater than 6.
Variables ¶
This section is empty.
Functions ¶
func GenerateHalfBlock ¶
Generate a QR Code with half blocks and write it out to io.Writer
func GenerateWithConfig ¶
GenerateWithConfig expects a string to encode and a config
func IsSixelSupported ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.

