Public Functions
| bool | dark(int x, int y) |
Detailed Description
Grid of a QR code's squares, which QR calls modules, from
encode_qr().
The grid has size modules on each side, and modules lists them row
by row from the top left, so it holds size * size values. A 2 by 2
grid with a dark top left and bottom right is { 1, 0, 0, 1 }.
Member Variable Documentation
int size { 0 }
Modules on each side; 0 means no code
std::vector<std::uint8_t> modules
1 is dark, 0 is light
Member Function Documentation
bool dark(int x, int y)
Returns true when the module in column x and row y is dark, and
false when it's light or outside the grid.