MCPcopy Create free account
hub / github.com/breck7/scroll / drawAlignmentPattern

Method drawAlignmentPattern

external/.qrcodegen.js:104–106  ·  view source on GitHub ↗
(t, e)

Source from the content-addressed store, hash-verified

102 }
103 }
104 drawAlignmentPattern(t, e) {
105 for (let r = -2; r <= 2; r++) for (let n = -2; n <= 2; n++) this.setFunctionModule(t + n, e + r, 1 != Math.max(Math.abs(n), Math.abs(r)))
106 }
107 setFunctionModule(t, e, r) {
108 ;(this.modules[e][t] = r), (this.isFunction[e][t] = !0)
109 }

Callers 1

drawFunctionPatternsMethod · 0.95

Calls 2

setFunctionModuleMethod · 0.95
maxMethod · 0.80

Tested by

no test coverage detected