MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / drawAlignmentPattern

Method drawAlignmentPattern

Libraries/QRCode/tests/QrCode.cpp:287–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285
286
287void qrcodegen::QrCode::drawAlignmentPattern(int x, int y) {
288 for (int i = -2; i <= 2; i++) {
289 for (int j = -2; j <= 2; j++)
290 setFunctionModule(x + j, y + i, std::max(std::abs(i), std::abs(j)) != 1);
291 }
292}
293
294
295void qrcodegen::QrCode::setFunctionModule(int x, int y, bool isBlack) {

Callers

nothing calls this directly

Calls 2

setFunctionModuleFunction · 0.85
maxFunction · 0.85

Tested by

no test coverage detected