EQRCode v0.1.0 EQRCode.Matrix View Source
EQRCode matrix functions.
Here’s the axis for the matrix.
(0,0) (0,7) (0,20)
+---------------------> y
|
|
(7,0)| (7,7)
|
|
|
|
v
x
(20,0) (20,20)
Link to this section Summary
Functions
Draw the alignment patterns
Draw the dark module
Draw the data bits with mask
Draw the data bits with mask 0
Draw the finder patterns, three at a time
Fill the reserved format information areas
Draw the quite zone
Draw the reserved format information areas
Draw the reserved version information areas
Draw the seperators
Draw the timing patterns
Fill the reserved version information areas
Initialize the matrix
Given the starting point {x, y} and {width, height} returns the coordinates of the shape
Link to this section Types
Link to this section Functions
Draw the alignment patterns.
Draw the dark module.
Draw the data bits with mask.
Draw the data bits with mask 0.
Draw the finder patterns, three at a time.
Fill the reserved format information areas.
Draw the quite zone.
Draw the reserved format information areas.
Draw the reserved version information areas.
Draw the seperators.
Draw the timing patterns.
Fill the reserved version information areas.
Initialize the matrix.
shape(coordinate(), {integer(), integer()}) :: [coordinate()]
Given the starting point {x, y} and {width, height} returns the coordinates of the shape.
Example:
iex> EQRCode.Matrix.shape({0, 0}, {3, 3})
[{0, 0}, {0, 1}, {0, 2},
{1, 0}, {1, 1}, {1, 2},
{2, 0}, {2, 1}, {2, 2}]