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

Method getModule

packages/shared/src/qrCode.ts:241–243  ·  view source on GitHub ↗
(x: int, y: int)

Source from the content-addressed store, hash-verified

239 // for light or true for dark. The top left corner has the coordinates (x=0, y=0).
240 // If the given coordinates are out of bounds, then false (light) is returned.
241 public getModule(x: int, y: int): boolean {
242 return 0 <= x && x < this.size && 0 <= y && y < this.size && this.modules[y]![x]!;
243 }
244
245 /*-- Private helper methods for constructor: Drawing function modules --*/
246

Callers 2

isDarkFunction · 0.80
buildQrPathDataFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected