You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Useful for web- and retro-environments. By use of this encoder you get a QR code encoded as string just build out of ASCII chars.
Useful for web-, retro- and console-environments. By use of this encoder you get a QR code encoded as string just build out of chars. By default UTF-8 block symbols are used.
**Trivia:***The renderer is called Ascii renderer, although it uses characters from the Utf-8 character set by default. The idea behind this is that the renderer uses a text-based graphical representation that is reminiscent of classic Ascii art. Naming it Utf8QrCode was rejected in the design phase, as it would be difficult to deduce from this name what type of return value the renderer has.*
|repeatPerModule|int||Number of repeated darkColorString/whiteSpaceString per module.|
|repeatPerModule|int||Number of repeated darkColorString/whiteSpaceString per module. (Must be 1 or greater.)|
|darkColorString|string|`██`|String for use as dark color modules. In case of string make sure whiteSpaceString has the same length.|
|whiteSpaceString|string|<code>``</code>|String for use as white modules (whitespace). In case of string make sure darkColorString has the same length.|
|drawQuietZones|bool|true|If true a white border is "drawn" around the whole QR Code|
|endOfLine|string|"\n"|End of line separator. (Default: \n)|
|drawQuietZones|bool|`true`|If true a white border is "drawn" around the whole QR Code|
@@ -136,10 +138,19 @@ There are two different overloads:
|repeatPerModule|int||Number of repeated darkColorString/whiteSpaceString per module.|
|darkColorString|string|`██`|String for use as dark color modules. In case of string make sure whiteSpaceString has the same length.|
|whiteSpaceString|string|<code>``</code>|String for use as white modules (whitespace). In case of string make sure darkColorString has the same length.|
|drawQuietZones|bool|true|If true a white border is "drawn" around the whole QR Code|
|drawQuietZones|bool|`true`|If true a white border is "drawn" around the whole QR Code.|
|drawQuietZones|bool|true|If true a border is "drawn" around the whole QR Code.|
|invert|bool|`false`|If set to true, light- and dark color will be switched.|
|endOfLine|string|`\n`|End of line separator.|
#### Good to know
If you set *darkColorString* or *whiteSpaceString* you have to ensure that they are both of the same length. Also you should keep in mind that this type of rendering only works when shown in a so called "Monospace" font.
If you need a smaller representation than GetGraphic with `repeatPerModule: 1`, use `GetGraphicSmall` which compresses two module lines into one character line each.