QRCode.DataMasking (QRCode v2.2.1) View Source
A mask pattern changes which modules are dark and which are light according to a particular rule. The purpose of this step is to modify the QR code to make it as easy for a QR code reader to scan as possible.
Link to this section Summary
Link to this section Functions
Specs
apply(QRCode.QR.t()) :: QRCode.QR.t()
Specs
best_mask(Enumerable.t()) :: {non_neg_integer(), MatrixReloaded.Matrix.t()}
Specs
masking_matrices(MatrixReloaded.Matrix.t()) :: Enumerable.t()
Specs
penalty(MatrixReloaded.Matrix.t(), 1 | 2 | 3 | 4) :: non_neg_integer()
Specs
total_penalties(Enumerable.t()) :: Enumerable.t()
Specs
total_penalty(MatrixReloaded.Matrix.t()) :: pos_integer()