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

Method drawFunctionPatterns

external/.qrcodegen.js:61–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 return 0 <= t && t < this.size && 0 <= e && e < this.size && this.modules[e][t]
60 }
61 drawFunctionPatterns() {
62 for (let t = 0; t < this.size; t++) this.setFunctionModule(6, t, t % 2 == 0), this.setFunctionModule(t, 6, t % 2 == 0)
63 this.drawFinderPattern(3, 3), this.drawFinderPattern(this.size - 4, 3), this.drawFinderPattern(3, this.size - 4)
64 const t = this.getAlignmentPatternPositions(),
65 e = t.length
66 for (let r = 0; r < e; r++) for (let n = 0; n < e; n++) (0 == r && 0 == n) || (0 == r && n == e - 1) || (r == e - 1 && 0 == n) || this.drawAlignmentPattern(t[r], t[n])
67 this.drawFormatBits(0), this.drawVersion()
68 }
69 drawFormatBits(t) {
70 const e = (this.errorCorrectionLevel.formatBits << 3) | t
71 let r = e

Callers 1

constructorMethod · 0.95

Calls 6

setFunctionModuleMethod · 0.95
drawFinderPatternMethod · 0.95
drawAlignmentPatternMethod · 0.95
drawFormatBitsMethod · 0.95
drawVersionMethod · 0.95

Tested by

no test coverage detected