module

RQRCode::Export::ANSI

Instance methods

as_ansi(light : String = "\e[47m", dark : String = "\e[40m", fill_character : String = " ", quiet_zone_size : Int32 = 4)

Returns a string of the QR code as characters writen with ANSI background set.

Options: light: Foreground ("\033[47m") dark: Background ANSI code. ("\033[40m") fill_character: The written character. (' ') quiet_zone_size: (4)

Source