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

Method drawVersion

external/.qrcodegen.js:82–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 this.setFunctionModule(8, this.size - 8, !0)
81 }
82 drawVersion() {
83 if (this.version < 7) return
84 let t = this.version
85 for (let e = 0; e < 12; e++) t = (t << 1) ^ (7973 * (t >>> 11))
86 const e = (this.version << 12) | t
87 o(e >>> 18 == 0)
88 for (let t = 0; t < 18; t++) {
89 const r = n(e, t),
90 o = this.size - 11 + (t % 3),
91 s = Math.floor(t / 3)
92 this.setFunctionModule(o, s, r), this.setFunctionModule(s, o, r)
93 }
94 }
95 drawFinderPattern(t, e) {
96 for (let r = -4; r <= 4; r++)
97 for (let n = -4; n <= 4; n++) {

Callers 1

drawFunctionPatternsMethod · 0.95

Calls 3

setFunctionModuleMethod · 0.95
oFunction · 0.70
nFunction · 0.70

Tested by

no test coverage detected