MCPcopy
hub / github.com/skip2/go-qrcode / set

Method set

symbol.go:94–97  ·  view source on GitHub ↗

set sets the module at (x, y) to v.

(x int, y int, v bool)

Source from the content-addressed store, hash-verified

92
93// set sets the module at (x, y) to v.
94func (m *symbol) set(x int, y int, v bool) {
95 m.module[y+m.quietZoneSize][x+m.quietZoneSize] = v
96 m.isUsed[y+m.quietZoneSize][x+m.quietZoneSize] = true
97}
98
99// set2dPattern sets a 2D array of modules, starting at (x, y).
100func (m *symbol) set2dPattern(x int, y int, v [][]bool) {

Callers 6

set2dPatternMethod · 0.95
TestSymbolBasicFunction · 0.80
addTimingPatternsMethod · 0.80
addFormatInfoMethod · 0.80
addVersionInfoMethod · 0.80
addDataMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestSymbolBasicFunction · 0.64