MCPcopy Create free account
hub / github.com/pingdotgg/t3code / setFunctionModule

Method setFunctionModule

packages/shared/src/qrCode.ts:345–348  ·  view source on GitHub ↗
(x: int, y: int, isDark: boolean)

Source from the content-addressed store, hash-verified

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

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