View Source QRCode.DataMasking (QRCode v3.0.0)

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

@spec apply(QRCode.QR.t()) :: QRCode.QR.t()
Link to this function

masking_matrices(matrix)

View Source
@spec masking_matrices(MatrixReloaded.Matrix.t()) :: Enumerable.t()
@spec penalty(MatrixReloaded.Matrix.t(), 1 | 2 | 3 | 4) :: non_neg_integer()
Link to this function

total_penalties(matrices)

View Source
@spec total_penalties(Enumerable.t()) :: Enumerable.t()
@spec total_penalty(MatrixReloaded.Matrix.t()) :: pos_integer()