Skip to main content

Module barcode

Module barcode 

Source
Expand description

Barcodes: turns text into the modules a scanner reads. Pure logic, so every output draws the same code and it can be tested without drawing.

Enums§

Pattern
What a scanner reads.
Symbology
A barcode format.

Functions§

encode
Encodes data, or says why it does not fit the format.
modules_across
How many modules a pattern spans across, quiet zones included: drawn in a width that divides by this, every module lands on whole pixels.
shape
The shape of a pattern inside rect, centered and with its quiet zone.