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

Method set2dPattern

symbol.go:100–106  ·  view source on GitHub ↗

set2dPattern sets a 2D array of modules, starting at (x, y).

(x int, y int, v [][]bool)

Source from the content-addressed store, hash-verified

98
99// set2dPattern sets a 2D array of modules, starting at (x, y).
100func (m *symbol) set2dPattern(x int, y int, v [][]bool) {
101 for j, row := range v {
102 for i, value := range row {
103 m.set(x+i, y+j, value)
104 }
105 }
106}
107
108// bitmap returns the entire symbol, including the quiet zone.
109func (m *symbol) bitmap() [][]bool {

Callers 3

TestSymbolPenaltiesFunction · 0.80
addFinderPatternsMethod · 0.80
addAlignmentPatternsMethod · 0.80

Calls 1

setMethod · 0.95

Tested by 1

TestSymbolPenaltiesFunction · 0.64