MCPcopy
hub / github.com/zpao/qrcode.react / setFunctionModule

Method setFunctionModule

src/third-party/qrcodegen/index.ts:340–343  ·  view source on GitHub ↗
(x: int, y: int, isDark: boolean)

Source from the content-addressed store, hash-verified

338 // Sets the color of a module and marks it as a function module.
339 // Only used by the constructor. Coordinates must be in bounds.
340 private setFunctionModule(x: int, y: int, isDark: boolean): void {
341 this.modules[y][x] = isDark;
342 this.isFunction[y][x] = true;
343 }
344
345
346 /*-- Private helper methods for constructor: Codewords and masking --*/

Callers 5

drawFunctionPatternsMethod · 0.95
drawFormatBitsMethod · 0.95
drawVersionMethod · 0.95
drawFinderPatternMethod · 0.95
drawAlignmentPatternMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected